Private
Public Access
0
0
Files
manual_slop/opencode.json
T
ed ca35b3ef48 fix(opencode): Remove invalid MCP tools block, add timeout/env, grant subagent access
The 46-entry mcp.manual-slop.tools block added in commit 30281843 was invalid per the v1.16.2 schema (McpLocalConfig has additionalProperties: false) and was being silently dropped. Also adds proper MCP server configuration and subagent permission grants.

Changes:

opencode.json:
- Remove the silently-dropped mcp.manual-slop.tools block (46 entries)
- Add timeout: 30000 (default 5000 is fragile)
- Add environment block with PYTHONPATH, GIT_TERMINAL_PROMPT, GCM_INTERACTIVE, GIT_ASKPASS, HOME so mcp_env.toml values are injected into the MCP server process
- Top-level 'tools' block intentionally omitted: schema only accepts boolean values (enable/disable), not description objects. Tool descriptions come from the MCP server's list_tools response (mcp_client.MCP_TOOL_SPECS).

.opencode/agents/{tier1-orchestrator,tier2-tech-lead,tier3-worker,tier4-qa,explore}.md:
- Add 'manual-slop_*': allow to each agent's permission block so subagents can use the 46 MCP tools (previously defaulted to deny in some permission schemas)

general.md: no change (no permission block, defaults to allow all)

Verified:
- opencode.json is now schema-valid (no more 'Expected boolean' errors)
- Both MCP servers connected: MiniMax (2 tools), manual-slop (46 tools)
- manual-slop MCP server startup: ~651ms (well under 30s timeout)
- All MCP tests pass: test_mcp_config.py + test_mcp_perf_tool.py = 4/4
- Subagent permission blocks confirmed in 'opencode debug config' output
2026-06-06 15:44:52 -04:00

87 lines
1.7 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"model": "zai/glm-5",
"small_model": "zai/glm-4-flash",
"provider": {
"zai": {
"options": {
"timeout": 300000
}
}
},
"instructions": [
"CLAUDE.md",
"conductor/product.md",
"conductor/product-guidelines.md",
"conductor/workflow.md",
"conductor/tech-stack.md"
],
"default_agent": "tier2-tech-lead",
"mcp": {
"manual-slop": {
"type": "local",
"command": [
"C:\\Users\\Ed\\scoop\\apps\\uv\\current\\uv.exe",
"run",
"python",
"C:\\projects\\manual_slop\\scripts\\mcp_server.py"
],
"enabled": true,
"timeout": 30000,
"environment": {
"PYTHONPATH": "C:\\projects\\manual_slop\\src",
"GIT_TERMINAL_PROMPT": "0",
"GCM_INTERACTIVE": "never",
"GIT_ASKPASS": "echo",
"HOME": "C:\\Users\\Ed"
}
}
},
"agent": {
"build": {
"model": "zai/glm-5",
"permission": {
"edit": "ask",
"bash": "ask"
}
},
"plan": {
"model": "zai/glm-5",
"permission": {
"edit": "deny",
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow"
}
}
}
},
"permission": {
"edit": "ask",
"bash": "ask"
},
"share": "manual",
"autoupdate": true,
"compaction": {
"auto": false,
"prune": false,
"reserved": 10000
},
"watcher": {
"ignore": [
"node_modules/**",
".venv/**",
"__pycache__/**",
"*.pyc",
".git/**",
"logs/**",
"*.log"
]
},
"plugin": [
"superpowers@git+https://github.com/obra/superpowers.git"
]
}