modelcontextprotocol / modelcontextprotocol/php-sdk

[Schema] No support for additonalProperties in tool input schema

オープン 初心者向け
#370 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

enhancement
主要言語
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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まずツール入力スキーマの定義を見つけ、既存のツール出力スキーマにおける additionalProperties のサポートと比較します。結果として得られる入力スキーマが厳密な JSON Schema の要件を満たしていることを検証し、厳密なツールスキーマを受け入れる統合が期待どおりに動作することを確認します。

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

評価

技術スタック
php
領域
api
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
68/100

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

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