MCP Configuration
Configuration Files
Section titled “Configuration Files”The server reads configuration from two sources, in priority order:
orchestration.toml— workload profiles, model class mappings, fan-out settings- Environment variables — skill gates, debug flags, secrets
orchestration.toml Location
Section titled “orchestration.toml Location”The server looks for orchestration.toml at:
.mcp-ai-agent-guidelines/config/orchestration.tomlrelative to the working directory. If not found, built-in defaults from src/config/orchestration-defaults.ts are used (strict mode fails fast if the primary file cannot be loaded).
Minimal orchestration.toml
Section titled “Minimal orchestration.toml”[profiles.default]requires = ["fast_draft"]fan_out = 1
[profiles.research]requires = ["cost_sensitive"]fan_out = 3
[profiles.governance]requires = ["security_audit", "adversarial"]human_in_loop = trueSee Orchestration Concepts for the full profile reference.
Environment Variables
Section titled “Environment Variables”Skill Gates
Section titled “Skill Gates”| Variable | Default | Purpose |
|---|---|---|
ENABLE_PHYSICS_SKILLS | false | Unlock all 30 QM + GR physics skills (qm-*, gr-*) |
ENABLE_ADAPTIVE_ROUTING | false | Unlock 5 adapt-* bio-inspired routing skills |
ENABLE_GOVERNANCE_STRICT | false | Require human-in-the-loop for all gov-* skill calls |
# Enable physics skillsENABLE_PHYSICS_SKILLS=true npx mcp-ai-agent-guidelinesSession Security
Section titled “Session Security”| Variable | Purpose |
|---|---|
SESSION_HMAC_SECRET | 32-byte hex secret for HMAC session integrity signing |
SESSION_EXPIRY_SECONDS | Session token TTL (default: 86400) |
Logging
Section titled “Logging”| Variable | Default | Purpose |
|---|---|---|
LOG_LEVEL | info | Pino log level: trace, debug, info, warn, error |
LOG_PRETTY | false | Enable pino-pretty human-readable output |
LOG_MCP_CALLS | false | Log each MCP tool call and its routing decision |
| Variable | Purpose |
|---|---|
DEBUG_SKILL_DISPATCH | Log which skills each instruction invokes |
DEBUG_MODEL_SELECTION | Log model role resolution from orchestration.toml |
Claude Desktop (macOS)
Section titled “Claude Desktop (macOS)”Config file: ~/Library/Application Support/Claude/claude_desktop_config.json
{ "mcpServers": { "ai-agent-guidelines": { "command": "npx", "args": ["-y", "mcp-ai-agent-guidelines@latest"], "env": { "ENABLE_PHYSICS_SKILLS": "true", "LOG_LEVEL": "warn" } } }}VS Code (User Settings JSON)
Section titled “VS Code (User Settings JSON)”{ "mcp": { "servers": { "ai-agent-guidelines": { "command": "npx", "args": ["-y", "mcp-ai-agent-guidelines@latest"], "env": { "ENABLE_PHYSICS_SKILLS": "true", "SESSION_HMAC_SECRET": "${env:MCP_SESSION_HMAC_SECRET}" } } } }}Local Development (from source)
Section titled “Local Development (from source)”Directorymcp-ai-agent-guidelines/
Directory.mcp-ai-agent-guidelines/
Directoryconfig/
- orchestration.toml
Directorydist/
- index.js
Directorysrc/
- …
# Buildnpm run build
# Run with custom configcd /path/to/your/projectENABLE_PHYSICS_SKILLS=true LOG_LEVEL=debug node /path/to/dist/index.jsMulti-Session vs Single-Session
Section titled “Multi-Session vs Single-Session”| Mode | When | Configuration |
|---|---|---|
| Single session | CLI / one-shot tools | Default |
| Continuous agent | VS Code Copilot, Cline | task-bootstrap auto-chains; periodic reactivation via reactivationPolicy: "periodic" |
The task-bootstrap tool triggers agent-snapshot, agent-session, and agent-memory as preconditions before scope analysis — this loads the codebase baseline and session artifacts automatically.