Skip to content

MCP Configuration

The server reads configuration from two sources, in priority order:

  1. orchestration.toml — workload profiles, model class mappings, fan-out settings
  2. Environment variables — skill gates, debug flags, secrets

The server looks for orchestration.toml at:

.mcp-ai-agent-guidelines/config/orchestration.toml

relative 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).

[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 = true

See Orchestration Concepts for the full profile reference.

VariableDefaultPurpose
ENABLE_PHYSICS_SKILLSfalseUnlock all 30 QM + GR physics skills (qm-*, gr-*)
ENABLE_ADAPTIVE_ROUTINGfalseUnlock 5 adapt-* bio-inspired routing skills
ENABLE_GOVERNANCE_STRICTfalseRequire human-in-the-loop for all gov-* skill calls
Terminal window
# Enable physics skills
ENABLE_PHYSICS_SKILLS=true npx mcp-ai-agent-guidelines
VariablePurpose
SESSION_HMAC_SECRET32-byte hex secret for HMAC session integrity signing
SESSION_EXPIRY_SECONDSSession token TTL (default: 86400)
VariableDefaultPurpose
LOG_LEVELinfoPino log level: trace, debug, info, warn, error
LOG_PRETTYfalseEnable pino-pretty human-readable output
LOG_MCP_CALLSfalseLog each MCP tool call and its routing decision
VariablePurpose
DEBUG_SKILL_DISPATCHLog which skills each instruction invokes
DEBUG_MODEL_SELECTIONLog model role resolution from orchestration.toml

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"
}
}
}
}
{
"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}"
}
}
}
}
}
  • Directorymcp-ai-agent-guidelines/
    • Directory.mcp-ai-agent-guidelines/
      • Directoryconfig/
        • orchestration.toml
    • Directorydist/
      • index.js
    • Directorysrc/
Terminal window
# Build
npm run build
# Run with custom config
cd /path/to/your/project
ENABLE_PHYSICS_SKILLS=true LOG_LEVEL=debug node /path/to/dist/index.js
ModeWhenConfiguration
Single sessionCLI / one-shot toolsDefault
Continuous agentVS Code Copilot, Clinetask-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.