Skip to content

Commit 592a8ea

Browse files
authored
fix: do not write result to stdout (aws#98)
* remove unnecessary comment * fix: no need to write initialize result to stdout, the server will request again and the use the cached results from the client * add __init__.py to middleware module
1 parent c7ff533 commit 592a8ea

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

mcp_proxy_for_aws/middleware/__init__.py

Whitespace-only changes.

mcp_proxy_for_aws/server.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,9 @@
5656
@contextlib.asynccontextmanager
5757
async def _initialize_client(transport: ClientTransport):
5858
"""Handle the exceptions for during client initialize."""
59-
# line = sys.stdin.readline()
60-
# logger.debug('First line from kiro %s', line)
6159
async with contextlib.AsyncExitStack() as stack:
6260
try:
6361
client = await stack.enter_async_context(ProxyClient(transport))
64-
if client.initialize_result:
65-
print(
66-
client.initialize_result.model_dump_json(
67-
by_alias=True,
68-
exclude_none=True,
69-
),
70-
file=sys.stdout,
71-
)
7262
except httpx.HTTPStatusError as http_error:
7363
logger.error('HTTP Error during initialize %s', http_error)
7464
response = http_error.response

0 commit comments

Comments
 (0)