This repository was archived by the owner on Apr 8, 2025. It is now read-only.
This repository was archived by the owner on Apr 8, 2025. It is now read-only.
Python examples for Tool / Resource / Prompt concept pages should use FastMCP #165
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels