modelcontextprotocol / modelcontextprotocol/python-sdk

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

Open
#193 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs decision P3
Dominant language
Python
Stars
24.3k
Forks
4k
Avg merge
1d 1h
Merged PRs (30d)
31

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file or test; start by locating the Starlette app and its existing HTTP route setup. Define the /docs response around the MCP server’s tools, prompts, resources, and version, then verify that the route exposes the expected information.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.