project_structure.txt•2.86 kB
LocalMCP/
├── docker-compose.yml # Container orchestration for Redis, monitoring
├── .env.example # Environment variables template
├── requirements.txt # Python dependencies
├── package.json # Node.js dependencies for MCP servers
├── README.md # Project documentation
│
├── src/
│ ├── core/
│ │ ├── __init__.py
│ │ ├── orchestrator.py # Semantic tool orchestration
│ │ ├── circuit_breaker.py # Circuit breaker implementation
│ │ ├── cache_manager.py # Multi-layer caching
│ │ └── context_optimizer.py # Context window management
│ │
│ ├── mcp/
│ │ ├── __init__.py
│ │ ├── client.py # MCP client implementation
│ │ ├── server.py # Base MCP server
│ │ ├── tool_registry.py # Dynamic tool discovery
│ │ └── protocol_handler.py # MCP protocol handling
│ │
│ ├── llm/
│ │ ├── __init__.py
│ │ ├── gateway.py # Multi-LLM gateway
│ │ ├── router.py # Intelligent routing
│ │ └── providers/ # LLM provider implementations
│ │ ├── openai.py
│ │ ├── anthropic.py
│ │ └── local.py
│ │
│ ├── terminal/
│ │ ├── __init__.py
│ │ ├── interface.py # Terminal UI
│ │ ├── agent.py # AI agent controller
│ │ └── commands.py # Command handling
│ │
│ └── monitoring/
│ ├── __init__.py
│ ├── metrics.py # Metrics collection
│ ├── tracing.py # Distributed tracing
│ └── health.py # Health checks
│
├── mcp_servers/ # Custom MCP servers
│ ├── filesystem/
│ │ ├── server.py
│ │ └── package.json
│ ├── database/
│ │ ├── server.py
│ │ └── package.json
│ └── custom_tools/
│ ├── server.py
│ └── package.json
│
├── config/
│ ├── mcp_servers.json # MCP server configurations
│ ├── llm_providers.json # LLM provider settings
│ └── monitoring.yml # Monitoring configuration
│
├── tests/
│ ├── unit/
│ ├── integration/
│ └── benchmarks/
│
└── scripts/
├── setup.sh # Initial setup script
├── start_servers.sh # Start all MCP servers
└── benchmark.py # Performance benchmarking