Model Context Protocol (MCP) microservices orchestration platform s unified HTTP interface
MCP Orchestration Platform je enterprise-level microservices systém implementující Model Context Protocol (MCP) specifikaci. Poskytuje unified HTTP interface pro AI agenty a aplikace s 28+ specializovanými nástroji napříč 7 core službami.
┌─────────────────┐ ┌──────────────────────────────────────┐
│ HTTP Client │────│ ZEN Coordinator │
└─────────────────┘ │ (Port 7000) │
│ HTTP ↔ MCP Protocol Bridge │
└──────────────────────────────────────┘
│
┌──────────────────┼──────────────────┐
│ │ │
┌──────────▼────┐ ┌─────────▼────┐ ┌─────────▼────┐
│ Filesystem MCP │ │ Memory MCP │ │ Terminal MCP │
│ (7001) │ │ (7005) │ │ (7003) │
└───────────────┘ └──────────────┘ └──────────────┘
│ │ │
└──────────────────┼──────────────────┘
│
┌──────────────────▼──────────────────┐
│ Shared Infrastructure │
│ PostgreSQL │ Redis │ Qdrant Vector │
│ (5432) │ (6379)│ (6333) │
└─────────────────────────────────────┘
Platforma implementuje Zero Trust security model:
git clone https://github.com/milhy545/orchestration.git
cd orchestration
# Copy environment template
cp .env.example .env
# Edit .env with your API keys
nano .env
# Start all services
docker-compose up -d
# Verify health
./scripts/health-check.sh
# Run comprehensive tests
./tests/unit/orchestration_workflow_test.sh
# Performance benchmarking
./tests/performance/stress_load_test.sh
Vytvořte .env soubor s následujícími proměnnými:
# Database Configuration
MCP_DATABASE_URL=postgresql://mcp_admin:change_me_in_production@postgresql:5432/mcp_unified
POSTGRES_DB=mcp_unified
POSTGRES_USER=mcp_admin
POSTGRES_PASSWORD=change_me_in_production
# Redis Configuration
REDIS_URL=redis://redis:6379
# Qdrant Vector Database
QDRANT_URL=http://qdrant-vector:6333
# API Keys
PERPLEXITY_API_KEY=your_perplexity_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
ANTHROPIC_API_KEY=your_anthropic_api_key_here
# Security
JWT_SECRET_KEY=your_jwt_secret_key_here
ENCRYPTION_KEY=your_encryption_key_here
Účel: File operations a filesystem management
Nástroje:
file_read - Čtení souborůfile_write - Zápis souborůfile_list - Listování adresářůfile_search - Vyhledávání souborůfile_analyze - Analýza souborůÚčel: Version control operations
Nástroje:
git_status - Git statusgit_commit - Git commitgit_push - Git pushgit_pull - Git pullgit_log - Git logÚčel: Command execution a system operations
Nástroje:
execute_command - Spuštění příkazůsystem_info - System informationprocess_list - Seznam procesůdisk_usage - Disk usageÚčel: Simple key-value storage
Nástroje:
store_memory - Uložení pamětisearch_memories - Vyhledávání pamětiretrieve_memory - Načtení pamětidelete_memory - Smazání pamětiGET /health
Response:
{
"status": "healthy",
"timestamp": "2024-01-15T10:30:00Z",
"services": {
"postgresql": "healthy",
"redis": "healthy",
"qdrant": "healthy"
}
}
GET /services
Response:
{
"services": [
{
"name": "filesystem-mcp",
"port": 7001,
"status": "healthy",
"tools": ["file_read", "file_write", "file_list"]
}
]
}
POST /mcp
Content-Type: application/json
{
"tool": "file_read",
"arguments": {
"path": "/path/to/file.txt"
}
}
tests/
├── unit/ # Unit testy
│ ├── memory_crud_test.sh
│ └── orchestration_workflow_test.sh
├── performance/ # Performance testy
│ └── stress_load_test.sh
├── security/ # Security testy
│ └── security_assessment_test.sh
└── failure/ # Failure recovery testy
└── failure_recovery_test.sh
# Všechny testy
./tests/run_all_tests.sh
# Unit testy
./tests/unit/orchestration_workflow_test.sh
# Performance testy
./tests/performance/stress_load_test.sh
# Security testy
./tests/security/security_assessment_test.sh
# Failure recovery testy
./tests/failure/failure_recovery_test.sh
# System health check
./scripts/health-check.sh
# Service status monitoring
docker ps --format 'table {{.Names}}\t{{.Status}}'
# Resource monitoring
docker stats
# ZEN Coordinator logs
docker logs mega-orchestrator
# Specific service logs
docker logs mcp-filesystem
# All services logs
docker-compose logs
Claude Agent je pokročilý AI systém pro koordinaci MCP služeb:
haiku_agent.py - Hlavní Claude agentclaude_session_bridge.py - Session managementanthropic_oauth_setup.py - OAuth setupclaude_agent_start.sh - Spouštěcí skript# Start Claude Agent
cd claude-agent
./claude_agent_start.sh
# Test agent
python test_agent.py
# Production environment
export NODE_ENV=production
export LOG_LEVEL=info
export ENABLE_METRICS=true
# Run migrations
./scripts/migrate-to-postgresql.py
# Backup before migration
./scripts/backup-databases.sh
# Check logs
docker logs [service-name]
# Check health
curl http://localhost:7000/health
# Restart service
docker-compose restart [service-name]
# Check PostgreSQL
docker exec -it mcp-postgresql psql -U mcp_admin -d mcp_unified
# Check Redis
docker exec -it mcp-redis redis-cli ping
# Redis caching
@cache.memoize(timeout=300)
def expensive_operation():
# Expensive computation
pass
-- Index optimization
CREATE INDEX idx_memory_type ON memories(memory_type);
CREATE INDEX idx_importance ON memories(importance);
# Development environment
git clone https://github.com/milhy545/orchestration.git
cd orchestration
# Install dependencies
pip install -r requirements.txt
npm install
# Start development services
docker-compose -f docker-compose.dev.yml up -d
MCP Orchestration Platform je kompletní enterprise architecture která demonstruje:
Perfektní pro learning, extending, nebo použití jako foundation pro production systems.