Extract OpenCode tools into a standalone Node.js MCP server - #3
Merged
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.
概要
OpenCode本体をインストールして呼び出す構成をやめ、ファイル編集・実行ツールだけを同梱する Node.js単体のMCPサーバー(0.3.0) に変更します。
read/write/edit/apply_patch/glob/grep/bash/webfetch/todowriteを提供。検証
Gha mcp上のLinux / Node.js v22.23.2で実施しました。
npm ci --ignore-scripts --no-audit --no-fund: 成功npm test: 52件成功、失敗・スキップ0npm run verify:vendor: 抽出した22単位のハッシュと依存境界を検証npm run test:package:npm packした配布物を別ディレクトリに本番依存だけでインストールし、実際のMCPツールを実行。OpenCode・Bun・Gitコマンドが使えない環境でも成功git diff --check: 成功互換性・運用上の注意
OPENCODE_MCP_RUNTIME_DIR/OPENCODE_MCP_BUN/--runtime-dirは削除。古い設定は黙って使わずエラーにします。このPRはコード変更のみです。マージ・既存サーバーへのデプロイ・MCP接続設定の変更は行っていません。