python-sdk
python-sdk copied to clipboard
The official Python SDK for Model Context Protocol servers and clients
This PR adds support for [RFC 9728 Section 5.1 – "WWW-Authenticate" Response](https://datatracker.ietf.org/doc/html/rfc9728#name-www-authenticate-response), enabling proper OAuth Protected Resource Metadata responses from the server, and aligns with the MCP TypeScript SDK implementation....
Hello, May I have a question. How to create a context for each session in mcp server?
The example in README.md for parsing the result of `session.call_tool` has been updated to reflect the structure of `CallToolResult`. This change aligns the README example with the type definitions in...
**Is your feature request related to a problem? Please describe.** I think the MCP server can clearly know what type of data response any function will return, such as any...
Currently if the progress notification callback throws an exception we get a misleading warning message. This PR aims to fix it. ## Motivation and Context ## How Has This Been...
Add outputSchema support to MCP tools ## Motivation and Context Implemented changes in [PR](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/371) for outputSchema ## Key implementation details: 1. Added `outputSchema` field to the `Tool` class to store...
This PR implements authorization support as per RFC 9728 (#686). It introduces robust token generation and validation methods, fully aligned with the new MCP authorization specification. The changes include: Implementation...
# Add RFC 6570 support for optional parameters as form-style query expansions ## Motivation and Context Adds optional parameter support with RFC 6570 compliance as form-style query expansions. This change...
**Is your feature request related to a problem? Please describe.** HI , I was creating a mcp server for superset and find the use of tool grouping. right now, every...
Hello, we are trying to implement an MCP server and deploy in a distributed system, but we have found that session management is done in memory in the application instance....