Skip to main content

Module testing

Module testing 

Source

Structs§

CapturedElicitation
CapturedTaskUpdate
CapturedToolCall
ElicitationScript
Scripts the user’s side of elicitation round trips: answers each incoming request with the next queued response (Cancel once the queue is empty) and records what arrived for assertions.
FakeMcpServer
A fake MCP server preloaded with the classic math tools (add_numbers, divide_numbers, slow_tool); add scripted tools with Self::with_tool.
FakeMcpState
FakeTool
FakeToolResponse

Enums§

ConnectError

Functions§

connect
Helper function to connect an MCP server and client via in-memory transport This handles the dual-era discovery/initialization handshake by running both concurrently
fake_mcp

Type Aliases§

ConnectedServices