Research-Stack/.mcp.json
allaun 2cbba82406 feat(agent): break-glass MCP agent for novel problem attacks
Last-resort multi-model panel via OpenRouter Fusion. Only invoked
when all other approaches (local model, single frontier, existing
skills) have failed on the same problem.

Architecture:
- Problem classification (lean_proof, code_bug, architecture, math_novel, infra_debug)
- Per-type model panel selection (Opus + DeepSeek + Gemini for proofs)
- Context assembly (files, build logs, AGENTS.md constraints)
- OpenRouter Fusion call (parallel panel + judge synthesis)
- Structured output (diagnosis, solution, alternatives, risks, cost)

Safety:
- Explicit 'break glass:' trigger required
- Cost gate: /usr/bin/bash.30-.50 per invocation, .00/session cap
- Rate limit: 3 invocations per session
- Audit trail via ContextStream

Files:
- 4-Infrastructure/shim/break_glass_mcp.py (MCP server)
- 6-Documentation/docs/specs/break_glass_mcp_agent.md (design spec)
- .opencode/skills/break-glass/SKILL.md (skill definition)
- .mcp.json (server registration)
2026-06-22 15:33:16 -05:00

119 lines
4.5 KiB
JSON

{
"$schema": "https://modelcontextprotocol.io/schemas/2025-03-26/client-config.json",
"_comment": "Minimal MCP config for OpenCode in Research Stack. Disables rarely-used servers to reduce memory pressure. For a full list see ../.mcp.json.",
"mcpServers": {
"filesystem": {
"_comment": "Read/write proof artifacts, Lean kernels, and receipts.",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"env": {}
},
"git": {
"_comment": "Git history navigation: diff, blame, log.",
"command": "uvx",
"args": ["mcp-server-git", "--repository", "."],
"env": {}
},
"fetch": {
"_comment": "HTTP fetch for docs, RFCs, release notes.",
"command": "uvx",
"args": ["mcp-server-fetch"],
"env": {}
},
"contextstream": {
"_comment": "Persistent memory/context/search. Disable ene-contextstream when this is enabled.",
"command": "npx",
"args": ["--prefer-online", "-y", "@contextstream/mcp-server@latest"],
"env": {
"CONTEXTSTREAM_API_URL": "https://api.contextstream.io",
"CONTEXTSTREAM_API_KEY": "${CONTEXTSTREAM_API_KEY}",
"CONTEXTSTREAM_ALLOW_HEADER_AUTH": "false",
"CONTEXTSTREAM_WORKSPACE_ID": "21c133f6-6854-4e81-b801-4037c11b7e34",
"CONTEXTSTREAM_PROJECT_ID": "ef91cc79-aae3-4765-ae0d-63b48f5ea6e6",
"CONTEXTSTREAM_USER_AGENT": "contextstream-mcp/0.4.74",
"CONTEXTSTREAM_TOOLSET": "complete",
"CONTEXTSTREAM_LOG_LEVEL": "quiet",
"CONTEXTSTREAM_OUTPUT_FORMAT": "compact",
"CONTEXTSTREAM_CONTEXT_PACK": "true",
"CONTEXTSTREAM_TRANSCRIPTS_ENABLED": "true",
"CONTEXTSTREAM_HOOK_TRANSCRIPTS_ENABLED": "true",
"CONTEXTSTREAM_SHOW_TIMING": "false",
"CONTEXTSTREAM_PROGRESSIVE_MODE": "false",
"CONTEXTSTREAM_ROUTER_MODE": "false",
"CONTEXTSTREAM_CONSOLIDATED": "true",
"CONTEXTSTREAM_AUTO_HIDE_INTEGRATIONS": "true",
"CONTEXTSTREAM_SEARCH_LIMIT": "15",
"CONTEXTSTREAM_SEARCH_MAX_CHARS": "2400",
"CONTEXTSTREAM_INCLUDE_STRUCTURED_CONTENT": "true"
}
},
"lean": {
"_comment": "Lean 4 / Mathlib typecheck bridge.",
"command": "uvx",
"args": ["--from", "lean-mcp", "lean-mcp-server", "--lakefile", "0-Core-Formalism/lean/Semantics/lakefile.toml"],
"env": {}
},
"remote-lean-proof": {
"_comment": "Hermes/OpenCode/Codex proof backend.",
"command": "python3",
"args": ["4-Infrastructure/infra/remote_lean_proof_mcp.py"],
"env": {
"PROOF_SERVER_URL": "${PROOF_SERVER_URL}",
"PROOF_SERVER_TOKEN_FILE": "/home/allaun/.config/ene/language-proof-server.token"
}
},
"sympy": {
"_comment": "Symbolic verification of arithmetic claims.",
"command": "uvx",
"args": ["mcp-sympy"],
"env": {}
},
"wolfram-alpha": {
"_comment": "Wolfram Alpha symbolic verification. Requires WOLFRAM_APP_ID env var.",
"command": "npx",
"args": ["-y", "wolfram-mcp"],
"env": {
"WOLFRAM_APP_ID": "${WOLFRAM_APP_ID:-HYJE3R3R63}"
}
},
"aws": {
"_comment": "AWS API access via boto3 credential chain.",
"command": "uvx",
"args": ["awslabs.aws-api-mcp-server@latest"],
"env": {
"AWS_REGION": "us-east-1",
"FASTMCP_LOG_LEVEL": "ERROR"
}
},
"github": {
"_comment": "GitHub MCP via Copilot endpoint. Requires GITHUB_PERSONAL_ACCESS_TOKEN env var.",
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"headroom": {
"_comment": "Headroom token compression / context compression proxy.",
"command": "/home/allaun/.local/share/pipx/venvs/headroom-ai/bin/python",
"args": ["-E", "/home/allaun/.local/bin/headroom", "mcp", "serve"],
"env": {}
},
"google-drive": {
"_comment": "Google Drive MCP: search, read, list files, calendar, docs, sheets.",
"command": "npx",
"args": ["-y", "@piotr-agier/google-drive-mcp"],
"env": {
"GOOGLE_DRIVE_OAUTH_CREDENTIALS": "/home/allaun/gcp-oauth.keys.json"
}
},
"break-glass": {
"_comment": "LAST RESORT: Multi-model panel via OpenRouter Fusion. Only for problems that have resisted all other approaches. Costs 3-5x single model call.",
"command": "python3",
"args": ["4-Infrastructure/shim/break_glass_mcp.py"],
"env": {
"OPENROUTER_API_KEY": "${OPENROUTER_API_KEY}"
}
}
}
}