python-sdk
python-sdk copied to clipboard
The official Python SDK for Model Context Protocol servers and clients
**Describe the bug** when sending or recieving a non-latin text, the text becomes Jibrish (Non-sense or ?????) **To Reproduce** send a request to one of the tools with non-latin characters...
**Is your feature request related to a problem? Please describe.** Currently when I stand up an sse client against a server that redirects I get [2024-12-17 16:40:04,008][ERROR] Error in post_writer:...
**Describe the bug** The list_tools() return less than 10 tools. **To Reproduce** Steps to reproduce the behavior: 1. prepare mcp-client (something like https://github.com/modelcontextprotocol/quickstart-resources/blob/main/mcp-client/client.py) 2. setup the client to connect official...
**Describe the bug** Passing environment variables to the MCP Server - I am trying to test the example Weather MCP Server with both the MCP Inspector and a simple Python...
**Describe the bug** The input schema property is not following the snake case convention. Currently the property is defined as "inputSchema" instead of "input_schema". Ideally we can follow the convention...
I read the code and fail to find a decorator factory like `@server.*` on the `session` objects. So what's the best practice to implement the 'sampling' protocol for my Python...
## Is your feature request related to a problem? Please describe. While the MCP ecosystem has a dedicated repository for server examples (modelcontextprotocol/servers), there doesn't seem to be a centralized...
delta for issue #87 I have added a version parameter with default 'None', so existing code will work as is. I have changed docs to reflect the version string. Ran...
**Describe the bug** Sometimes, I see a stacktrace printed in the logs of my mcp server. Claude eventually succeeds to response but I think its good to investigate it. **To...
**Describe the bug** When registered a resource_template with the python sdk (mcp==1.1.0), the server runs but no resources can be selected in the UI. **To Reproduce** Steps to reproduce the...