Production Status: CAM Protocol is production ready as of the v2.0.0 release on May 28, 2025. The v2.1.2 release adds official SDK integrations, response caching, streaming support, rate limiting, a production-ready MCP Gateway with policy enforcement, retry logic, health checks, and OpenTelemetry instrumentation.
Security Status: Core security hardening complete. See Security Checklist for current status. Report vulnerabilities to edwardstechpros@outlook.com.
The Complete Arbitration Mesh (CAM) is a comprehensive platform that combines intelligent orchestration with advanced inter-agent collaboration capabilities. CAM serves as both the central nervous system for your AI integrations and the coordination layer for complex multi-agent collaborations.
Organizations face evolving challenges in the AI space:
- Managing multiple AI providers and their varying capabilities
- Orchestrating collaboration between specialized AI agents
- Optimizing costs while maintaining performance
- Enforcing governance policies across AI usage
- Ensuring reliability through intelligent failover
- Maintaining compliance with regulatory requirements
- Scaling agent ecosystems for complex tasks
- FastPath Routing System - Route requests to optimal AI providers
- Official SDK Integrations - OpenAI, Anthropic, Google, and Azure SDKs
- Streaming Responses - Real-time streaming via async generators
- Response Caching - In-memory LRU + Redis distributed caching
- Rate Limiting - Sliding window per-user and per-provider limits
- Advanced Arbitration Engine - Make decisions based on comprehensive criteria
- Secure Authentication - Protect access to your CAM instance
- Comprehensive Monitoring - Track detailed performance metrics
- Policy Enforcement - Apply governance rules consistently
- Agent Discovery - Find and leverage specialized agents
- Task Decomposition - Break complex tasks into manageable components
- Role-Based Collaboration - Assign specialized roles to agents
- Secure Inter-Agent Messaging - Enable protected agent communication
- Collaboration Marketplace - Access specialized agent capabilities
CAM integrates with Model Context Protocol (MCP) as a governance layer that sits above MCP servers, providing policy enforcement, intelligent routing, and audit capabilities.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Your AI Application β
βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CAM MCP Gateway β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
β β Policies β β Arbitration β β Audit β β
β β Trust Tiers β β Scoring β β Logging β β
β β Rate Limits β β Cost/Latencyβ β Tracing β β
β ββββββββββββββββ ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββΌβββββββββββββββββββββββ
βΌ βΌ βΌ
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β MCP Server A β β MCP Server B β β MCP Server C β
β (File System) β β (Database) β β (Web Search) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
| MCP Provides | CAM Adds |
|---|---|
| Tool discovery | Policy-based tool selection |
| Server connections | Trust tier enforcement |
| Tool execution | Cost/latency arbitration |
| β | Audit logging with trace IDs |
| β | Rate limiting per tenant |
| β | Data classification filtering |
import { MCPGateway } from '@cam-protocol/complete-arbitration-mesh/mcp';
const gateway = new MCPGateway({
servers: [
{ id: 'fs', name: 'filesystem', transport: 'stdio', command: 'mcp-fs', trustTier: 'trusted', enabled: true },
{ id: 'web', name: 'websearch', transport: 'sse', endpoint: 'http://localhost:3001', trustTier: 'standard', enabled: true },
],
policies: [{
id: 'no-pii-external',
name: 'Block PII to external tools',
description: 'Deny tool calls that handle PII data',
priority: 100,
enabled: true,
conditions: [{ field: 'tool.dataClassifications', operator: 'contains', value: 'pii' }],
actions: ['deny'],
}],
defaults: {
timeout: 30000,
maxRetries: 2,
retryDelayMs: 500,
defaultTrustTier: 'standard',
protocolVersion: '2025-11-25',
},
rateLimit: { enabled: true, requestsPerMinute: 100 },
audit: { enabled: true, retentionDays: 30, includeArguments: true, includeResults: false },
});
await gateway.initialize();
// CAM selects best tool, enforces policies, logs decision
const result = await gateway.callTool({
toolName: 'search',
arguments: { query: 'latest news' },
tenantId: 'tenant-123',
});
console.log(result.traceId); // Audit trace
console.log(result.serverId); // Which MCP server was usedSee docs/architecture/MCP-ENHANCEMENT-PLAN.md for the full integration roadmap.
# Install the Complete Arbitration Mesh
npm install @cam-protocol/complete-arbitration-mesh
# Or using Docker
docker run -p 8080:8080 cam-protocol/complete-arbitration-mesh:latestFor a full-featured environment including CAM Protocol, a toy LLM, and monitoring:
# Clone the repository
git clone https://github.com/Complete-Arbitration-Mesh/CAM-PROTOCOL.git
# Start the quickstart environment
cd CAM-PROTOCOL/examples/quickstart
docker-compose up -d
# Test it with a simple request
curl localhost:8080/mesh/chat -d '{"message":"Hello CAM!"}' -H "Content-Type: application/json" -H "Authorization: Bearer demo-key-for-quickstart"See examples/quickstart for more details.
# Try our value demonstration script
npm run demo:valueCAM Protocol provides SDKs for multiple languages. Here are examples in TypeScript, Python, and Go:
TypeScript/JavaScript (SDK Documentation)
import { CompleteArbitrationMesh } from '@cam-protocol/complete-arbitration-mesh';
const cam = new CompleteArbitrationMesh({
apiKey: process.env.CAM_API_KEY,
endpoint: 'https://api.complete-cam.com'
});
// Intelligent routing (original CAM functionality)
const routingResult = await cam.routeRequest({
prompt: "Analyze this dataset",
requirements: { cost: "optimize", performance: "balanced" }
});
// Agent collaboration (new IACP functionality)
const collaboration = await cam.initiateCollaboration({
task: "Complex data analysis and visualization",
requirements: ["data-analyst", "visualization-expert"],
decomposition: "auto"
});Python (SDK Documentation)
from cam_protocol import CompleteArbitrationMesh
# Initialize the CAM client
cam = CompleteArbitrationMesh(
api_key=os.environ.get("CAM_API_KEY"),
endpoint="https://api.complete-cam.com"
)
# Intelligent routing
routing_result = cam.route_request(
prompt="Analyze this dataset",
requirements={"cost": "optimize", "performance": "balanced"}
)
# Agent collaboration
collaboration = cam.initiate_collaboration(
task="Complex data analysis and visualization",
requirements=["data-analyst", "visualization-expert"],
decomposition="auto"
)Go (SDK Documentation)
package main
import (
"os"
"github.com/complete-arbitration-mesh/cam-protocol-go"
)
func main() {
// Initialize the CAM client
cam, err := camprotocol.NewClient(
camprotocol.WithAPIKey(os.Getenv("CAM_API_KEY")),
camprotocol.WithEndpoint("https://api.complete-cam.com"),
)
if err != nil {
panic(err)
}
// Intelligent routing
routingResult, err := cam.RouteRequest(camprotocol.RouteRequest{
Prompt: "Analyze this dataset",
Requirements: map[string]string{
"cost": "optimize",
"performance": "balanced",
},
})
// Agent collaboration
collaboration, err := cam.InitiateCollaboration(camprotocol.CollaborationRequest{
Task: "Complex data analysis and visualization",
Requirements: []string{"data-analyst", "visualization-expert"},
Decomposition: "auto",
})
}The Complete Arbitration Mesh integrates three systems:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Complete Arbitration Mesh β
βββββββββββββββββββββββ¬ββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββ€
β Routing System β MCP Gateway β Inter-Agent Collaboration β
β (CAM Core) β (Preview) β Protocol (IACP) β
βββββββββββββββββββββββΌββββββββββββββββββββββΌββββββββββββββββββββββββββββββ€
β β’ FastPath Routing β β’ MCP Server Mgmt β β’ Agent Discovery β
β β’ Provider Selectionβ β’ Policy Arbitrationβ β’ Task Decomposition β
β β’ Cost Optimization β β’ Trust Tiers β β’ Role-Based Collaboration β
β β’ Rate Limiting β β’ Audit Logging β β’ Secure Messaging β
βββββββββββββββββββββββ΄ββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββ
β Shared Infrastructure β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β’ Authentication & Authorization β’ Provider/MCP Connectors β
β β’ State Management β’ Metrics & Telemetry (OTel) β
β β’ Configuration β’ Security Layer β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
For a complete overview of all documentation, see our Documentation Index.
- Compliance Checklist
- Privacy Policy
- Terms of Service
- GDPR Compliance
- CCPA Compliance
- Security Policy
- Security Pre-Launch Checklist
- Data Processing Agreement
# Clone the repository
git clone https://github.com/Complete-Arbitration-Mesh/CAM-PROTOCOL.git
cd CAM-PROTOCOL
# Install dependencies
npm install
# Start development server
npm run dev
# Run tests
npm test
# Run benchmarks
npm run benchmark:cost
npm run benchmark:collaboration
# Build for production
npm run buildThe Complete Arbitration Mesh takes security seriously:
- Enterprise Authentication - SAML, LDAP, OAuth 2.0
- Zero-Trust Architecture - Every request is authenticated and authorized
- End-to-End Encryption - All communications are encrypted
- Audit Logging - Comprehensive audit trails for compliance
- FIPS Compliance - Available in Enterprise tier
See Security Checklist for detailed security controls and deployment guidance.
CAM Protocol is available in three editions. See EDITIONS.md for complete details.
| Feature | Community | Pro | Enterprise |
|---|---|---|---|
| Core Routing Engine | β | β | β |
| Basic MCP Gateway | β | β | β |
| Basic Policies | β | β | β |
| Redis Caching | β | β | β |
| Rate Limiting | β | β | β |
| OpenTelemetry | β | β | β |
| Multi-Tenant | β | β | β |
| SSO/SAML | β | β | β |
| RBAC | β | β | β |
| Signed Audit | β | β | β |
| Support | GitHub Issues | Dedicated | |
| Price | Free | $99/mo | Custom |
Get Started: npm install @cam-protocol/complete-arbitration-mesh β Community edition works out of the box!
We welcome contributions! Please see our Contributing Guide for details.
CAM Protocol Community Edition is open source under the Apache License 2.0.
| Edition | License | Usage |
|---|---|---|
| Community | Apache-2.0 | Free for any use |
| Pro | Commercial | Requires license key |
| Enterprise | Commercial | Requires license agreement |
import { licenseManager, checkFeature } from '@cam-protocol/complete-arbitration-mesh';
// Community features work immediately
console.log(licenseManager.getEdition()); // 'community'
// Activate Pro/Enterprise with your license key
licenseManager.activateLicense('your-license-key');
// Check feature availability
if (checkFeature('redisCaching')) {
// Use Pro/Enterprise feature
}Purchase Pro/Enterprise: EdwardsTechPros@Outlook.com | EDITIONS.md
For complete licensing details including open source dependencies, see LICENSES.md.
- Community: GitHub Discussions
- Professional: Email support (business hours)
- Enterprise: 24/7 premium support
See our public roadmap for upcoming features and improvements.
Run the benchmarks yourself to measure CAM's impact in your environment:
Intelligent routing can reduce API costs by selecting optimal providers per request.
# Run cost benchmark (compares routing strategies)
npm run benchmark:cost
# Output: costs.json with per-provider breakdownTask decomposition + role-based routing improves complex task completion.
# Run collaboration benchmark
npm run benchmark:collaboration
# Output: collaboration-results.jsonAutomatic failover and health-based routing maintain availability.
# Run reliability simulation
npm run demo:value
# Output: failover timing + recovery metricsClaims & Methodology: Performance claims are based on controlled benchmarks using mock providers. Actual results vary significantly based on your provider latency, pricing, workload patterns, and configuration. Run the benchmarks in your environment for accurate measurements.
See docs/benchmarks/methodology.md for complete methodology including environment assumptions, scripts, and how metrics are computed.
The CAM Protocol is designed with security and compliance at its core:
- Privacy Policy - How we handle user data
- Terms of Service - Rules for using our service
- GDPR Compliance - EU data protection compliance
- CCPA Compliance - California privacy compliance
- Security Policy - Our security practices
- Data Processing Agreement - For processing customer data
- Acceptable Use Policy - Guidelines for acceptable use
- Service Level Agreement - Our uptime and performance guarantees
Complete Arbitration Mesh - Intelligent orchestration and collaboration for the AI-powered future.
