AI Multi-Agent MCP
Knowledge from "Context Engineering for Multi-Agent Systems" (Chapter 2). The chapter's create_mcp_message examples are a simplified inter-agent message envelope, not official MCP. Official MCP is a host/client/server protocol over JSON-RPC 2.0 with initialization/capability negotiation and server features such as tools/resources/prompts.
Quick Start
- Check
guidelines.mdto find which files to load - Load only relevant files (each topic has knowledge.md, rules.md, examples.md)
- Apply guidance to your work
Contents
References
| Category | Purpose |
|---|---|
mcp-protocol |
Simplified envelope format, official-MCP caveats, transports, OpenAI client init, MAS workflow |
agent-design |
Specialist agent template (Researcher, Writer), helper function pattern |
orchestration |
Orchestrator role, hub-and-spoke routing, goal decomposition |
robustness |
Robust LLM components, envelope validation, Validator agent, validation loop |
Workflows
| Workflow | Purpose |
|---|---|
workflows/build-mas.md |
Build a multi-agent system from scratch (envelope → agents → orchestrator → first run) |
workflows/harden-mas.md |
Add validation loops, robust LLM components, Validator agent |
Guidelines
See guidelines.md for task-based file selection.