feat(opencode): add agent modes and with-context MCP server config

- Add explicit mode settings for agents (build, plan as primary; others as subagent)
- Configure with-context MCP server for Obsidian vault integration
- Remove with-context-mcp from plugin dependencies (now using MCP server)
This commit is contained in:
David Ibia
2025-12-28 23:19:43 +01:00
parent 24fb286db1
commit 8d92715761
3 changed files with 31 additions and 1149 deletions

View File

@@ -12,28 +12,42 @@
"packages/*/AGENTS.md"
],
"agent": {
"build": {
"mode": "all"
},
"plan": {
"mode": "primary"
},
"setup": {
"mode": "subagent",
"description": "Generates project-specific documentation and guidelines through interactive discovery"
},
"review": {
"mode": "subagent",
"description": "Reviews code for best practices and potential issues"
},
"test": {
"mode": "subagent",
"description": "Runs tests and analyzes test results"
},
"docs": {
"mode": "subagent",
"description": "Generates and maintains documentation"
},
"refactor": {
"mode": "subagent",
"description": "Refactors code for better quality and maintainability"
},
"debug": {
"mode": "subagent",
"description": "Debugs issues and troubleshoots problems"
},
"security": {
"mode": "subagent",
"description": "Audits code for security vulnerabilities"
},
"webgen": {
"mode": "subagent",
"description": "Generates complete web pages from ideas using any framework"
}
},
@@ -87,6 +101,21 @@
"chrome-devtools-mcp@latest"
],
"enabled": false
},
"with-context": {
"type": "local",
"command": [
"npx",
"-y",
"with-context-mcp"
],
"environment": {
"OBSIDIAN_API_KEY": "env:OBSIDIAN_API_KEY",
"OBSIDIAN_API_URL": "env:OBSIDIAN_API_URL",
"OBSIDIAN_VAULT": "env:OBSIDIAN_VAULT",
"PROJECT_BASE_PATH": "env:PROJECT_BASE_PATH"
},
"enabled": false
}
}
}