Skip to content

feat(mcp): add alwaysLoad: true to plugin .mcp.json#140

Merged
liplus-lin-lay merged 1 commit into
mainfrom
139-feat-mcp-alwaysload
Apr 28, 2026
Merged

feat(mcp): add alwaysLoad: true to plugin .mcp.json#140
liplus-lin-lay merged 1 commit into
mainfrom
139-feat-mcp-alwaysload

Conversation

@liplus-lin-lay
Copy link
Copy Markdown
Member

Summary

  • plugin root に .mcp.json を新規追加し、github-rag-mcp server config に alwaysLoad: true を指定する。
  • Claude Code v2.1.121 (release: 2026-04-28) で追加された alwaysLoad オプションにより、当該 server の全 tool が tool-search deferral を skip し常時 prompt に常駐する。
  • research 経路で常用する RAG tool を deferred 状態から ToolSearch 経由でロードする 1 往復を毎ターン削減する。
  • 旧 Claude Code は未知 field として無視するため後方互換。

Test plan

  • .mcp.json が plugin root に存在し JSON として valid であること
  • field 順序 (type -> url -> alwaysLoad -> note) が issue 提案どおりであること
  • CI green
  • Claude Code v2.1.121+ 環境で plugin 再読込時に github-rag-mcp server の tool が deferred 表示されないこと (post-merge 動作確認)

Closes #139

Add plugin-root .mcp.json shipping the github-rag-mcp HTTP MCP server
config with `alwaysLoad: true`. Claude Code v2.1.121 (released
2026-04-28) recognizes this option and skips tool-search deferral for
the listed server, so RAG search tools stay always available without
the per-turn ToolSearch round-trip.

Claude Code v2.1.121 で導入された alwaysLoad オプションを利用し、
research 経路で常用する github-rag-mcp の tool を deferred 状態から
ロードする 1 往復を毎ターン削減する。旧 Claude Code は未知 field を
無視するため後方互換性は維持される。

Closes #139

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@liplus-lin-lay liplus-lin-lay linked an issue Apr 28, 2026 that may be closed by this pull request
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
github-rag-mcp db9cd01 Apr 28 2026, 02:16 PM

Copy link
Copy Markdown
Member Author

@liplus-lin-lay liplus-lin-lay left a comment

Choose a reason for hiding this comment

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

AI Self-Review (auto mode)

変更スコープ

  • .mcp.json を plugin root に新規追加 (10 行、JSON config のみ)
  • 実装コード / docs 動作影響なし

リスク評価: 低

  • config patch 単体。runtime path / build path に触れない。
  • alwaysLoad 未対応の旧 Claude Code は未知 field を無視 (後方互換)。
  • HTTP/OAuth 接続経路は変更なし。MCP retry の v2.1.121 改善に乗る。
  • prompt 圧迫リスク低 (search 1 tool のみ)。

Spec 準拠

  • field 順序 (type -> url -> alwaysLoad -> note) が issue 提案どおり。
  • commit title ASCII 単行 / body 日本語含む / Closes #139 あり。
  • PR title ASCII 単行 / body 日本語 / Closes #139 あり。
  • auto mode のため --auto flag 未付与で PR 作成済み。

判定

patch 相当 (governance/config 変更、user/system observable 影響なし)。CI green。merge 可。

@liplus-lin-lay liplus-lin-lay merged commit 4eff0a0 into main Apr 28, 2026
3 checks passed
@liplus-lin-lay liplus-lin-lay deleted the 139-feat-mcp-alwaysload branch April 28, 2026 14:18
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.

feat(mcp): add alwaysLoad: true to plugin .mcp.json

1 participant