python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

The official Python SDK for Model Context Protocol servers and clients

Results 229 python-sdk issues
Sort by recently updated
recently updated
newest added

**Describe the bug** When running an MCP server using `mcp-sdk` (both `FastMCP` and the low-level `Server` with `mcp.server.stdio.stdio_server`) on macOS with Python 3.12, the server process hangs indefinitely immediately after...

Since the last update to version 1.9.1, any of the Docker setups that run any MCP servers are not working anymore. This bug is because since 1.9.1, the `host` from...

**Describe the bug** When adding multiple servers using the Client Session Group, an error occurs when closing the connection No problem when adding only one server **code** ``` async def...

**Describe the solution you'd like** support client_credentials for app to app auth **Additional context** MCP doc mentioned https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization#2-1-1-oauth-grant-types `client credential` grant type is also supported, just wondering if we have...

Previously, an unhandled exception within a single MCP session's `MCPServer.run()` task could propagate to the `StreamableHTTPSessionManager`'s main task group. This would cause the entire task group to cancel, effectively shutting...

Fix subprocess creation errors on Windows for STDIO client connections. This updates `create_windows_process` to properly handle the case where asyncio cannot create subprocess transports on Windows by falling back to...

**Describe the bug** I write a multi streamable http server example according to your readme doc, but only the mcp server which pass the session_manager.run() to FastAPI works right **To...

## Context I've been working with the Python SDK and noticed that the type system has quite a bit of abstraction complexity compared to the underlying TypeScript schema. I'm curious...

v2
enhancement
ready for work
P3

i want to create a mcp server base on streamablehttp_stateless running mode(https://github.com/modelcontextprotocol/python-sdk/blob/main/examples/servers/simple-streamablehttp-stateless/mcp_simple_streamablehttp_stateless/server.py example code), but i can not find any mothed to get http request msg in the tools logic....

**Describe the bug** The MCP server receives `Received request before initialization was complete` after a second deployment when a client is trying to list the different tools or even when...