d99b1400c6
The twelve v1 @server.* decorator kinds are gone on v2. Their sites now become add_request_handler / add_notification_handler calls at the decorator's exact source position (registration there is when the v1 decorator ran, so execution order is preserved and the deprecated capabilities land on the warning-free path), wired through generated adapters that reproduce the v1 wrapper semantics: bare-list wrapping, call_tool's any-exception-to-isError contract with jsonschema input and output validation (tool lookup through the registered tools/list handler, v1's own cache mechanism, so cross-module list_tools works), read_resource content conversion, and the completion None-mapping. Handler bodies are never touched. Shapes the adapter cannot serve honestly -- a stacked decorator, an attribute receiver, a non-v1 signature, a non-literal decorator argument, a taken name -- are marked with the reason. The suite migrates a six-registration server and serves it to a v1-shaped ClientSession over the legacy protocol; the templates are pinned against the installed v2 (method strings register, params models exist, imports resolve, no 2026-era surface is emitted). Also on the client surface: inline timedelta session timeouts convert to float seconds and non-provable values are marked (the mismatch only fails on the first request); cursor= on session list_* methods wraps into params=PaginatedRequestParams(...); pydantic URL wrappers around resource URIs are dropped where the target provably takes v2's plain str and marked elsewhere; constructions of and pydantic method calls on the v1 RootModel wrappers that became plain union aliases are marked with the TypeAdapter fix; ._mcp_server and the type-keyed handler dicts are marked with their v2 homes. Adapters honor an explicit `uri: str` annotation and keep v1's AnyUrl otherwise, and keep the emitted code insensitive to user return annotations so a wrong annotation cannot manufacture type errors inside generated code. Batch harness: seven more pinned repositories (two seven-decorator servers, a multi-package lowlevel server, the method-local-server marker path, two client libraries including a positional timedelta timeout and the old streamablehttp spelling, and an exact ==1.6.0 pin). Markers now cover the full statement they precede rather than a fixed radius, Unknown-typed errors in files that carry markers classify as cascade of a marked break, and the work directory is a dot-directory so pytest never collects the cloned repositories' own suites. All eleven repositories audit at zero uncovered errors. An adversarial review round over the full change confirmed ten defects, all fixed with regression tests: adapter imports now inject at the top of the module (a mid-file import as the anchor left registration code running before its imports bound); the rewrite gates now also block a handler named like a template local, and any module-level non-import binding of a name the adapter references (both were silent runtime breaks past the gates); import injection dedup now reads the updated module's top-level import binds, so conditional or function-local imports no longer suppress a needed injection; list_* adapters pass a returned full result model through instead of double-wrapping (v1's runtime behavior); the blocked-progress marker names add_notification_handler (a request-handler registration would never fire); the timeout transform skips already-v2 shapes so re-runs stay no-ops; the emitted name scheme is defined once and shared between templates and gates; and the harness classifier no longer lets a marker cover a whole def/class body or write off arbitrary Unknown-typed errors (header-only spans; cascade restricted to propagation rules and never detonators).
100 lines
3.2 KiB
JSON
100 lines
3.2 KiB
JSON
[
|
|
{
|
|
"slug": "official-servers",
|
|
"url": "https://github.com/modelcontextprotocol/servers",
|
|
"sha": "7b1170d1da1e36bc9f553f51e76e64cbfd652b3e",
|
|
"include": [
|
|
"src/fetch",
|
|
"src/git",
|
|
"src/time"
|
|
],
|
|
"note": "The official reference servers; lowlevel Server and FastMCP usage."
|
|
},
|
|
{
|
|
"slug": "mcp-obsidian",
|
|
"url": "https://github.com/MarkusPfundstein/mcp-obsidian",
|
|
"sha": "32285e9ac07049a8a23ea7d7903603a3e48a1bf7",
|
|
"include": [],
|
|
"note": "Popular community server; lowlevel Server with mcp.types throughout."
|
|
},
|
|
{
|
|
"slug": "awslabs-aws-documentation",
|
|
"url": "https://github.com/awslabs/mcp",
|
|
"sha": "3a5294539de4de3a91d0ee72d5487bc8b8b1fcd7",
|
|
"include": [
|
|
"src/aws-documentation-mcp-server"
|
|
],
|
|
"note": "One server from the awslabs monorepo; production FastMCP usage."
|
|
},
|
|
{
|
|
"slug": "android-mcp-server",
|
|
"url": "https://github.com/minhalvp/android-mcp-server",
|
|
"sha": "451d255a7305e6efef8a1a2b7374a21c512bba45",
|
|
"include": [],
|
|
"note": "Small community FastMCP server."
|
|
},
|
|
{
|
|
"slug": "mysql-mcp-server",
|
|
"url": "https://github.com/designcomputer/mysql_mcp_server",
|
|
"sha": "e25be7fc4e9e79d7efc52eb69d776129429a837f",
|
|
"include": [
|
|
"src/mysql_mcp_server"
|
|
],
|
|
"note": "Seven lowlevel decorators on a module-level Server in one file; stdio + SSE wiring."
|
|
},
|
|
{
|
|
"slug": "kaltura-mcp",
|
|
"url": "https://github.com/zoharbabin/kaltura-mcp",
|
|
"sha": "567f016e536692959e294c1ee94c9fc901576cd8",
|
|
"include": [
|
|
"src/kaltura_mcp"
|
|
],
|
|
"note": "Full seven-decorator lowlevel server with an explicit mcp>=1,<2 pin; handlers dispatch into other modules."
|
|
},
|
|
{
|
|
"slug": "arxiv-mcp-server",
|
|
"url": "https://github.com/blazickjp/arxiv-mcp-server",
|
|
"sha": "d58901760d7ede4adb162eaba1725209a933f100",
|
|
"include": [
|
|
"src/arxiv_mcp_server"
|
|
],
|
|
"note": "Decorator-registered lowlevel server whose handlers live across tools/, prompts/, resources/ subpackages."
|
|
},
|
|
{
|
|
"slug": "fastapi-mcp",
|
|
"url": "https://github.com/tadata-org/fastapi_mcp",
|
|
"sha": "e5cad13cabfc725bbcb047e526816d887d96da62",
|
|
"include": [
|
|
"fastapi_mcp"
|
|
],
|
|
"note": "Decorators on a method-local Server closing over self, with request_context introspection: the marker path."
|
|
},
|
|
{
|
|
"slug": "langchain-mcp-adapters",
|
|
"url": "https://github.com/langchain-ai/langchain-mcp-adapters",
|
|
"sha": "6a10b83516e825b8ff73870e5595113acc1c8c6d",
|
|
"include": [
|
|
"langchain_mcp_adapters"
|
|
],
|
|
"note": "Client library exercising every v1 transport, session kwargs pass-through, and cursor pagination."
|
|
},
|
|
{
|
|
"slug": "mcpadapt",
|
|
"url": "https://github.com/grll/mcpadapt",
|
|
"sha": "538cd85628b555ef4ad9392b7270b52274f444d4",
|
|
"include": [
|
|
"src/mcpadapt"
|
|
],
|
|
"note": "Client library on the old streamablehttp_client spelling with a positional timedelta session timeout."
|
|
},
|
|
{
|
|
"slug": "chroma-mcp",
|
|
"url": "https://github.com/chroma-core/chroma-mcp",
|
|
"sha": "98ff67589bdcc31b730a5415ff9529433f949077",
|
|
"include": [
|
|
"src/chroma_mcp"
|
|
],
|
|
"note": "Org-backed FastMCP server frozen on mcp[cli]==1.6.0: the exact-pin dependency rewrite."
|
|
}
|
|
]
|