-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
76 lines (72 loc) · 1.86 KB
/
Copy path__init__.py
File metadata and controls
76 lines (72 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Copyright (c) 2025 Airbyte, Inc., all rights reserved.
"""FastMCP Extensions - Unofficial extension library for FastMCP 2.0.
This library provides patterns, practices, and utilities for building MCP servers
with FastMCP 2.0, including:
- MCP annotation constants for tool hints
- Deferred registration decorators for tools, prompts, and resources
- Tool testing utilities
- Tool list measurement utilities
- Prompt text retrieval helpers
"""
from fastmcp_extensions.annotations import (
DESTRUCTIVE_HINT,
IDEMPOTENT_HINT,
OPEN_WORLD_HINT,
READ_ONLY_HINT,
)
from fastmcp_extensions.decorators import (
mcp_prompt,
mcp_resource,
mcp_tool,
)
from fastmcp_extensions.middleware import (
ToolFilterFn,
ToolFilterMiddleware,
)
from fastmcp_extensions.registration import (
PromptDef,
ResourceDef,
register_mcp_prompts,
register_mcp_resources,
register_mcp_tools,
)
from fastmcp_extensions.server import (
EXCLUDE_MODULES_CONFIG_ARG,
EXCLUDE_TOOLS_CONFIG_ARG,
INCLUDE_MODULES_CONFIG_ARG,
NO_DESTRUCTIVE_TOOLS_CONFIG_ARG,
READONLY_MODE_CONFIG_ARG,
STANDARD_CONFIG_ARGS,
STANDARD_TOOL_FILTERS,
MCPServerConfig,
MCPServerConfigArg,
get_mcp_config,
mcp_server,
)
__all__ = [
"DESTRUCTIVE_HINT",
"EXCLUDE_MODULES_CONFIG_ARG",
"EXCLUDE_TOOLS_CONFIG_ARG",
"IDEMPOTENT_HINT",
"INCLUDE_MODULES_CONFIG_ARG",
"NO_DESTRUCTIVE_TOOLS_CONFIG_ARG",
"OPEN_WORLD_HINT",
"READONLY_MODE_CONFIG_ARG",
"READ_ONLY_HINT",
"STANDARD_CONFIG_ARGS",
"STANDARD_TOOL_FILTERS",
"MCPServerConfig",
"MCPServerConfigArg",
"PromptDef",
"ResourceDef",
"ToolFilterFn",
"ToolFilterMiddleware",
"get_mcp_config",
"mcp_prompt",
"mcp_resource",
"mcp_server",
"mcp_tool",
"register_mcp_prompts",
"register_mcp_resources",
"register_mcp_tools",
]