Keep historical mcp.types import in v2/v3 migration examples

This commit is contained in:
Jeremiah Lowin 2026-07-20 21:04:01 -04:00
commit 10af989563
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1426,7 +1426,7 @@ Prompt functions now use `Message` instead of `mcp.types.PromptMessage`:
```python
# v2.x
from mcp_types import PromptMessage, TextContent
from mcp.types import PromptMessage, TextContent
@mcp.prompt
def my_prompt() -> PromptMessage:

View file

@ -171,7 +171,7 @@ Prompt functions now use FastMCP's `Message` class instead of `mcp.types.PromptM
```python
# Before
from mcp_types import PromptMessage, TextContent
from mcp.types import PromptMessage, TextContent
@mcp.prompt
def my_prompt() -> PromptMessage: