The Coding system uses self-contained integration components, each maintained as a separate application with its own repository structure and comprehensive documentation.
Each integration component:
- Self-Contained - Complete with own README, docs, tests, and dependencies
- Well-Documented - Comprehensive documentation in component directory
- Independently Maintained - Own versioning and release cycle
- Loosely Coupled - Communicates via standard protocols (MCP, HTTP, CLI)
- Easily Replaceable - Can be swapped without affecting core system
Location: integrations/mcp-server-semantic-analysis/
What it provides:
- 14 specialized AI agents for code analysis (including code graph and ontology classification)
- Repository scanning and pattern extraction
- AST-based code indexing via Memgraph
- Ontology classification for knowledge entities
- PlantUML diagram generation
- Knowledge base synchronization
- Comprehensive semantic analysis workflows
Documentation: mcp-semantic-analysis.md | Full README
Location: integrations/mcp-constraint-monitor/
What it provides:
- Real-time constraint enforcement via PreToolUse hooks
- 18 configurable constraints across 4 severity levels
- REST API (port 3031) and Dashboard UI (port 3030)
- Compliance scoring and violation tracking
- Interactive and automated testing frameworks
Documentation: mcp-constraint-monitor.md | Full README
Location: integrations/code-graph-rag/
What it provides:
- Graph-based code analysis using Memgraph
- Semantic code search and relationship mapping
- Call graph analysis and dependency tracing
- MCP tools for querying code structure
- Visual graph exploration via Memgraph Lab
Ports: Memgraph (7687), Lab UI (3100) - configured in .env.ports
Documentation: code-graph-rag.md | GitHub
Location: integrations/vscode-km-copilot/
What it provides:
- Enhanced GitHub CoPilot with knowledge management
- Command palette integration (View/Update KB)
- CoPilot chat commands (
@KM) - Seamless UKB/VKB access from VSCode
Documentation: vscode-copilot.md | Full README
The core systems communicate with integrations through different protocols:
LSL System:
- Uses fast LLM providers (Groq/OpenAI) for Layer 4 semantic classification
- Does NOT use the 14-agent MCP Semantic Analysis server (that's for deep analysis)
- Classification happens in milliseconds with budget-conscious models
Trajectory Generation:
- Uses MCP Semantic Analysis (14 agents, 11 use LLM) for deep repository insights
- Comprehensive architectural pattern extraction
Constraint Monitoring:
- Uses PreToolUse hooks to intercept tool calls before execution
- MCP Constraint Monitor provides dashboard and API (ports 3030/3031)
MCP (Model Context Protocol)
- Primary integration method for Claude Code
- Standardized tool definitions
- Bi-directional communication
- Resource and prompt support
HTTP APIs
- REST endpoints for dashboards
- Webhook support for events
- Status monitoring endpoints
CLI Commands
- Direct script execution
- Shell integration
- Pipe-able output
File-Based
- Shared JSON files (knowledge base)
- LSL markdown files
- Configuration files
All integrations are installed via main installer:
cd ~/Agentic/coding
./install.sh
# This installs:
# ✓ MCP Semantic Analysis Server
# ✓ MCP Constraint Monitor
# ✓ VSCode CoPilot Extension (optional)To install specific integration:
cd integrations/<integration-name>
npm install
npm run build # if applicable
# Follow integration-specific setup in its READMEMCP servers are configured in Claude Code's config:
Location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"semantic-analysis": {
"command": "node",
"args": ["/path/to/coding/integrations/mcp-server-semantic-analysis/build/index.js"]
},
"constraint-monitor": {
"command": "node",
"args": ["/path/to/coding/integrations/mcp-constraint-monitor/src/mcp-server.js"]
},
"code-graph-rag": {
"command": "node",
"args": ["/path/to/coding/integrations/code-graph-rag/build/index.js"]
}
}
}-
Create Component Directory
mkdir integrations/my-integration cd integrations/my-integration -
Initialize with README
npm init # Create comprehensive README.md -
Implement Interface
- MCP server (for Claude Code)
- HTTP API (for dashboards)
- CLI commands (for shell)
-
Add to Installer
# Update install.sh to include new integration -
Document Integration
# Create docs/integrations/my-integration.md
- Self-contained directory structure
- Comprehensive README.md
- API/CLI documentation
- Installation instructions
- Configuration examples
- Usage examples
- Troubleshooting guide
- Integration tests
- Version management
# Check Claude Code config
cat ~/.config/Claude/claude_desktop_config.json
# Check server logs
ls ~/.claude/logs/mcp*.log
tail ~/.claude/logs/mcp-semantic-analysis.log
# Test server directly
node integrations/mcp-server-semantic-analysis/build/index.js# Verify installation
ls integrations/<integration-name>
# Check dependencies
cd integrations/<integration-name>
npm install
# Test standalone
npm test # if tests available# Check what's using ports
lsof -i :3030 # Constraint Dashboard
lsof -i :3031 # Constraint API
lsof -i :8080 # Memory Visualizer
# Kill conflicting process
kill <PID>- System Overview - How integrations fit into overall system
- Getting Started - Installation and setup
- Architecture - System design and patterns
Each integration maintains its own comprehensive documentation. See individual component READMEs for detailed information.
