Proposal: add a simpler version of AddTool that drops request and response
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
まず現在の AddTool と ToolHandlerFor[In, Out] の定義を読み、#386 で参照されている議論を確認します。提案されているハンドラーシグネチャを、既存の CallToolRequest と CallToolResult の使用方法と比較します。API の方向性と、それによって生じるツール作成者の動作が解決されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently, mcp.AddTool takes a ToolHandlerFor[In, Out], which is defined as
func(context.Context, *CallToolRequest, In) (*CallToolResult, Out, error)
As argued on #386, the request and result are seldom used and confusing. In particular, it is unclear whether to use the StructuredOutput and IsError fields of CallToolResult, or to return results via the second and third return values.
The proposal is to change AddTool to take a handler with signature
func(context.Context, In) (Out, error)
That will satisfy the majority of tool authors and remove the confusion.
- 主要言語
- Go
- スター
- 5.2k
- フォーク
- 583
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
modelcontextprotocol/go-sdk のほかの issue
-
Session-lifecycle bookkeeping logs at info, spamming multiple log lines per request on stateless streamable HTTP対応中かも @anneheartrecord が 49 日前に担当しました。 オープンP3
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
modelcontextprotocol/go-sdk#1204 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Expose generic `SendNotification` on `ServerSession` for custom protocol extensions対応中かも @ajuijas が 215 日前に担当しました。 オープンneeds investigation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
modelcontextprotocol/go-sdk#745 · コメント 13 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp: a property with an array "type" (any pointer field from jsonschema.For) disables x-mcp-header handling for the whole tool対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 50/100
modelcontextprotocol/go-sdk#1406 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
jsonrpc: decimal and exponent integer IDs still lose precision after #1401対応中かも @skosovsky が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
modelcontextprotocol/go-sdk#1404 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
mcp: a handler error without a code reaches the peer as JSON-RPC error code 0対応中かも @talhayme が今日担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
modelcontextprotocol/go-sdk#1394 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
modelcontextprotocol/go-sdk の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
keyxmakerx/Chronicle#1469 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Gentleman-Programming/gentle-ai#5565 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend grammar sev-3
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
-
connector docs good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
soma-intelligence/open-health-sync#134 ·
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 3 日以内に返信