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

## Summary Implements SEP-1046 OAuth client_credentials flow support with simplified providers for machine-to-machine authentication. ### New OAuth Providers - **`ClientCredentialsOAuthProvider`**: For `client_credentials` grant with client_id + client_secret - Supports `client_secret_basic`...

### 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...

## Summary This PR fixes issue #1484 by adding the missing lifespan context manager to the StreamableHTTP mounting examples. ### Problem The current examples in `examples/snippets/servers/` for mounting StreamableHTTP servers...

This PR expands the universe of supported server notification types that a client can handle to include all existing types defined in `types.py`. ## Motivation and Context In the current...

## Problem The Python SDK is stricter than the MCP specification when validating resource URIs. It rejects relative paths like `'users/me'` that are valid according to the spec and accepted...

bug
ready for work
P2

## Summary The `ServerSession` high-level methods for sending requests to clients (`create_message`, `elicit_form`) don't expose the `progress_callback` parameter, even though the underlying `BaseSession.send_request()` fully supports it. This means servers can't...

enhancement
ready for work
P2

- Fix template detection logic to exclude context when determining if a resource is a template or not - Add support for FunctionResources to be read with a context param,...

### Brief summary of changes - Add `RequestResponder.mark_cancelled_without_response()` to support silent cancellation. - Use silent cancellation in `BaseSession._receive_loop()` when handling `CancelledNotification`. - When emitting a `CancelledNotification`, proactively cancel the local...

needs maintainer action

### 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...