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,8 +1,7 @@
|
|||
"""Supply a canned sampling_callback and assert its text round-trips through the tool."""
|
||||
|
||||
from mcp_types import CreateMessageRequestParams, CreateMessageResult, TextContent
|
||||
|
||||
from mcp.client import Client, ClientRequestContext
|
||||
from mcp.types import CreateMessageRequestParams, CreateMessageResult, TextContent
|
||||
from stories._harness import Target, run_client
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
"""Sampling primitive: a tool asks the client's LLM for a completion mid-call."""
|
||||
|
||||
from mcp_types import SamplingMessage, TextContent
|
||||
|
||||
from mcp.server.mcpserver import Context, MCPServer
|
||||
from mcp.types import SamplingMessage, TextContent
|
||||
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 stories._hosting import run_server_from_args
|
||||
|
|
|
|||
Loading…
Reference in a new issue