modelcontextprotocol / modelcontextprotocol/php-sdk

[Client] Print contents of stderr when command in StdioTransport fails to start

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

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

enhancement
主要言語
PHP
スター
1.6k
フォーク
173
平均マージ
2日 49分
マージ済み PR(30日)
23

説明

Is your feature request related to a problem? Please describe.
Currently when command fails to start all I get is "Error Initialization failed: Request timed out", which is hard to debug.

Describe the solution you'd like
Print a more specific error message and the contents of stderr that was outputted when starting the MCP server

Describe alternatives you've considered
Add debugging code to library source or use xdebug

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

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

はじめの一歩

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

調査の方向性

まず、Client StdioTransport の起動パスと、コマンドの失敗がどのように "Request timed out" エラーになるかを特定します。コマンドの起動中に stderr がどのように取得されるかを追跡し、次に、MCP サーバーの起動に失敗した場合に stderr の内容を含む具体的なエラーが報告されることを確認します。

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

評価

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

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

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