MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / run

Method run

tests/client/test_session.py:1344–1352  ·  view source on GitHub ↗
(
            self,
            on_request: OnRequest,
            on_notify: OnNotify,
            *,
            task_status: anyio.abc.TaskStatus[None] = anyio.TASK_STATUS_IGNORED,
        )

Source from the content-addressed store, hash-verified

1342 self.calls: list[tuple[str, CallOptions]] = []
1343
1344 async def run(
1345 self,
1346 on_request: OnRequest,
1347 on_notify: OnNotify,
1348 *,
1349 task_status: anyio.abc.TaskStatus[None] = anyio.TASK_STATUS_IGNORED,
1350 ) -> None:
1351 task_status.started()
1352 await anyio.sleep_forever()
1353
1354 async def send_raw_request(
1355 self, method: str, params: Mapping[str, Any] | None, opts: CallOptions | None = None

Callers 13

handle_sseFunction · 0.45
driveFunction · 0.45
run_serverFunction · 0.45
run_serverFunction · 0.45
try_runFunction · 0.45
run_serverFunction · 0.45
targetFunction · 0.45
handle_sseFunction · 0.45
_driveFunction · 0.45
test_call_object_toolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected