Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
Method
oauth_authorization_server_metadata
Forward AuthKit OAuth authorization server metadata with FastMCP customizations.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:434
Method
oauth_authorization_server_metadata
(request)
fastmcp_slim/fastmcp/server/auth/providers/descope.py:342
Function
oauth_proxy
Create a standard OAuthProxy instance for testing.
tests/server/auth/oauth_proxy/conftest.py:300
Method
oauth_proxy
Create OAuth proxy for testing.
tests/server/auth/test_enhanced_error_responses.py:96
Method
oauth_proxy
Create OAuth proxy for testing.
tests/server/auth/test_enhanced_error_responses.py:892
Method
oauth_proxy
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:2018
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:90
Function
oauth_proxy_https_path
OAuthProxy with a path component in base_url (no trailing slash). Exercises the RFC 9207 issuer consistency across a base_url shape where nai
tests/server/auth/test_oauth_consent_flow.py:121
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:105
Function
oauth_proxy_with_storage
Create OAuth proxy with explicit storage backend.
tests/server/auth/test_oauth_consent_flow.py:74
Method
object_with_consts
(self)
tests/utilities/json_schema_type/test_advanced.py:224
Function
oembed
Answer YouTube oEmbed for KNOWN_TITLES and 404 everything else.
examples/apps/media_picker/test_media_picker.py:30
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:212
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: CallNext[mt.C
fastmcp_slim/fastmcp/server/middleware/middleware.py:239
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:458
Method
on_call_tool
Check auth before tool execution.
fastmcp_slim/fastmcp/server/middleware/authorization.py:198
Method
on_call_tool
Intercept tool calls and limit response size.
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:119
Method
on_call_tool
( self, context: MiddlewareContext[mt.CallToolRequestParams], call_next: CallNext[mt.C
tests/tasks/server/test_task_mount.py:472
Method
on_call_tool
(self, context, call_next)
tests/tasks/server/test_task_catalog_transforms.py:215
Method
on_call_tool
(self, context, call_next)
tests/server/test_protocol_eras.py:382
Method
on_call_tool
( self, context: MiddlewareContext[mcp_types.CallToolRequestParams], call_
tests/server/test_provider_extensions.py:783
Method
on_call_tool
(self, context, call_next)
tests/server/test_mrtr_guards.py:448
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:438
Method
on_call_tool
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:603
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext,
tests/server/telemetry/test_server_tracing.py:512
Method
on_call_tool
( self, context: MiddlewareContext, call_next: CallNext,
tests/server/telemetry/test_server_tracing.py:554
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:1298
Method
on_data_table_row_highlighted
(self, event: DataTable.RowHighlighted)
scripts/rank_issues_tui.py:420
Method
on_data_table_row_selected
(self, event: DataTable.RowSelected)
scripts/rank_issues_tui.py:425
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:1261
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:88
Method
on_discover
( self, context: MiddlewareContext[mcp_types.DiscoverRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:127
Method
on_discover
(self, context, call_next)
tests/server/providers/proxy/test_server_metadata.py:422
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_get_prompt
( self, context: MiddlewareContext[mt.GetPromptRequestParams], call_next: CallNext[mt.
fastmcp_slim/fastmcp/server/middleware/middleware.py:253
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:563
Method
on_get_prompt
Check auth before prompt render.
fastmcp_slim/fastmcp/server/middleware/authorization.py:400
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:282
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
fastmcp_slim/fastmcp/server/providers/proxy.py:1244
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:77
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next: CallNext[
tests/server/providers/proxy/test_server_metadata.py:116
Method
on_initialize
( self, context: MiddlewareContext[mcp_types.InitializeRequest], call_next
tests/server/providers/proxy/test_server_metadata.py:254
Method
on_initialize
(self, context, call_next)
tests/server/providers/proxy/test_server_metadata.py:417
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:283
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:427
Method
on_list_prompts
Filter prompts/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:373
Method
on_list_prompts
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:404
Method
on_list_prompts
( self, context: MiddlewareContext[mcp_types.ListPromptsRequest], call_next: CallNext[
tests/server/middleware/test_caching.py:1120
Method
on_list_resource_templates
( self, context: MiddlewareContext[mt.ListResourceTemplatesRequest], call_next: CallNe
fastmcp_slim/fastmcp/server/middleware/middleware.py:274
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:344
Method
on_list_resource_templates
( self, context: MiddlewareContext, call_next )
tests/server/middleware/test_middleware.py:372
Method
on_list_resources
( self, context: MiddlewareContext[mt.ListResourcesRequest], call_next: CallNext[mt.Li
fastmcp_slim/fastmcp/server/middleware/middleware.py:267
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:394
Method
on_list_resources
Filter resources/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:256
Method
on_list_resources
(self, context: MiddlewareContext, call_next)
tests/server/middleware/test_middleware.py:342
Method
on_list_resources
( self, context: MiddlewareContext[mcp_types.ListResourcesRequest], call_next: CallNex
tests/server/middleware/test_caching.py:1112
Method
on_list_tools
( self, context: MiddlewareContext[mt.ListToolsRequest], call_next: CallNext[mt.ListTo
fastmcp_slim/fastmcp/server/middleware/middleware.py:260
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:361
Method
on_list_tools
Filter tools/list response based on auth checks.
fastmcp_slim/fastmcp/server/middleware/authorization.py:170
Method
on_list_tools
Hide schemas for tools whose response shape may be truncated to text.
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:105
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:314
Method
on_list_tools
( self, context: MiddlewareContext[mcp_types.ListToolsRequest], call_next: CallNext[mc
tests/server/middleware/test_caching.py:1104
← previous
next →
5,101–5,200 of 13,374, ranked by callers