Skip to content

Simplify OpenCode MCP server setup instructions - #13639

Merged
sfshaza2 merged 3 commits into
flutter:mainfrom
binSaed:fix-opencode-mcp-docs-13571
Aug 21, 2026
Merged

Simplify OpenCode MCP server setup instructions#13639
sfshaza2 merged 3 commits into
flutter:mainfrom
binSaed:fix-opencode-mcp-docs-13571

Conversation

@binSaed

@binSaed binSaed commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

This PR simplifies the OpenCode configuration instructions on the MCP server docs page.

Currently, the docs show a complex manual ~/.opencode/config.json editing workflow. Since opencode PR #31054 was merged, users can simply run:

$ 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

Replace the manual ~/.opencode/config.json editing instructions
with the simpler `opencode mcp add` CLI command, now available
since opencode PR #31054 was merged.

Fixes flutter#13571

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for configuring the Dart and Flutter MCP server with OpenCode. It replaces the manual JSON configuration instructions with a simpler CLI command using opencode mcp add. I have no feedback to provide as there are no review comments.

@parlough
parlough requested a review from lamek July 28, 2026 22:39
@flutter-website-bot

flutter-website-bot commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit ca4a74c):

https://flutter-docs-prod--docs-pr13639-fix-opencode-mcp-docs-gi820p5b.web.app

@flutter-website-bot

flutter-website-bot commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit ca4a74c):

https://flutter-dev-230821--www-pr13639-fix-opencode-mcp-docs-2ewitv40.web.app

@sfshaza2
sfshaza2 requested a review from jakemac53 August 20, 2026 02:42
@sfshaza2

Copy link
Copy Markdown
Contributor

/gcbrun

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. thx!

@sfshaza2
sfshaza2 merged commit aebdb63 into flutter:main Aug 21, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The OpenCode configuration in the MCP documentation is complex

4 participants