Skip to content

Commit d80cd4e

Browse files
committed
fix: do not automatically connect the session, wait for stdio client initialize session
1 parent 20c031c commit d80cd4e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

mcp_proxy_for_aws/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ async def setup_mcp_mode(local_mcp: FastMCP, args) -> None:
8484
transport = create_transport_with_sigv4(
8585
args.endpoint, service, region, metadata, timeout, profile
8686
)
87-
async with Client(transport=transport) as client:
87+
async with Client(transport=transport, auto_initialize=False) as client:
8888
# Create proxy with the transport
8989
proxy = FastMCP.as_proxy(client)
9090
add_logging_middleware(proxy, args.log_level)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ description = "MCP Proxy for AWS"
1616
readme = "README.md"
1717
requires-python = ">=3.10,<3.14"
1818
dependencies = [
19-
"fastmcp>=2.13.0.2",
19+
"fastmcp>=2.13.1",
2020
"boto3>=1.34.0",
2121
"botocore>=1.34.0",
2222
]

uv.lock

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)