Skip to content

Commit 6f6b154

Browse files
committed
fix: no need to write initialize result to stdout, the server will
request again and the use the cached results from the client
1 parent b78729c commit 6f6b154

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mcp_proxy_for_aws/server.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ async def _initialize_client(transport: ClientTransport):
5959
async with contextlib.AsyncExitStack() as stack:
6060
try:
6161
client = await stack.enter_async_context(ProxyClient(transport))
62-
if client.initialize_result:
63-
print(
64-
client.initialize_result.model_dump_json(
65-
by_alias=True,
66-
exclude_none=True,
67-
),
68-
file=sys.stdout,
69-
)
7062
except httpx.HTTPStatusError as http_error:
7163
logger.error('HTTP Error during initialize %s', http_error)
7264
response = http_error.response

0 commit comments

Comments
 (0)