Skip to main content
Use a ready MCPConnection to list and call tools.

Timeouts

Pass MCP request options as the third argument:

Lazy connect

getSession returns null when not connected. requireSession throws.

Reference

MCPConnectionlistTools, callTool, and request options.