python-sdk
python-sdk copied to clipboard
The official Python SDK for Model Context Protocol servers and clients
## Summary This PR introduces the **Enhanced Tool Definition Interface (ETDI)** to the Python SDK. ETDI is a security and trust framework designed to ensure the authenticity, integrity, and traceability...
- **added change and formatted with ruff** - **added tests** Dispatch `_received_request` in asynchronous tasks inside the session's `_receive_loop`. ## Motivation and Context When writing mcp servers that have the...
## Describe the bug When deploying the MCP server in a Kubernetes environment with gunicorn's multi-process configuration, SSE connections disconnect after a period of time, resulting in subsequent messages receiving...
I'm trying to pass my chat history from my langgraph app to the MCP server, but I don't know if it's just possible with HTTP headers. I tried using @mcp.resource...
This stemmed from trying to fix the test_streamablehettp_client_resumption test. This seems to intermittently fail due to the following behavior (seemingly)... General layout of the test: * create a tool called...
I want to debug my mcp server interface by postman request, Is it available? When I try to request my MCP server through postman post method,the response is error like...
This PR updates the README to correct the development server startup command from: ```bash mcp dev server.py ``` to: ```bash uv run mcp dev server.py ``` ## Motivation and Context...
I brought this on our Discord server before, and we said to wait a bit to some PRs. I think this will improve the readability given the many layers of...
**Describe the bug** Unable to run a minimal MCP server and testing it with mcp inspector. I tried different url in mcp inspector same problem: http://127.0.0.1:8000/ http://127.0.0.1:8000/mcp http://127.0.0.1:8000/mcp/ ============================================= Created...
We should be using `httpx.AsyncClient` with `httpx.ASGITransport`.