mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 04:54:17 +02:00
Trim fastmcp.types to FastMCP-unique types only
fastmcp.types re-exported 29 mcp_types symbols verbatim, which was pointless indirection users had to discover. It now holds only Textarea, the one type FastMCP actually defines; everything else imports from mcp_types directly. These mirrors were added during unreleased SDK v2 migration work and never shipped, so this is not a breaking change.
This commit is contained in:
parent
9d9bf2b717
commit
e32a2098f9
22 changed files with 60 additions and 165 deletions
|
|
@ -9,10 +9,11 @@ It illustrates the pattern:
|
|||
|
||||
import asyncio
|
||||
|
||||
from mcp_types import TextContent
|
||||
|
||||
from fastmcp import FastMCP
|
||||
from fastmcp.client import Client
|
||||
from fastmcp.server import create_proxy
|
||||
from fastmcp.types import TextContent
|
||||
|
||||
|
||||
class EchoService:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue