Visitar URL original
Simplify OpenCode MCP server setup instructions (#13639) · flutter/website@bb69660 · GitHub
Skip to content

Commit bb69660

Browse files
binSaedsfshaza2
authored andcommitted
Simplify OpenCode MCP server setup instructions (#13639)
## Description This PR simplifies the OpenCode configuration instructions on the [MCP server docs page](https://docs.flutter.dev/ai/mcp-server#opencode). Currently, the docs show a complex manual `~/.opencode/config.json` editing workflow. Since [opencode PR #31054](anomalyco/opencode#31054) was merged, users can simply run: ```console $ opencode mcp add dart-mcp-server -- dart mcp-server ``` This matches the pattern already used for Claude Code (`claude mcp add`) and Codex CLI (`codex mcp add`) in the same page. ### Changes - Replaced the 18-line manual JSON config block with a single CLI command - Updated the introductory text to match other client sections ("for the current project, use the `opencode mcp add` CLI command") Fixes #13571
1 parent 1363983 commit bb69660

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

‎sites/docs/src/content/ai/mcp-server.md‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -274,27 +274,11 @@ documentation for [installing MCP servers][].
274274

275275
### OpenCode
276276

277-
To configure [OpenCode][] to use the Dart and Flutter MCP server,
278-
add the `dart-mcp-server` entry to your OpenCode configuration.
277+
To configure [OpenCode][] to use the Dart and Flutter MCP server
278+
for the current project, use the `opencode mcp add` CLI command:
279279

280-
OpenCode configuration is typically found in `~/.opencode/config.json`
281-
or in your project's `opencode key` configuration.
282-
283-
```json title="~/.opencode/config.json"
284-
{
285-
"$schema": "https://opencode.ai/config.json",
286-
"mcp": {
287-
"dart-mcp-server": {
288-
"type": "local",
289-
"command": [
290-
"dart",
291-
"mcp-server"
292-
],
293-
"enabled": true,
294-
"environment": {}
295-
}
296-
}
297-
}
280+
```console
281+
$ opencode mcp add dart-mcp-server -- dart mcp-server
298282
```
299283

300284
[OpenCode]: https://opencode.ai/

0 commit comments

Comments
 (0)