Add mcp.types as a permanent alias for mcp_types (#3190)
This commit is contained in:
parent
923341c98a
commit
b7c9a916d6
3 changed files with 467 additions and 364 deletions
|
|
@ -1,9 +1,8 @@
|
|||
"""Prove the two error channels: is_error results return; MCPError raises."""
|
||||
|
||||
from mcp_types import INVALID_PARAMS, TextContent
|
||||
|
||||
from mcp import MCPError
|
||||
from mcp.client import Client
|
||||
from mcp.types import INVALID_PARAMS, TextContent
|
||||
from stories._harness import Target, run_client
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
"""Two error channels: ToolError -> is_error result; MCPError -> JSON-RPC protocol error."""
|
||||
|
||||
from mcp_types import INVALID_PARAMS
|
||||
|
||||
from mcp.server.mcpserver import MCPServer
|
||||
from mcp.server.mcpserver.exceptions import ToolError
|
||||
from mcp.shared.exceptions import MCPError
|
||||
from mcp.types import INVALID_PARAMS
|
||||
from stories._hosting import run_server_from_args
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
from typing import Any
|
||||
|
||||
import mcp_types as types
|
||||
|
||||
import mcp.types as types
|
||||
from mcp.server.context import ServerRequestContext
|
||||
from mcp.server.lowlevel import Server
|
||||
from mcp.shared.exceptions import MCPError
|
||||
|
|
|
|||
Loading…
Reference in a new issue