python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Requirement name `mcp` matches project name `mcp`

Open SHTechBoBo opened this issue 11 months ago • 1 comments

When I run the first step uv add "mcp[cli]",

it said: error: Requirement name `mcp` matches project name `mcp`, but self-dependencies are not permitted without the `--dev` or `--optional` flags. If your project name (`mcp`) is shadowing that of a third-party dependency, consider renaming the project.

I guess something wrong in pyproject.toml, but I don't know how to solve it.

SHTechBoBo avatar Dec 24 '24 06:12 SHTechBoBo

Well, it says what you have to do 😄. Your own project may not be called "mcp" if you add a dependency called "mcp". Solution: Rename your own project to something else. (-> change project.name in pyproject.toml)

phil65 avatar Dec 24 '24 09:12 phil65

This is a genuine issue though no? If you pull the project and follow the installation instructions you get an error right off the bat

alexjacobs08 avatar Feb 19 '25 14:02 alexjacobs08

Try: uv add "mcp[cli]" --dev

jinghuan-Chen avatar Mar 27 '25 15:03 jinghuan-Chen