Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
10,312 in github.com/PrefectHQ/fastmcp
⨍
Functions
10,312
◇
Types & classes
1,519
↳
Endpoints
103
Method
oauth_proxy
Create OAuth proxy for testing.
tests/server/auth/test_enhanced_error_responses.py:30
Method
oauth_proxy
Create OAuth proxy for testing.
tests/server/auth/test_enhanced_error_responses.py:294
Function
oauth_proxy_https
OAuthProxy configured with HTTPS base_url for __Host- cookies.
tests/server/auth/test_oauth_consent_page.py:37
Function
oauth_proxy_https
OAuthProxy configured with HTTPS base_url for __Host- cookies.
tests/server/auth/test_oauth_consent_flow.py:84
Function
oauth_proxy_https_remember
OAuthProxy in 'remember' mode for silent-consent cookie tests.
tests/server/auth/test_oauth_consent_page.py:52
Function
oauth_proxy_https_remember
OAuthProxy in 'remember' mode for silent-consent cookie tests.
tests/server/auth/test_oauth_consent_flow.py:99
Function
oauth_proxy_with_storage
Create OAuth proxy with explicit storage backend.
tests/server/auth/test_oauth_consent_flow.py:68
Method
object_with_consts
(self)
tests/utilities/json_schema_type/test_advanced.py:224
Method
ok
()
tests/tools/test_tool_run_in_thread.py:97
Method
old_style_lifespan
(server: FastMCP)
tests/server/test_server_lifespan.py:311
Method
old_tool
()
tests/server/test_session_visibility.py:202
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: CallNext[mt.C
fastmcp_slim/fastmcp/server/middleware/middleware.py:168
Method
on_call_tool
Call a tool from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store the
fastmcp_slim/fastmcp/server/middleware/caching.py:420
Method
on_call_tool
Check auth before tool execution.
fastmcp_slim/fastmcp/server/middleware/authorization.py:113
Method
on_call_tool
Intercept tool calls to injected tools.
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:44
Method
on_call_tool
Intercept tool calls and limit response size.
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:105
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: C
tests/server/middleware/test_initialization_middleware.py:219
Method
on_call_tool
( self, context: MiddlewareContext[mcp.types.CallToolRequestParams],
tests/server/middleware/test_middleware_nested.py:518
Method
on_call_tool
( self, context: MiddlewareContext[mcp.types.CallToolRequestParams],
tests/server/middleware/test_middleware_nested.py:561
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_middleware_nested.py:629
Method
on_call_tool
( self, context: MiddlewareContext[mcp.types.CallToolRequestParams],
tests/server/middleware/test_middleware.py:434
Method
on_call_tool
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:599
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: CallNext[mt.C
tests/server/providers/test_fastmcp_provider.py:22
Method
on_call_tool
( self, context: MiddlewareContext[mcp.types.CallToolRequestParams], call_next: CallNe
tests/server/tasks/test_task_meta_parameter.py:148
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: CallNext[mt.C
tests/server/tasks/test_task_mount.py:694
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/middleware.py:182
Method
on_get_prompt
Get a prompt from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store th
fastmcp_slim/fastmcp/server/middleware/caching.py:485
Method
on_get_prompt
Check auth before prompt render.
fastmcp_slim/fastmcp/server/middleware/authorization.py:290
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
tests/server/providers/test_fastmcp_provider.py:60
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
tests/server/tasks/test_task_mount.py:732
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallNext[mt.Initi
fastmcp_slim/fastmcp/server/middleware/middleware.py:161
Method
on_initialize
( self, context: MiddlewareContext[mcp.types.InitializeRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:83
Method
on_initialize
Capture initialization details.
tests/server/middleware/test_initialization_middleware.py:30
Method
on_initialize
Detect test client during initialization.
tests/server/middleware/test_initialization_middleware.py:68
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:114
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:277
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:306
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:332
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:364
Method
on_list
(self, ctx)
tests/apps/test_file_upload.py:204
Method
on_list_prompts
( self, context: MiddlewareContext[mt.ListPromptsRequest], call_next: CallNext[mt.List
fastmcp_slim/fastmcp/server/middleware/middleware.py:212
Method
on_list_prompts
Time prompt listing.
fastmcp_slim/fastmcp/server/middleware/timing.py:152
Method
on_list_prompts
List prompts from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store th
fastmcp_slim/fastmcp/server/middleware/caching.py:381
Method
on_list_prompts
Filter prompts/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:263
Method
on_list_prompts
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:400
Method
on_list_resource_templates
( self, context: MiddlewareContext[mt.ListResourceTemplatesRequest], call_next: CallNe
fastmcp_slim/fastmcp/server/middleware/middleware.py:203
Method
on_list_resource_templates
( self, context: MiddlewareContext[mt.ListResourceTemplatesRequest], call_next: CallNe
fastmcp_slim/fastmcp/server/middleware/dereference.py:33
Method
on_list_resource_templates
Time resource template listing.
fastmcp_slim/fastmcp/server/middleware/timing.py:146
Method
on_list_resource_templates
Filter resource templates/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:234
Method
on_list_resource_templates
( self, context: MiddlewareContext, call_next )
tests/server/middleware/test_middleware.py:368
Method
on_list_resources
( self, context: MiddlewareContext[mt.ListResourcesRequest], call_next: CallNext[mt.Li
fastmcp_slim/fastmcp/server/middleware/middleware.py:196
Method
on_list_resources
Time resource listing.
fastmcp_slim/fastmcp/server/middleware/timing.py:140
Method
on_list_resources
List resources from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store
fastmcp_slim/fastmcp/server/middleware/caching.py:340
Method
on_list_resources
Filter resources/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:160
Method
on_list_resources
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:338
Method
on_list_tools
( self, context: MiddlewareContext[mt.ListToolsRequest], call_next: CallNext[mt.ListTo
fastmcp_slim/fastmcp/server/middleware/middleware.py:189
Method
on_list_tools
( self, context: MiddlewareContext[mt.ListToolsRequest], call_next: CallNext[mt.ListTo
fastmcp_slim/fastmcp/server/middleware/dereference.py:24
Method
on_list_tools
List tools from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store the
fastmcp_slim/fastmcp/server/middleware/caching.py:299
Method
on_list_tools
Filter tools/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:85
Method
on_list_tools
Inject tools into the response.
fastmcp_slim/fastmcp/server/middleware/tool_injection.py:35
Method
on_list_tools
Modify tools based on client detection.
tests/server/middleware/test_initialization_middleware.py:82
Method
on_list_tools
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware_nested.py:496
Method
on_list_tools
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:310
Method
on_list_tools
( self, context: MiddlewareContext[mcp_types.ListToolsRequest],
tests/server/transforms/test_search.py:158
Method
on_message
( self, context: MiddlewareContext[Any], call_next: CallNext[Any, Any], )
fastmcp_slim/fastmcp/server/middleware/middleware.py:140
Method
on_message
Log messages for configured methods.
fastmcp_slim/fastmcp/server/middleware/logging.py:124
Method
on_notification
( self, context: MiddlewareContext[mt.Notification[Any, Any]], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/middleware.py:154
Method
on_notification
Record all notifications with timestamp.
tests/client/test_notifications.py:29
Method
on_notification
Record all notifications with timestamp.
tests/server/test_session_visibility.py:30
Method
on_notification
(self, message: mcp_types.ServerNotification)
tests/server/tasks/test_notifications.py:30
Method
on_read
(self, name: str, ctx)
tests/apps/test_file_upload.py:216
Method
on_read_resource
( self, context: MiddlewareContext[mt.ReadResourceRequestParams], call_next: CallNext[
fastmcp_slim/fastmcp/server/middleware/middleware.py:175
Method
on_read_resource
Read a resource from the cache, if caching is enabled, and the result is in the cache. Otherwise, otherwise call the next middleware and store
fastmcp_slim/fastmcp/server/middleware/caching.py:455
Method
on_read_resource
Check auth before resource read.
fastmcp_slim/fastmcp/server/middleware/authorization.py:187
Method
on_read_resource
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_middleware_nested.py:655
Method
on_read_resource
( self, context: MiddlewareContext[mt.ReadResourceRequestParams], call_next: CallNext[
tests/server/providers/test_fastmcp_provider.py:41
Method
on_read_resource
( self, context: MiddlewareContext[mt.ReadResourceRequestParams], call_next: CallNext[
tests/server/tasks/test_task_mount.py:713
Method
on_request
( self, context: MiddlewareContext[mt.Request[Any, Any]], call_next: CallNext[mt.Reque
fastmcp_slim/fastmcp/server/middleware/middleware.py:147
Method
on_store
(self, files: list[dict], ctx)
tests/apps/test_file_upload.py:190
Method
on_submit
(contact: Contact)
tests/apps/test_form.py:72
Method
only_v5
()
tests/server/versioning/test_filtering.py:208
Method
open_resource
()
tests/server/transforms/test_resources_as_tools.py:271
Method
openapi_31_spec
OpenAPI 3.1 spec to test compatibility.
tests/server/providers/openapi/test_comprehensive.py:330
Function
operation_with_error
An operation that can be made to fail.
tests/server/middleware/test_logging.py:419
Method
operation_with_error
An operation that can be made to fail.
tests/server/middleware/test_logging.py:457
Function
optional_context
Tool with optional context.
tests/tools/test_tool_future_annotations.py:31
Method
optional_input
(ctx: Context)
tests/server/tasks/test_task_elicitation_relay.py:57
Method
optional_input
(ctx: Context)
tests/server/tasks/test_context_background_task.py:341
Method
optional_prompt
Prompt that supports both modes.
tests/server/tasks/test_task_config.py:233
Method
optional_resource
Resource that supports both modes.
tests/server/tasks/test_task_config.py:181
Method
optional_tool
Tool that supports both modes.
tests/server/tasks/test_task_config.py:105
Method
optional_tool
Tool that supports both sync and task execution.
tests/server/tasks/test_task_mount.py:605
Method
origin_request_id
Get the request ID that originated this execution, if available. In foreground request mode, this is the current request_id. In backg
fastmcp_slim/fastmcp/server/context.py:237
Method
original
Original tool.
tests/server/sampling/test_prepare_tools.py:65
Method
original
Original tool.
tests/server/sampling/test_sampling_tool.py:170
Method
original
()
tests/server/providers/test_transforming_provider.py:110
Method
original
()
tests/server/providers/test_transforming_provider.py:164
Method
original_func
(ctx: str, query: str, limit: int = 10)
tests/utilities/test_types.py:529
Method
original_tool
(x: int)
tests/server/providers/test_local_provider.py:625
Method
original_tool
()
tests/server/mount/test_advanced.py:393
← previous
next →
3,701–3,800 of 10,312, ranked by callers