mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-30 18:56:16 +00:00
- Replace repo .mcp.json with minimal config (10 essential servers instead of 29). Full backup retained as .mcp.json.full. - Remove inline MCP section from ~/.config/opencode/config.json so OpenCode loads only repo .mcp.json (also removes hardcoded Linear token leak). - Add singleton guards to opencode_prover_mcp.py, token_saver_mcp.py, and remote_lean_proof_mcp.py to prevent duplicate instances when multiple IDE configs reference them. Build: N/A (Python shims)
95 lines
3.6 KiB
JSON
95 lines
3.6 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.",
|
|
"command": "npx",
|
|
"args": ["-y", "wolfram-mcp"],
|
|
"env": {}
|
|
},
|
|
"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}"
|
|
}
|
|
}
|
|
}
|
|
}
|