Add mcp.types as a permanent alias for mcp_types (#3190)
This commit is contained in:
parent
923341c98a
commit
b7c9a916d6
1 changed files with 467 additions and 364 deletions
|
|
@ -1,4 +1,7 @@
|
|||
from mcp_types import (
|
||||
from mcp.server import Server, ServerRequestContext
|
||||
from mcp.shared.path_security import contains_path_traversal, is_absolute_path
|
||||
from mcp.shared.uri_template import UriTemplate
|
||||
from mcp.types import (
|
||||
ListResourceTemplatesResult,
|
||||
PaginatedRequestParams,
|
||||
ReadResourceRequestParams,
|
||||
|
|
@ -7,10 +10,6 @@ from mcp_types import (
|
|||
TextResourceContents,
|
||||
)
|
||||
|
||||
from mcp.server import Server, ServerRequestContext
|
||||
from mcp.shared.path_security import contains_path_traversal, is_absolute_path
|
||||
from mcp.shared.uri_template import UriTemplate
|
||||
|
||||
TEMPLATES = {
|
||||
"manuals": UriTemplate.parse("manuals://{+path}"),
|
||||
"books": UriTemplate.parse("books://{isbn}"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue