Examples by task
Examples are explained and run from their owning guides:
- First local server test
- Stdio server
- Streamable HTTP server
- Agent tool-use test
- Connect an ACP-compatible agent
- Expose a custom agent through ACP
- Continuing agent session
- Pass a credential to a stdio MCP server
- Pin a native harness runtime
- Compare agent harnesses and versions
- Saved history and baselines
- Custom evaluator
- Elicitation plan
- Compose form and URL requests
- Test declined and cancelled input
- Test agent elicitation with Codex or Pi
- Handle elicitation manually
- Submit input to a paused execution
Each guide shows its task-bearing code, command, and result. Source downloads are provided alongside examples that need more than one file.