python-sdk
python-sdk copied to clipboard
The official Python SDK for Model Context Protocol servers and clients
### Initial Checks - [x] I confirm that I'm using the latest version of MCP Python SDK - [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before...
## Motivation and Context As raised in https://github.com/modelcontextprotocol/python-sdk/issues/1495, one of the changes in https://github.com/modelcontextprotocol/python-sdk/pull/1324 included raising an error if PRM endpoint request failed. This caused backwards compatibility issues with MCP...
The current name is not very intuitive considering the class name and the module.
## Summary Replaces environment variables with command-line arguments in the simple-auth-client example, providing a more flexible and intuitive interface for specifying server URLs and transport types. ## Motivation and Context...
### Initial Checks - [x] I confirm that I'm using the latest version of MCP Python SDK - [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before...
### Initial Checks - [x] I confirm that I'm using the latest version of MCP Python SDK - [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before...
Added comprehensive guidance documentation comparing FastMCP (high-level) and Low-Level Server implementations for StreamableHTTP MCP servers in Python, helping developers choose the right approach for their use case ## Motivation and...
Currently, the OAuth2 PKCE implementation in [src/mcp/client/auth.py](https://github.com/modelcontextprotocol/python-sdk/blob/d0443a18328a2fc9e87da6feee9130f95c0b37a7/src/mcp/client/auth.py#L312-L313) stores the `state` and `code_verifier` in memory only, which prevents splitting the OAuth authorization flow across multiple processes. This is common for apps...
The refs structure of common json schema means the $defs of input objects get defined once per tool . Perhaps referenced object schemas could be provided separately from the input...