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

Python examples for Tool / Resource / Prompt concept pages should use FastMCP #165

Open
lherron opened this issue Mar 4, 2025 · 0 comments

Comments

@lherron
Copy link

lherron commented Mar 4, 2025

The server quickstart uses FastMCP:

https://modelcontextprotocol.io/quickstart/server

The concept page examples use mcp.server:

https://modelcontextprotocol.io/docs/concepts/tools
https://modelcontextprotocol.io/docs/concepts/resources
https://modelcontextprotocol.io/docs/concepts/prompts

This is very confusing, as I bounced from quickstart into those concept pages. I tried to add @list_prompts() and @get_prompt() decorators to my FastMCP server I created in the quickstart, when I should have been adding @prompt() instead.

The issue is exacerbated by FastMCP having almost the same API interface as mcp.server, so the errors I was getting were async related and I had to look into the FastMCP source to understand what was going on.

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

1 participant