MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / _synthesize_discover

Function _synthesize_discover

src/mcp/client/client.py:105–113  ·  view source on GitHub ↗
(protocol_version: str)

Source from the content-addressed store, hash-verified

103
104
105def _synthesize_discover(protocol_version: str) -> types.DiscoverResult:
106 return types.DiscoverResult(
107 supported_versions=[protocol_version],
108 capabilities=types.ServerCapabilities(),
109 server_info=types.Implementation(name="", version=""),
110 result_type="complete",
111 ttl_ms=0,
112 cache_scope="public",
113 )
114
115
116async def _no_inbound_client_notifications(_dctx: Any, _method: str, _params: Mapping[str, Any] | None) -> None:

Callers 1

__aenter__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected