MCP for Multi-Agent Shared Interface Contracts
KangarooPitiful594 · reddit · 2026-07-12
The author built an MCP server allowing multiple agents to share interface contracts and negotiate API changes in the same "room". This prevents agents on different machines from developing based on outdated interfaces and blowing up during merges.
Core tools include:
- shareintent
- declarecontract
- getteamcontext
- sendmessage
Mechanism:
- When an agent declares a contract change that another depends on, a notification is piggybacked in the latter's next tool response.
- Features a propose / respond / finalize handshake mechanism to agree on shapes before writing code.
- Designed to fail soft: agents can still work independently if the service is unavailable.
- Declarations cross the wire only, without altering source code.
- Code snippet transfers are end-to-end encrypted; the server stores only ciphertext.
The author openly invites critique on whether this bilateral handshake fails with three or more agents, and if notifications should be changed to a subscription stream.
More from coding & agent
- Building a Secure AI Agent Gateway: Self-Hosting OAuth for Multiple SaaS Apps — Defiant_Cod_2654 · 2026-07-22
- Rowboat launches as an open-source, local-first AI coworker with memory — ycombinator · 2026-07-22
- Reddit user chains Ideogram 4 and Krea2 to mimic bbox-based image positioning — v3lh0t05c0 · 2026-07-22
- Apollo Cuts AI Assistant Skill Dev Time by 85% with Deep Agents — LangChain · 2026-07-22
- Scoble says AI “loops” really means long-running multi-agent workspaces — Scobleizer · 2026-07-22
- Kimi Code opens a waitlist as Moonshot rolls out its coding product — Fabulous_Bonus_8981 · 2026-07-22