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

Function run_tool

tests/shared/test_streamable_http.py:1173–1185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1171 async with anyio.create_task_group() as tg: # pragma: no branch
1172
1173 async def run_tool():
1174 metadata = ClientMessageMetadata(
1175 on_resumption_token_update=on_resumption_token_update,
1176 )
1177 await session.send_request(
1178 types.CallToolRequest(
1179 params=types.CallToolRequestParams(
1180 name="wait_for_lock_with_notification", arguments={}
1181 ),
1182 ),
1183 types.CallToolResult,
1184 metadata=metadata,
1185 )
1186
1187 tg.start_soon(run_tool)
1188

Callers

nothing calls this directly

Calls 2

send_requestMethod · 0.45

Tested by

no test coverage detected