python-sdk
python-sdk copied to clipboard
The official Python SDK for Model Context Protocol servers and clients
Fixes #1401. - Logs and raises exceptions in the default ClientSession message handler. Includes test that verifies exceptions passed to the default handler are properly raised. - Makes session more...
### 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...
Add support for specifying NotificationOptions in FastMCP and lowlevel Server creation ## Motivation and Context Currently there is no straightforward way to specify FastMCP server notification capabilities. Some clients do...
Introduce resource not found error handling following the MCP specification. This change ensures that when a resource is not found, the server returns error code `-32002` (RESOURCE_NOT_FOUND) as specified in...
### 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...
### Question Agents talking to deployed MCP Server, SSL verification is failing. Has some been through this? ### Additional Context I have a server up and running and is able...
### 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...
## Implement SEP-986: Tool Name Guidance for Tool Type ### Changes - Added a length check that raises an error when the tool name is not within the allowed range:...
## Motivation and Context https://github.com/modelcontextprotocol/python-sdk/issues/881 In addition to implementing the Client Credentials grant (as referenced in the [issue linked above](https://github.com/modelcontextprotocol/python-sdk/issues/881)), I have also integrated support for the Token Exchange grant....
### Question Is there a native MCP Python method to run a streaming http server running other peoples MCP implementations? For stdio there is no need to "start" a server...