Add mcp.types as a permanent alias for mcp_types (#3190)
This commit is contained in:
parent
923341c98a
commit
b7c9a916d6
2 changed files with 467 additions and 364 deletions
|
|
@ -2,10 +2,9 @@
|
|||
|
||||
from typing import Literal
|
||||
|
||||
import mcp_types as types
|
||||
from mcp_types import TextContent
|
||||
|
||||
import mcp.types as types
|
||||
from mcp.client import Client, advertise
|
||||
from mcp.types import TextContent
|
||||
from stories._harness import Target, run_client
|
||||
|
||||
EXTENSION_ID = "com.example/catalog"
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ the vendor method.
|
|||
from collections.abc import Sequence
|
||||
from typing import Any
|
||||
|
||||
import mcp_types as types
|
||||
from pydantic import Field
|
||||
|
||||
import mcp.types as types
|
||||
from mcp.server.context import ServerRequestContext
|
||||
from mcp.server.extension import Extension, MethodBinding, ToolBinding
|
||||
from mcp.server.mcpserver import MCPServer, require_client_extension
|
||||
|
|
|
|||
Loading…
Reference in a new issue