Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirement name mcp matches project name mcp #111

Closed
SHTechBoBo opened this issue Dec 24, 2024 · 3 comments
Closed

Requirement name mcp matches project name mcp #111

SHTechBoBo opened this issue Dec 24, 2024 · 3 comments

Comments

@SHTechBoBo
Copy link

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.

@phil65
Copy link

phil65 commented Dec 24, 2024

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)

@dsp-ant dsp-ant closed this as completed Jan 3, 2025
@alexjacobs08
Copy link

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

@jinghuan-Chen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants