Skip to content

Commit 0a95cb9

Browse files
committed
DOC: Fix OpenCode configuration
1 parent ec85cc0 commit 0a95cb9

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

mcp/README.md

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -179,31 +179,12 @@ for global or `opencode.json` for project-specific):
179179

180180
```json
181181
{
182+
"$schema": "https://opencode.ai/config.json",
182183
"mcp": {
183-
"localmcp": {
184-
"ngff-zarr": {
185-
"type": "stdio",
186-
"command": "uvx",
187-
"args": ["ngff-zarr-mcp"],
188-
"enabled": true
189-
}
190-
}
191-
}
192-
}
193-
```
194-
195-
#### Using direct installation
196-
197-
```json
198-
{
199-
"mcp": {
200-
"localmcp": {
201-
"ngff-zarr": {
202-
"type": "stdio",
203-
"command": "ngff-zarr-mcp",
204-
"args": [],
205-
"enabled": true
206-
}
184+
"ngff-zarr": {
185+
"type": "local",
186+
"command": ["uvx", "ngff-zarr-mcp"],
187+
"enabled": true
207188
}
208189
}
209190
}
@@ -214,16 +195,13 @@ for global or `opencode.json` for project-specific):
214195
```json
215196
{
216197
"mcp": {
217-
"localmcp": {
218-
"ngff-zarr": {
219-
"type": "stdio",
220-
"command": "python",
221-
"args": [
222-
"-c",
223-
"import subprocess; subprocess.run(['pip', 'install', 'ngff-zarr-mcp']); import ngff_zarr_mcp.server; ngff_zarr_mcp.server.main()"
224-
],
225-
"enabled": true
226-
}
198+
"ngff-zarr": {
199+
"type": "local",
200+
"command": ["python",
201+
"-c",
202+
"import subprocess; subprocess.run(['pip', 'install', 'ngff-zarr-mcp']); import ngff_zarr_mcp.server; ngff_zarr_mcp.server.main()"
203+
],
204+
"enabled": true
227205
}
228206
}
229207
}

0 commit comments

Comments
 (0)