Make `ToolsFeature` building blocks reusable

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

Read ToolsFeature and trace how it handles tools/call, including RequiredCapabilities.check, Mcp-Param validation, schema validation, and structured content. Identify the per-call steps that can be reused while preserving current ToolsFeature behavior; done means the extracted pieces support another feature without implementing Tasks (#1013).

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

説明

area/server modern P2
Context

In #1013, the plan is for Tasks (SEP-2663) to be a feature of its own that replaces ToolsFeature entirely instead of wrapping it (comment).

To do that without copying ToolsFeature, the logic it applies around a tools/call needs to be reusable.

Proposal

Pull the per-call steps out of ToolsFeature so that another feature can build on them:

  • Required client capabilities check (RequiredCapabilities.check)
  • Mcp-Param header validation against the tool's annotations
  • Input validation against inputSchema (returned as an isError tool result)
  • Output validation against outputSchema, and filling in content from structuredContent

ToolsFeature should keep working exactly as it does today, built on top of these pieces.

Out of scope
  • The Tasks feature itself (#1013)
主要言語
Java
スター
3.8k
フォーク
1.1k
平均マージ
1日 3時間
マージ済み PR(30日)
38

環境構築

はじめの一歩

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

modelcontextprotocol/java-sdk のほかの issue

modelcontextprotocol/java-sdk の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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