Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
Method
on_call_tool
(self, context, call_next)
tests/server/test_mrtr_guards.py:806
Method
on_call_tool
(self, context, call_next)
tests/server/test_mrtr_guards.py:834
Method
on_call_tool
(self, context, call_next)
tests/server/test_mrtr_guards.py:871
Method
on_call_tool
(self, context, call_next)
tests/server/test_mrtr_guards.py:899
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_message_visibility.py:46
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_message_visibility.py:377
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: C
tests/server/middleware/test_initialization_middleware.py:229
Method
on_call_tool
( self, context: MiddlewareContext[mcp_types.CallToolRequestParams],
tests/server/middleware/test_middleware_nested.py:515
Method
on_call_tool
( self, context: MiddlewareContext[mcp_types.CallToolRequestParams],
tests/server/middleware/test_middleware_nested.py:558
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_middleware_nested.py:626
Method
on_call_tool
( self, context: MiddlewareContext[mcp_types.CallToolRequestParams],
tests/server/middleware/test_middleware.py:467
Method
on_call_tool
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:632
Method
on_call_tool
(self, context, call_next)
tests/server/middleware/test_usage.py:138
Method
on_call_tool
(self, context, call_next)
tests/server/middleware/test_usage.py:315
Method
on_call_tool
(self, context, call_next)
tests/server/middleware/test_usage.py:354
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext,
tests/server/telemetry/test_server_tracing.py:514
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext,
tests/server/telemetry/test_server_tracing.py:556
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, call_next)
tests/server/providers/proxy/test_proxy_server.py:1369
Method
on_call_tool
(self, context, call_next)
tests/server/providers/proxy/test_non_object_outputs.py:219
Method
on_discover
( self, context: MiddlewareContext[mt.DiscoverRequest], call_next: CallNext[mt.Discove
fastmcp_slim/fastmcp/server/middleware/middleware.py:232
Method
on_discover
( self, context: MiddlewareContext[mcp_types.DiscoverRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:1487
Method
on_discover
( self, context: MiddlewareContext[mcp_types.DiscoverRequest], call_next:
tests/server/middleware/test_discovery_middleware.py:18
Method
on_discover
(self, context, call_next)
tests/server/middleware/test_discovery_middleware.py:59
Method
on_discover
(self, context, call_next)
tests/server/middleware/test_discovery_middleware.py:91
Method
on_discover
( self, context: MiddlewareContext[mcp_types.DiscoverRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:91
Method
on_discover
( self, context: MiddlewareContext[mcp_types.DiscoverRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:130
Method
on_discover
(self, context, call_next)
tests/server/providers/proxy/test_server_metadata.py:425
Method
on_discover
(self, context, call_next)
tests/server/providers/proxy/test_proxy_headers.py:22
Function
on_elicitation
( mcp_context: Any, params: Any, context: Any )
tests/downstream/smoke_langchain_mcp_adapters.py:82
Method
on_error
(self, callback)
tests/server/test_server_docket.py:202
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/middleware.py:263
Method
on_get_prompt
Get a prompt from the cache, if caching is enabled, and the result is in the cache. Otherwise, call the next middleware and store the result i
fastmcp_slim/fastmcp/server/middleware/caching.py:587
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/usage.py:176
Method
on_get_prompt
Check auth before prompt render.
fastmcp_slim/fastmcp/server/middleware/authorization.py:462
Method
on_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
tests/server/providers/test_fastmcp_provider.py:60
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallNext[mt.Initi
fastmcp_slim/fastmcp/server/middleware/middleware.py:225
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:342
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:1461
Method
on_initialize
Capture initialization details.
tests/server/middleware/test_initialization_middleware.py:40
Method
on_initialize
Detect test client during initialization.
tests/server/middleware/test_initialization_middleware.py:78
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:124
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:287
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:316
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:340
Method
on_initialize
( self, context: MiddlewareContext[mt.InitializeRequest], call_next: CallN
tests/server/middleware/test_initialization_middleware.py:370
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:80
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:119
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next
tests/server/providers/proxy/test_server_metadata.py:257
Method
on_initialize
(self, context, call_next)
tests/server/providers/proxy/test_server_metadata.py:420
Method
on_list
(self, ctx)
tests/apps/test_file_upload.py:210
Method
on_list_prompts
( self, context: MiddlewareContext[mt.ListPromptsRequest], call_next: CallNext[mt.List
fastmcp_slim/fastmcp/server/middleware/middleware.py:293
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, call the next middleware and store the result i
fastmcp_slim/fastmcp/server/middleware/caching.py:438
Method
on_list_prompts
Filter prompts/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:435
Method
on_list_prompts
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:433
Method
on_list_prompts
( self, context: MiddlewareContext[mcp_types.ListPromptsRequest], call_next: CallNext[
tests/server/middleware/test_caching.py:1167
Method
on_list_resource_templates
( self, context: MiddlewareContext[mt.ListResourceTemplatesRequest], call_next: CallNe
fastmcp_slim/fastmcp/server/middleware/middleware.py:284
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:406
Method
on_list_resource_templates
( self, context: MiddlewareContext, call_next )
tests/server/middleware/test_middleware.py:401
Method
on_list_resources
( self, context: MiddlewareContext[mt.ListResourcesRequest], call_next: CallNext[mt.Li
fastmcp_slim/fastmcp/server/middleware/middleware.py:277
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, call the next middleware and store the result
fastmcp_slim/fastmcp/server/middleware/caching.py:405
Method
on_list_resources
Filter resources/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:308
Method
on_list_resources
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:371
Method
on_list_resources
( self, context: MiddlewareContext[mcp_types.ListResourcesRequest], call_next: CallNex
tests/server/middleware/test_caching.py:1159
Method
on_list_tools
( self, context: MiddlewareContext[mt.ListToolsRequest], call_next: CallNext[mt.ListTo
fastmcp_slim/fastmcp/server/middleware/middleware.py:270
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, call the next middleware and store the result in
fastmcp_slim/fastmcp/server/middleware/caching.py:372
Method
on_list_tools
Filter tools/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:210
Method
on_list_tools
Hide schemas for tools whose response shape may be truncated to text.
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:107
Method
on_list_tools
(self, context, call_next)
tests/server/test_mcp_param_schema_cache.py:135
Method
on_list_tools
(self, context, call_next)
tests/server/test_mcp_param_schema_cache.py:198
Method
on_list_tools
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_message_visibility.py:52
Method
on_list_tools
Modify tools based on client detection.
tests/server/middleware/test_initialization_middleware.py:92
Method
on_list_tools
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware_nested.py:493
Method
on_list_tools
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:343
Method
on_list_tools
( self, context: MiddlewareContext[mcp_types.ListToolsRequest], call_next: CallNext[mc
tests/server/middleware/test_caching.py:1151
Method
on_list_tools
(self, context, call_next)
tests/server/providers/proxy/test_proxy_server.py:1365
Method
on_list_tools
( self, context: MiddlewareContext[mt.ListToolsRequest], call_next: CallNext[mt.ListTo
tests/server/mount/test_mount.py:329
Method
on_list_tools
( self, context: MiddlewareContext[mcp_types.ListToolsRequest],
tests/server/transforms/test_search.py:180
Function
on_log
(message: Any)
tests/downstream/smoke_pydantic_ai.py:89
Function
on_log
(params: Any, context: Any)
tests/downstream/smoke_langchain_mcp_adapters.py:79
Function
on_log
(message: LogMessage)
tests/server/providers/proxy/test_log_forwarding.py:45
Method
on_log
(self, message: Any)
tests/downstream/smoke_langchain_mcp.py:99
Method
on_message
( self, context: MiddlewareContext[Any], call_next: CallNext[Any, Any], )
fastmcp_slim/fastmcp/server/middleware/middleware.py:204
Method
on_message
Log messages for configured methods.
fastmcp_slim/fastmcp/server/middleware/logging.py:124
Method
on_message
(self, context, call_next)
tests/test_mcp_config.py:1301
Method
on_message
(self, context, call_next)
tests/server/middleware/test_message_visibility.py:245
Method
on_message
(self, context, call_next)
tests/server/middleware/test_message_visibility.py:284
Method
on_message
(self, context, call_next)
tests/server/middleware/test_message_visibility.py:317
Method
on_next
(self, callback)
tests/server/test_server_docket.py:200
Method
on_notification
( self, context: MiddlewareContext[mt.Notification[Any, Any]], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/middleware.py:218
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, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_message_visibility.py:40
Function
on_progress
( value: float, total: float | None, message: str | None )
tests/downstream/smoke_pydantic_ai.py:84
Function
on_progress
( value: float, total: float | None, message: str | None, context: Any )
tests/downstream/smoke_langchain_mcp_adapters.py:74
← previous
next →
6,501–6,600 of 16,725, ranked by callers