-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
202 lines (202 loc) · 6.21 KB
/
opencode.jsonc
File metadata and controls
202 lines (202 loc) · 6.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
// OpenCode Configuration
// Documentation: https://opencode.ai/docs
"$schema": "https://opencode.ai/config.json",
// ============================================
// MCP (Model Context Protocol) Servers
// ============================================
"mcp": {
// GitHub - PRs, issues, repos
"github": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-github"
],
"environment": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_PERSONAL_ACCESS_TOKEN}"
},
"enabled": true
},
// Firecrawl - Web scraping and crawling
"firecrawl": {
"type": "local",
"command": [
"npx",
"-y",
"firecrawl-mcp"
],
"environment": {
"FIRECRAWL_API_KEY": "${env:FIRECRAWL_API_KEY}"
},
"enabled": false
},
// Supabase - Database operations
"supabase": {
"type": "local",
"command": [
"npx",
"-y",
"@supabase/mcp-server-supabase@latest",
"--project-ref=${env:SUPABASE_PROJECT_REF}"
],
"enabled": false
},
// Memory - Persistent memory across sessions
"memory": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-memory"
],
"enabled": true
},
// Sequential Thinking - Chain-of-thought reasoning
"sequential-thinking": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-sequential-thinking"
],
"enabled": true
},
// Context7 - Live documentation lookup
"context7": {
"type": "local",
"command": [
"npx",
"-y",
"@context7/mcp-server"
],
"enabled": true
},
// Filesystem - File operations
"filesystem": {
"type": "local",
"command": [
"npx",
"-y",
"@modelcontextprotocol/server-filesystem",
"${env:PROJECT_PATH}"
],
"enabled": false
},
// Vercel - Deployments and projects
"vercel": {
"type": "remote",
"url": "https://mcp.vercel.com",
"enabled": false
},
// Cloudflare Docs - Documentation search
"cloudflare-docs": {
"type": "remote",
"url": "https://docs.mcp.cloudflare.com/mcp",
"enabled": false
},
// ClickHouse - Analytics queries
"clickhouse": {
"type": "remote",
"url": "https://mcp.clickhouse.cloud/mcp",
"enabled": false
}
},
// ============================================
// Custom Agents (JSON format)
// Note: Agents can also be defined in .opencode/agents/*.md
// ============================================
"agent": {
// Planner Agent - Implementation planning
"planner": {
"description": "Expert planning specialist for complex features and refactoring",
"mode": "subagent",
"tools": {
"write": false,
"edit": false,
"bash": false
}
},
// Architect Agent - System design
"architect": {
"description": "Software architecture specialist for system design and scalability",
"mode": "subagent",
"tools": {
"write": false,
"edit": false,
"bash": false
}
},
// TDD Guide Agent - Test-driven development
"tdd-guide": {
"description": "TDD specialist enforcing write-tests-first methodology",
"mode": "subagent",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
// Code Reviewer Agent - Code review
"code-reviewer": {
"description": "Expert code review for quality, security, and maintainability",
"mode": "subagent",
"tools": {
"write": false,
"edit": false,
"bash": true
}
},
// Security Reviewer Agent - Security analysis
"security-reviewer": {
"description": "Security vulnerability detection and remediation specialist",
"mode": "subagent",
"tools": {
"write": false,
"edit": false,
"bash": true
}
},
// Build Error Resolver Agent - Fix build errors
"build-error-resolver": {
"description": "Build and TypeScript error resolution specialist",
"mode": "subagent",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
// E2E Runner Agent - End-to-end testing
"e2e-runner": {
"description": "End-to-end testing specialist using Playwright",
"mode": "subagent",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
// Refactor Cleaner Agent - Dead code cleanup
"refactor-cleaner": {
"description": "Dead code cleanup and consolidation specialist",
"mode": "subagent",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
// Doc Updater Agent - Documentation
"doc-updater": {
"description": "Documentation and codemap specialist",
"mode": "subagent",
"tools": {
"write": true,
"edit": true,
"bash": true
}
}
}
}