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 @@
|
|||
"""Connect to the same server factory twice — once per era, so `main` takes `targets` — and assert both are served."""
|
||||
|
||||
import mcp_types as types
|
||||
from mcp_types.version import LATEST_HANDSHAKE_VERSION, LATEST_MODERN_VERSION
|
||||
|
||||
import mcp.types as types
|
||||
from mcp.client import Client
|
||||
from mcp.types.version import LATEST_HANDSHAKE_VERSION, LATEST_MODERN_VERSION
|
||||
from stories._harness import TargetFactory, run_client
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
"""One MCPServer factory that serves both the 2025 handshake era and the 2026 stateless era."""
|
||||
|
||||
from mcp_types.version import MODERN_PROTOCOL_VERSIONS
|
||||
|
||||
from mcp.server.mcpserver import Context, MCPServer
|
||||
from mcp.types.version import MODERN_PROTOCOL_VERSIONS
|
||||
from stories._hosting import run_server_from_args
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,11 +2,10 @@
|
|||
|
||||
from typing import Any
|
||||
|
||||
import mcp_types as types
|
||||
from mcp_types.version import MODERN_PROTOCOL_VERSIONS
|
||||
|
||||
import mcp.types as types
|
||||
from mcp.server.context import ServerRequestContext
|
||||
from mcp.server.lowlevel import Server
|
||||
from mcp.types.version import MODERN_PROTOCOL_VERSIONS
|
||||
from stories._hosting import run_server_from_args
|
||||
|
||||
GREET_INPUT_SCHEMA: dict[str, Any] = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue