feat(mcp): add JetBrains and VS Code MCP server presets#12
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds two new presets that connect opencode to a running editor as an MCP client of the editor:
mcp-intellij— uses the official JetBrains "MCP Server" plugin (IntelliJ IDEA, PyCharm, WebStorm, GoLand, RustRover, etc.) athttp://127.0.0.1:64342/stream.mcp-vscode— uses the communityJuehangQin.vscode-mcp-serverextension athttp://127.0.0.1:3000/mcp. (VS Code has no first-party equivalent of the JetBrains plugin.)What you get
Once the editor-side plugin/extension is enabled, opencode can see what you're doing in the IDE in real time and drive it back:
The result: prompts like "fix the thing I'm looking at" work without copy-paste.
Mechanics
type: remoteentry intoopencode.jsonpointing at the editor's loopback endpoint (no auth — the editors bind to loopback only).@promptdirective with an optional 4thdefaultfield. Empty input falls back to the default; rejected ontype=secret. Existing 2- and 3-field forms are untouched.AGENTS.md(format docs) andREADME.md(preset table). New parser tests intest/parse-conf.test.ts.Test plan
npm test— 47/47 passnpm run buildcleanmcp-intellij: install with empty input → port64342; with64999→ URL updated; re-install no-op; remove cleans entrymcp-vscode: install with empty input → port3000, URLhttp://127.0.0.1:3000/mcpmcp-remote-add-noauthwith empty input still errorsJuehangQin.vscode-mcp-servertoggled on