Skip to content

Commit 4774bbb

Browse files
niechenclaude
andcommitted
Simplify share command output
- Remove SSE endpoint from display (keep HTTP only) - Remove "(recommended)" from HTTP label - Change "Connection URLs" to "Connection URL" in profile share - Cleaner, more focused output for users 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5ad2548 commit 4774bbb

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/mcpm/commands/profile/share.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ async def share_profile_fastmcp(profile_servers, profile_name, port, address, ht
108108
else:
109109
console.print("[bold red]Warning:[/] Anyone with the URL can access your servers.")
110110
console.print()
111-
console.print("[bold]Connection URLs:[/]")
112-
console.print(f" • Streamable HTTP: [cyan]{public_url}/mcp/[/]")
113-
console.print(f" • SSE endpoint: [cyan]{public_url}/sse/[/]")
111+
console.print("[bold]Connection URL:[/]")
112+
console.print(f" • HTTP: [cyan]{public_url}/mcp/[/]")
114113
console.print()
115114
console.print("[bold]Available servers in this profile:[/]")
116115
for server_config in profile_servers:

src/mcpm/commands/share.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,10 @@ async def _share_async(server_config, server_name, port, remote_host, remote_por
210210
if not share_url:
211211
raise RuntimeError("Could not get share URL from tunnel.")
212212

213-
# Display both HTTP (newer) and SSE (original) URLs
213+
# Display HTTP URL
214214
http_url = f"{share_url}/mcp/"
215-
sse_url = f"{share_url}/sse"
216215
console.print(f"[bold green]Server is now shared at:[/]")
217-
console.print(f" • HTTP (recommended): [cyan]{http_url}[/]")
218-
console.print(f" • SSE (legacy): [cyan]{sse_url}[/]")
216+
console.print(f" • HTTP: [cyan]{http_url}[/]")
219217
if not no_auth and api_key:
220218
console.print(f"[bold green]API Key:[/] [cyan]{api_key}[/]")
221219
console.print(f"[dim]Provide this key in the 'Authorization' header as a Bearer token.[/]")

0 commit comments

Comments
 (0)