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

Function run_server

tests/issues/test_192_request_id.py:31–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30 # Server task to process the request
31 async def run_server():
32 async with client_reader, server_writer:
33 await server.run(
34 client_reader,
35 server_writer,
36 InitializationOptions(
37 server_name="test",
38 server_version="1.0.0",
39 capabilities=server.get_capabilities(
40 notification_options=NotificationOptions(),
41 experimental_capabilities={},
42 ),
43 ),
44 raise_exceptions=True,
45 )
46
47 # Start server task
48 async with (

Callers

nothing calls this directly

Calls 4

NotificationOptionsClass · 0.90
get_capabilitiesMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected