modelcontextprotocol / modelcontextprotocol/php-sdk
[Schema] No support for additonalProperties in tool input schema
まだ誰も着手していません。
- 主要言語
- PHP
- スター
- 1.6k
- フォーク
- 173
- 平均マージ
- 2日 49分
- マージ済み PR(30日)
- 23
説明
Is your feature request related to a problem? Please describe.
There is no proper support for "strict" json schema mode in tool input schema due to not having 'additionalProperties' field.
Describe the solution you'd like
Support 'additionalProperties' in tool input schema same like in tool output schema.
Describe alternatives you've considered
Ignoring phpstan sealed array rule - makes code less reliable.
Additional context
This is sometimes needed when integrating mcp server with software that requires tool input/output schema to follow strict json schema (no additional properties allowed for example, all fields required etc). These sometimes refuse to work with tools whose schema isn't 'strict' enough.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まずツール入力スキーマの定義を見つけ、既存のツール出力スキーマにおける additionalProperties のサポートと比較します。結果として得られる入力スキーマが厳密な JSON Schema の要件を満たしていることを検証し、厳密なツールスキーマを受け入れる統合が期待どおりに動作することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- php
- 領域
- api
- issue の種類
- 機能追加
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100