Skip to content

MCP A2A Integration

Stephane Pareilleux edited this page Mar 22, 2026 · 2 revisions

MCP/A2A Integration

Cross-repo integration via Model Context Protocol (MCP) and Agent-to-Agent (A2A) communication.

Full spec: cross-repo-mcp-glue.md

Current State

Source Target Mechanism Status
TARS GrammarMlBridge ix ML pipeline IxCaller function type Designed, not wired
TARS GovernanceGeneration Demerzel schemas JSON serialization Working
ix-dashboard Demerzel state/ File reader (Rust) Working
ix governance tools Demerzel artifacts In-process loading Working
ix_tars_bridge TARS MCP tool Registered
ix_ga_bridge GA MCP tool Registered
Discord Bot Demerzel governance Anthropic SDK + discord.js Live

A2A Agent Cards

14 A2A Agent Cards generated from Demerzel personas — one per persona archetype. Each card follows the agent-card.schema.json and enables peer-to-peer agent discovery and capability advertisement.

Agent cards are in examples/agent-cards/:

Agent Card Persona Key Capabilities
demerzel.agent-card.json Demerzel Governance coordination, directive issuance, constitutional enforcement
seldon.agent-card.json Seldon Research cycles, course production, knowledge transfer
skeptical-auditor.agent-card.json Skeptical Auditor Quality gates, bias detection, claim verification
reflective-architect.agent-card.json Reflective Architect Design specs, systems engineering, grammar design
system-integrator.agent-card.json System Integrator Cross-repo wiring, deployment, MCP federation
kaizen-optimizer.agent-card.json Kaizen Optimizer PDCA cycles, improvement proposals, waste elimination
convolution-agent.agent-card.json Convolution Agent Mathematical analysis, signal processing, proofs
critical-theorist.agent-card.json Critical Theorist Ethical analysis, ideology critique, value alignment
communal-steward.agent-card.json Communal Steward Stakeholder management, community governance
rational-administrator.agent-card.json Rational Administrator Process management, compliance, scheduling
recovery-agent.agent-card.json Recovery Agent Failure diagnosis, rollback, resilience
validator-reflector.agent-card.json Validator Reflector Self-assessment, behavioral validation
virtuous-leader.agent-card.json Virtuous Leader Long-horizon planning, ethical leadership
default.agent-card.json Default Baseline governed behavior

Conversion template: persona-to-agent-card.md

Galactic Protocol + Claude Code Teams Blend

The Galactic Protocol now integrates with Claude Code agent teams (AGENTS.md). The same governance contracts that flow between repos also govern the team:

Demerzel Lead receives GitHub Issue
  → triage by label → assign to teammate
  → teammate runs IxQL pipeline
  → teammate reports compliance
  → Lead updates belief state
  → Galactic Protocol directive if cross-repo action needed

See Agent-Teams for full AGENTS.md team spec.

Key Gap: IxCaller → MCP

TARS's GrammarMlBridge.fs defines IxCaller = string -> string -> Async<Result<string, string>> — the exact shape of an MCP tool call. Wiring this to ix's MCP tools is the P0 integration.

Priority Tool Wiring

ix tools TARS needs (via MCP)

Tool Use Case Priority
ix_ml_pipeline Train classifiers on grammar production features P0
ix_ml_predict Score new productions before execution P0
ix_evolution Breed novel grammar productions P1
ix_governance_check Validate generated directives against constitution P1

TARS tools ix needs (via MCP)

Tool Use Case Priority
Grammar distillation Compress ix pipeline definitions P1
Governance generation Generate valid Galactic Protocol messages P1
AI Function execution LLM-powered analysis on governance data P2

A2A Governance Automation

Demerzel conscience signal (weight >= 0.7)
  → TARS GovernanceGeneration (grammar-constrained directive)
  → ix_governance_check (validate against constitution)
  → Galactic Protocol delivery
  → Consumer repo receives directive
  → Compliance report back to Demerzel

Implementation Phases

  1. Wire IxCaller to MCP — connect TARS GrammarMlBridge to ix tools
  2. Governance automation — conscience → TARS generation → ix validation
  3. Dashboard live data — ix-dashboard queries TARS MCP for agent status
  4. A2A protocols — full bi-directional agent communication
  5. Agent card registry — all 14 cards registered in ix MCP tool catalog

Related Pages

Clone this wiki locally