Companion crates for Rig: agent-to-agent protocols, multi-agent orchestration, observability, evals and deployment on AWS. They are maintained outside Rig's repository, and their versions follow Rig's: 0.47.x works with Rig 0.47.
rig-a2a: Serve a Rig agent over the A2A protocol (v1.0, and v0.3 for Strands Agents), and call remote A2A agents as Rig tools.
crates.io · docsrig-mcp-server: Serve Rig agents and tools over the Model Context Protocol, over stdio or Streamable HTTP.
crates.io · docsrig-multiagent: Swarms of agents that hand work to each other, and graphs of agents and functions; streamed, with a person in the loop, resumable from checkpoints.
crates.io · docsrig-otel: OpenTelemetry in one call: Rig's spans over OTLP, GenAI metrics, sessions and traces across processes, with SigV4 export to Amazon CloudWatch.
crates.io · docsrig-evals: Evaluate Rig agents: datasets, built-in and LLM-judge evaluators, AWS AgentCore Evaluations, pass-rate thresholds for CI, JUnit/JSON/Markdown reports.
crates.io · docsrig-agentcore: Run a Rig agent on AWS Bedrock AgentCore Runtime: its HTTP contract, sessions, streaming and the traces AgentCore reads.
crates.io · docs
Each crate stands on its own; add only the ones you need:
cargo add rig-a2a rig-otelflowchart LR
agent["Your Rig agent"]
agent --> a2a["rig-a2a<br/>A2A server and client"]
agent --> mcp["rig-mcp-server<br/>MCP server"]
agent --> multi["rig-multiagent<br/>swarms and graphs"]
agent --> agentcore["rig-agentcore<br/>AgentCore Runtime"]
evals["rig-evals"] -->|runs and scores| agent
a2a -. traces .-> otel["rig-otel"]
mcp -. traces .-> otel
agentcore -. traces .-> otel
otel --> backends["OTLP backends<br/>CloudWatch, Jaeger, Langfuse..."]
rig-otel is the shared piece. With the otel feature of rig-a2a and
rig-mcp-server (always on in rig-agentcore), a call from one agent to another
continues the caller's trace and session.
Each cell is the builder method on that crate, with its default in brackets. — means the crate has no such setting. Turn budgets and content recording for the agent itself come from Rig's AgentBuilder (default_max_turns, record_content_telemetry).
| Concept | rig-a2a | rig-mcp-server | rig-multiagent | rig-otel | rig-evals | rig-agentcore |
|---|---|---|---|---|---|---|
| Run timeout | max_run_duration (600 s) |
max_run_duration (600 s) |
execution_timeout (15 min) on Swarm and Graph; per step agent_timeout (Swarm) or node_timeout (Graph), 5 min |
— | trial_timeout (off) |
max_run_duration (no limit) |
| Concurrency cap | max_concurrent_tasks (32) |
max_concurrent_calls (32) |
— | — | concurrency (4 trials, not requests) |
max_concurrent_tasks (no limit) |
| History window | history_window (32,000 tokens) |
history_window (32,000 tokens) |
— | — | — | history_window (32,000 tokens) |
| Max sessions | max_contexts (1,000) |
max_sessions (1,000) |
— | — | — | max_sessions (1,000) |
| Request size limit | max_request_bytes (2 MiB) |
max_request_bytes (4 MiB, HTTP only) |
— | — | — | max_request_bytes (2 MiB) |
| Content recording | — | — | — | — | — | record_content (false) |
| Bearer token | bearer_token on A2aServer (none); bearer_token on RemoteAgentBuilder (none) |
bearer_token (none, HTTP only) |
— | — | — | — |
| Host allowlist | allowed_hosts on A2aServer (none, HTTP 403 when set) |
allowed_hosts (localhost, 127.0.0.1, ::1; HTTP only) |
— | — | — | — |
| Turn budget | — | — | max_turns_per_agent (8) |
— | — | — |
Session ids are spelled differently in each crate, so they are not a builder setting:
| Crate | Session id |
|---|---|
| rig-a2a | contextId in the A2A message |
| rig-mcp-server | session_id argument of agent tools |
| rig-multiagent | — |
| rig-otel | session.id span attribute, set with set_session |
| rig-evals | session_id on TargetOutput::with_session_id; AgentCore queries use session.id |
| rig-agentcore | x-amzn-bedrock-agentcore-runtime-session-id header (SESSION_HEADER) |
Doc aliases make the same concept findable under the other crate's name: max_sessions for max_contexts in rig-a2a, max_concurrent_tasks for max_concurrent_calls in rig-mcp-server, and node_timeout and agent_timeout on the two rig-multiagent builders.
- Interoperability: CI runs
rig-a2aagainst Strands Agents and the official A2A SDK in both directions, andrig-mcp-serveragainst the official MCP Python SDK, over stdio and HTTP. - AWS:
rig-agentcore,rig-otelandrig-evalswere run on AWS Bedrock AgentCore, with traces in CloudWatch and AgentCore Evaluations scoring the agent; see rig-agentcore's README. - Every push: the tests of every crate, Clippy with Rig's workspace lints, the MSRV
and
cargo-deny; weekly, the newest compatible Rig.
The code follows Rig's own lints and conventions, so a crate here could move into Rig's repository as it is.
Each crate has a label (rig-a2a, rig-otel, ...). Open issues in this repository and
pick the crate's label, or name the crate in the title.
MIT. rig-a2a adapts code from Rig (0xPlaygrounds/rig#2820) and carries its notice.