modelcontextprotocol / modelcontextprotocol/python-sdk

Low-level Server support for mcp dev and mcp run command

Open
#299 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Currently the mcp dev and mcp run command does not support the low-level Server class. I think it's a better developer experience if we support both classes for these 2 commands, assuming there's no inherent reason for not doing so.

I'm interested in adding support for the low-level Server to both mcp dev and mcp run and I would like seek the maintainer's guidance on this. It looks like the only thing missing is the dependencies field, which is pulled from the Settings class and does not exist in the low-level Server. I'm thinking about adding a similar Settings class to server/lowlevel/server.py and thus introducing the dependencies field. The downside is more complexity in server/lowlevel/server.py which I'm not sure if it's acceptable to the maintainers and falls in line with the long term roadmap for the code base.

Please advise. Thanks.

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

Start by tracing the mcp dev and mcp run command entry points and compare how they handle the high-level and low-level Server classes. Read server/lowlevel/server.py and the existing Settings class to understand the missing dependencies field. Done requires maintainer agreement on the design and verified support for low-level Server in both commands.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.