Diogo Santos

Results 27 issues of Diogo Santos

### Description ## Summary The current test suite for the Python SDK appears to lean heavily on integration tests: - many tests spin up full servers/clients, - numerous tests live...

### Description ## Summary MCP servers built with the Python SDK currently process incoming requests as fast as they arrive, limited mostly by system resources. There are no built-in mechanisms...

## Summary This PR improves the documentation for Streamable HTTP `stateless_http` mode in the Python SDK by clarifying what "stateless" means in the MCP context, which features are impacted, and...

### Description ## Summary The SDK exposes a `stateless_http` mode for Streamable HTTP, where each request is handled with a new transport/session. This is useful for some deployment environments, but...

### Description ## Summary FastMCP currently uses introspection to automatically inject a `Context` parameter into tools/resources when it detects a parameter with the right name/type. This is convenient but “magic”:...

## Summary This PR introduces a **pluggable instrumentation interface** with a **token-based API** for the MCP Python SDK, enabling OpenTelemetry and other observability integrations as requested in [#421](https://github.com/modelcontextprotocol/python-sdk/issues/421). ## Key...

### Description ## Summary `StreamableHTTPSessionManager` currently enforces that `run()` can only be called once per instance. This is documented but not explained, and it complicates: - testing (each test must...

### Description ## Summary Server and client sessions use an internal initialization state machine combined with various flags and manual `AsyncExitStack` management. Stateless mode complicates this further by setting an...

## Summary The SDK currently implements multiple server and client transports (stdio, SSE, WebSocket, Streamable HTTP). Each one has its own message loop, error handling, and resource management logic with...

### Description ## Summary FastMCP provides a higher-level API over the low-level MCP server, but the layering between them is currently leaky: - FastMCP wraps an internal `_mcp_server` object and...