chore: tighten mcp source typing

This commit is contained in:
lda
2026-06-09 07:03:36 +07:00 Verified
parent 19d65be77c
commit 5ebe1451c7
19 changed files with 103 additions and 43 deletions
+5 -1
View File
@@ -40,7 +40,11 @@ class _ToolsOnlyAdapter:
raise McpError(ErrorData(code=-32601, message="Method not found"))
async def get_connection_metadata(self, connection, auth):
return {"server": getattr(connection, "provider", getattr(connection, "server", None))}
return {
"server": getattr(
connection, "provider", getattr(connection, "server", None)
)
}
async def read_resource(self, connection, auth, uri):
raise NotImplementedError