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

Function _discover

tests/server/lowlevel/test_server_discover.py:23–28  ·  view source on GitHub ↗
(server: Server[Any])

Source from the content-addressed store, hash-verified

21
22
23async def _discover(server: Server[Any]) -> types.DiscoverResult:
24 entry = server.get_request_handler("server/discover")
25 assert entry is not None
26 result = await entry.handler(_UNUSED_CTX, types.RequestParams())
27 assert isinstance(result, types.DiscoverResult)
28 return result
29
30
31def test_registered_by_default() -> None:

Calls 2

get_request_handlerMethod · 0.80
handlerMethod · 0.80

Tested by

no test coverage detected