Skip to content

Commit f0321ac

Browse files
committed
improve sharing url display
1 parent 5766f20 commit f0321ac

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/mcpm/commands/profile/share.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ async def share_profile_fastmcp(profile_servers, profile_name, port, address, ht
9898
console.print(f"[bold green]Profile '{profile_name}' is now publicly accessible![/]")
9999
console.print(f"[cyan]Public URL:[/] {public_url}")
100100
console.print()
101+
console.print("[bold]Connection URLs:[/]")
102+
console.print(f" • Streamable HTTP: [cyan]{public_url}/mcp/[/]")
103+
console.print(f" • SSE endpoint: [cyan]{public_url}/sse/[/]")
104+
console.print()
101105
console.print("[bold]Available servers in this profile:[/]")
102106
for server_config in profile_servers:
103107
console.print(f" • {server_config.name}")

src/mcpm/commands/share.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ async def _share_async(server_config, server_name, port, remote_host, remote_por
201201
raise RuntimeError("Could not get share URL from tunnel.")
202202

203203
console.print(f"[bold green]Server is now shared at: [/][bold cyan]{share_url}[/]")
204+
console.print()
205+
console.print("[bold]Connection URLs:[/]")
206+
console.print(f" • Streamable HTTP: [cyan]{share_url}/mcp/[/]")
207+
console.print(f" • SSE endpoint: [cyan]{share_url}/sse/[/]")
208+
console.print()
204209
console.print("[bold red]Warning:[/] Anyone with the URL can access your server.")
205210
console.print("[yellow]Press Ctrl+C to stop sharing and terminate the server[/]")
206211

0 commit comments

Comments
 (0)