Supports deployment on Kubernetes clusters with features for zero-downtime updates, health monitoring, and external access via LoadBalancer services.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Agentic Frameworklist all registered agents and broadcast a request for a code review"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Agentic Framework
A Model Context Protocol (MCP) based communication framework that enables multiple AI agents to collaborate through asynchronous messaging. Built with Test-Driven Development (TDD) and functional programming principles.
Overview
This framework provides a standardized way for multiple Claude agents (or other MCP-compatible agents) to:
Register themselves with unique identities
Discover other registered agents
Exchange messages asynchronously
Send broadcasts to all agents
Work together on complex tasks
The framework uses file-based storage for simplicity and portability, making it easy to run without external dependencies.
Comparison with Claude Code Sub-agents
This framework provides a different approach to multi-agent collaboration compared to Claude Code's sub-agents feature.
Aspect | Claude Code Sub-agents | MCP Agentic Framework |
Architecture | Static configuration files | Dynamic agent registration |
Context | Isolated per task | Shared across agents with individual message queues |
Communication | One-way (Claude invokes agent) | Bidirectional (agents communicate with each other) |
Configuration | YAML frontmatter + system prompt | Runtime registration with name and description |
Flexibility | Predefined behavior | Runtime-adaptable interaction patterns |
Storage |
| File-based message queue system |
Tool Access | Fixed at configuration time | Determined by MCP server configuration |
When to Use Each Approach
Use Claude Code Sub-agents when:
Tasks are well-defined and repetitive (code review, debugging, testing)
Consistent, predictable behavior is required
Working independently on specific problems
Need to preserve main conversation context
Use MCP Agentic Framework when:
Real-time collaboration between multiple agents is needed
Tasks require discussion, negotiation, or consensus
Problem-solving benefits from diverse perspectives
Building distributed workflows with agent coordination
Both systems can be complementary: MCP agents can collaborate to design and refine sub-agent configurations, while sub-agents can handle routine tasks identified by MCP agent discussions.
Kubernetes Deployment
The MCP Agentic Framework can be deployed on Kubernetes for production use with high availability and easy management.
Prerequisites
Kubernetes cluster with MetalLB LoadBalancer (or similar)
Docker Hub account (or other container registry)
justcommand runner installed (cargo install just)
Quick Start
Clone and navigate to the framework:
Deploy with the Justfile:
Get the LoadBalancer IP:
Update Claude configuration (
~/.claude.json):
Managing the Deployment
Features
Zero-downtime deployments with rolling updates
Automatic version management with semantic versioning
Health checks with automatic restarts
Persistent LoadBalancer IP via MetalLB
Web UI for monitoring agent communications (auto-opens on first agent)
Architecture
The Kubernetes deployment includes:
Deployment: Single replica with health/readiness probes
LoadBalancer Service: Stable external IP for Claude access
ClusterIP Service: Internal cluster communication
Kubernetes Manifests
Located in k8s/ directory:
deployment.yaml- Main application deploymentloadbalancer-service.yaml- External access via MetalLB
Architecture
Installation
Clone the repository:
Install dependencies:
Run tests to verify installation:
Usage with Claude Desktop or Claude Code
Using HTTP Transport
To use the HTTP transport:
Start the HTTP server:
npm run start:httpAdd the above configuration to your
~/.claude.jsonRestart Claude Desktop
Note: The HTTP transport supports Server-Sent Events (SSE)
HTTP Endpoints
When running with npm run start:http, the following endpoints are available:
/mcp- Main MCP endpoint for agent communication/health- Health check endpoint that returns:{ "status": "ok", "name": "mcp-agentic-framework", "version": "1.0.0" }
Available Tools
register-agent
Register a new agent in the system.
Parameters:
name(string, required): Agent's display namedescription(string, required): Agent's role and capabilitiesinstanceId(string, optional): Instance identifier for automatic deregistration
Example:
unregister-agent
Remove an agent from the system.
Parameters:
id(string, required): Agent's unique identifier
discover-agents
List all currently registered agents.
Parameters: None
Response Example:
send-message
Send a message from one agent to another.
Parameters:
to(string, required): Recipient agent's IDfrom(string, required): Sender agent's IDmessage(string, required): Message content
check-for-messages
Retrieve unread messages for an agent. Messages are automatically deleted after reading.
Parameters:
agent_id(string, required): Agent's ID to check messages for
Response Example:
update-agent-status
Update an agent's status (online, offline, busy, away).
Parameters:
agent_id(string, required): Agent's IDstatus(string, required): New status (one of: online, offline, busy, away)
send-broadcast
Send a broadcast message to all registered agents (except the sender).
Parameters:
from(string, required): Sender agent's IDmessage(string, required): Broadcast message contentpriority(string, optional): Priority level (low, normal, high). Defaults to 'normal'
Features:
Messages are delivered to all agents except the sender
Works without requiring agents to subscribe
Returns the number of recipients
Messages are prefixed with priority level (e.g., "[BROADCAST HIGH]")
Example:
Response:
get-pending-notifications
Retrieve pending notifications for an agent.
Parameters:
agent_id(string, required): Agent's ID
Example Use Cases
Multi-Agent Collaboration
Using Broadcasts
The improved broadcast feature allows efficient communication with all agents:
Development
Running Tests
Storage
The framework stores data in /tmp/mcp-agentic-framework/:
agents.json: Registered agents with status and activity trackingmessages/*.json: Individual message files (one per message)
Security Considerations
Input validation on all tool parameters
File-based locking prevents race conditions
No path traversal vulnerabilities
Messages are stored locally only
No external network calls
API Reference
Agent Object
Message Object
Practical Use Cases
1. Orchestrated Task Processing
2. Distributed Code Review
3. Emergency Coordination
Troubleshooting
Common Issues
Broadcasts not received
Ensure sender agent is registered
Check recipient agents are registered
Remember sender doesn't receive own broadcasts
"Agent not found" errors
Verify agent registration
Use
discover-agentsto list all agentsCheck agent IDs are correct
Messages not received
Messages are deleted after reading
Each message can only be read once
Check correct agent ID
License
MIT License