Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
15,974 in github.com/PrefectHQ/fastmcp
⨍
Functions
15,974
◇
Types & classes
2,233
↳
Endpoints
189
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
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:297
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:1404
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
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/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
Method
on_progress
( self, value: float, total: float | None, message: str | None )
tests/downstream/smoke_langchain_mcp.py:94
Method
on_read
(self, name: str, ctx)
tests/apps/test_file_upload.py:222
Method
on_read_resource
( self, context: MiddlewareContext[mt.ReadResourceRequestParams], call_next: CallNext[
fastmcp_slim/fastmcp/server/middleware/middleware.py:255
Method
on_read_resource
Read a resource from the cache, if caching is enabled, and the result is in the cache. Otherwise, call the next middleware and store the resul
fastmcp_slim/fastmcp/server/middleware/caching.py:538
Method
on_read_resource
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/middleware/test_middleware_nested.py:652
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, call_next)
tests/server/providers/proxy/test_skills.py:38
Method
on_request
( self, context: MiddlewareContext[mt.Request[Any, Any]], call_next: CallNext[mt.Reque
fastmcp_slim/fastmcp/server/middleware/middleware.py:211
Method
on_request
Answer completion for a denied reference like an unknown one.
fastmcp_slim/fastmcp/server/middleware/authorization.py:117
Method
on_request
(self, context, call_next)
tests/server/test_completions.py:297
Method
on_request
(self, context: MiddlewareContext, call_next: CallNext)
tests/server/middleware/test_message_visibility.py:36
Method
on_request
(self, context, call_next)
tests/server/providers/proxy/test_skills.py:178
Method
on_start
(self, span: Span, parent_context: Context | None = None)
tests/telemetry/test_span_attributes.py:27
Method
on_store
(self, files: list[dict], ctx)
tests/apps/test_file_upload.py:196
Method
on_submit
(contact: Contact)
tests/apps/test_form.py:73
Method
one
()
tests/server/test_pagination.py:145
Function
one_question
(ctx: Context)
tests/tasks/server/test_guard_reentrant.py:400
Function
only_tool
()
tests/server/test_extensions.py:162
Method
only_v5
()
tests/server/versioning/test_filtering.py:223
Method
opaque_policy
(ctx: AuthContext)
tests/server/auth/test_authorization.py:1411
Function
open_browser
(url: str)
tests/cli/deploy/test_authentication.py:134
Method
open_resource
()
tests/server/transforms/test_resources_as_tools.py:315
Function
open_stream
()
tests/server/test_generator_dependency_lifetime.py:27
Method
open_stream
()
tests/server/test_dependencies_advanced.py:301
Method
openapi_31_spec
OpenAPI 3.1 spec to test compatibility.
tests/server/providers/openapi/test_comprehensive.py:333
Function
operation_with_error
An operation that can be made to fail.
tests/server/middleware/test_logging.py:417
← previous
next →
6,101–6,200 of 15,974, ranked by callers