Add everything-server for comprehensive MCP conformance testing by felixweinberger · Pull Request #1587 · modelcontextprotocol/python-sdk
Implements a comprehensive reference server that exercises all MCP protocol features for conformance testing. This server validates that the Python SDK correctly implements the MCP specification by passing all 25 conformance test scenarios. Features implemented: - 11 tools covering all content types (text, image, audio, embedded resources, mixed content, logging, progress, error handling, sampling, elicitation) - 4 resources (static text/binary, templates, subscribable resources) - 4 prompts with various content types - Logging support (logging/setLevel) - Completion support (completion/complete) - Resource subscriptions (resources/subscribe, resources/unsubscribe) - Session management with StreamableHTTP transport Implementation uses FastMCP with proper type safety: - All URIs wrapped with AnyUrl() for type correctness - Context properly typed with ServerSession parameter - Subscribe/unsubscribe handlers use correct AnyUrl parameter and None return - Completion handler returns Completion objects - ElicitationResult uses discriminated union narrowing via action field - Relative imports in __main__.py to avoid type stub warnings Type checking: Passes pyright with 0 errors (only 3 targeted ignores for accessing _mcp_server private API, documented with TODO to add public APIs to FastMCP in the future). Conformance: Passes all 25 test scenarios.