File tree Expand file tree Collapse file tree 4 files changed +628
-7
lines changed
examples/clients/simple-private-gateway
mcp_simple_private_gateway Expand file tree Collapse file tree 4 files changed +628
-7
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ mcp> quit
291291
292292The client uses interactive prompts for configuration. You'll be asked to provide:
293293
294- - ** Server URL** : The full URL of your MCP server (default: https://localhost:8081 )
294+ - ** Server URL** : The full URL of your MCP server (default: < https://localhost:8081 > 1> )
295295 - If you provide a URL, it will be used directly
296296 - If you press Enter (empty), you'll be prompted for individual components:
297297 - ** Server port** : The port where your MCP server is running (default: 8081)
Original file line number Diff line number Diff line change @@ -105,15 +105,15 @@ async def connect(self):
105105 timeout = 60 ,
106106 ) as (read_stream , write_stream ):
107107 await self ._run_session (read_stream , write_stream , None )
108-
108+
109109 else :
110110 if auth :
111111 print ("📡 Opening StreamableHTTP transport connection with extensions and API key auth..." )
112112 else :
113113 print ("📡 Opening StreamableHTTP transport connection with extensions..." )
114114 # Note: terminate_on_close=False prevents SSL handshake failures during exit
115115 # Some servers may not handle session termination gracefully over SSL
116-
116+
117117 async with streamablehttp_client (
118118 url = self .server_url ,
119119 headers = headers ,
@@ -260,7 +260,7 @@ def get_user_input():
260260 # Get server url
261261 server_url = input ("Server URL [https://localhost:8081]: " ).strip () or None
262262 server_port = None
263- server_hostname = None
263+ server_hostname = None
264264
265265 # Get transport type
266266 print ("\n Transport type:" )
@@ -339,8 +339,8 @@ async def main():
339339 use_bearer ,
340340 server_url ,
341341 ) = get_user_input ()
342-
343- print (f"\n 🔗 Connecting to: { server_url } " )
342+
343+ print (f"\n 🔗 Connecting to: { server_url } " )
344344 print (f"📡 Server hostname: { server_hostname } " )
345345 print (f"🚀 Transport type: { transport_type } " )
346346
Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ async def _create_platform_compatible_process(
238238 env : dict [str , str ] | None = None ,
239239 errlog : TextIO = sys .stderr ,
240240 cwd : Path | str | None = None ,
241- ):
241+ ) -> Process | FallbackProcess :
242242 """
243243 Creates a subprocess in a platform-compatible way.
244244
You can’t perform that action at this time.
0 commit comments