fix(mcp): two SDK-default list methods answer cacheScope "public", and logging/setLevel answers without a logging capability

オープン
#131 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go
領域
api

調査の方向性

Start with the cache-control middleware in internal/mcp/server.go around lines 924-946, where listRes.CacheScope is set to "private", and compare it with the go-sdk default handlers for prompts/list, resources/templates/list and logging/setLevel. First decide the intended behavior; the issue leaves this open. Done means the behavior is pinned by a wire-oracle scenario, the middleware comments match it, and the mcp-server spec has a delta.

索引モデルが issue の本文から書いたものです。

説明

area:mcp bug priority:low spec-needed
What happens
  • go-sdk's default handlers for prompts/list and resources/templates/list answer {"ttlMs":0,"cacheScope":"public", ...: []}. The cache-control middleware in internal/mcp/server.go (:924-946, where it sets listRes.CacheScope = "private") and its comments say that every codegraph response is cacheScope: "private".
  • logging/setLevel answers {}, but initialize advertises no logging capability.

No test or wire-oracle transcript pins either behavior. The mcp-server spec leaves both out on purpose.

What you expected instead
  • The two list methods answer private, like the four methods the middleware corrects, or the middleware comments name the methods it covers.
  • logging/setLevel answers method-not-found, or initialize advertises the logging capability.
Evidence

Probed on main on 2026-10-17 with a stdio session: initialize, then each method in turn.

Acceptance criteria
  • The behavior of prompts/list, resources/templates/list and logging/setLevel is decided, and a wire-oracle scenario pins it.
  • The middleware comments match the behavior.
  • The fix PR adds the requirement to the mcp-server spec through a delta.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UNqdnC3q6U362BvyfxuKCF

主要言語
Go
スター
0
フォーク
0
平均マージ
7時間 42分
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

seanb4t/codegraph-go のほかの issue

seanb4t/codegraph-go の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。