modelcontextprotocol / modelcontextprotocol/python-sdk

Add default /docs route to list information about the HTTP MCP server

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

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

enhancement needs decision P3
主要言語
Python
スター
24.3k
フォーク
4k
平均マージ
1日 1時間
マージ済み PR(30日)
31

説明

Is your feature request related to a problem? Please describe.
Would be useful to have an equivalent to something like how FastAPI generates OpenAPI docs and are automatically accessible at /docs route.

Describe the solution you'd like
Add a /docs route to the starlette app that provides information about the mcp server (available tools, prompts, resources, version, etc.)

Describe alternatives you've considered
none

Additional context
Basic example I currently use:
Image

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

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

はじめの一歩

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

調査の方向性

この issue ではファイルもテストも指定されていないため、まず Starlette アプリと既存の HTTP ルート設定を見つけます。MCP サーバーのツール、プロンプト、リソース、バージョンを中心に /docs のレスポンスを定義し、その後、ルートが想定される情報を公開することを確認します。

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

評価

技術スタック
python
領域
api, backend, documentation
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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