Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
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:113
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:1198
Method
on_list_tools
( self, context: MiddlewareContext, call_next: CallNext )
tests/server/providers/test_prefab_without_dependency.py:21
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
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:544
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:39
Method
on_read_resource
(self, context, call_next)
tests/server/auth/test_resource_auth_shadowing.py:172
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:179
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
( registration: EventRegistration = registration, subs
fastmcp_events/fastmcp_events/webhook_delivery.py:757
Method
one
()
tests/server/test_pagination.py:145
Function
one_question
(ctx: Context)
tests/tasks/server/test_guard_reentrant.py:400
Method
only_scope
()
tests/server/test_cache_hints.py:275
Function
only_tool
()
tests/server/test_extensions.py:162
Method
only_ttl
()
tests/server/test_cache_hints.py:271
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
Method
operation_with_error
An operation that can be made to fail.
tests/server/middleware/test_logging.py:455
Function
opted_in_headers
()
tests/server/http/test_http_dependencies.py:187
Function
optional_context
Tool with optional context.
tests/tools/test_tool_future_annotations.py:31
Method
optional_integer_prompt
(value: int | None)
tests/prompts/test_prompt.py:391
Function
optional_scope_remote_provider
()
tests/server/auth/test_auth_provider.py:41
Method
optional_tool
()
tests/tasks/server/test_task_config.py:163
Method
optional_tool
()
tests/tasks/server/test_task_mount.py:474
Method
order
()
tests/utilities/json_schema_type/test_generated_classes.py:151
Function
ordinary
()
tests/tools/tool_transform/test_generator_execution.py:23
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:255
Method
original
()
tests/server/providers/test_transforming_provider.py:221
Method
original
()
tests/server/providers/test_transforming_provider.py:275
Method
original_func
(ctx: str, query: str, limit: int = 10)
tests/utilities/test_types.py:678
Method
original_tool
(x: int)
tests/server/providers/test_local_provider.py:735
Method
original_tool
()
tests/server/mount/test_advanced.py:395
Function
otel_trace_provider
Configure OTEL SDK with in-memory span exporter for testing. Session-scoped because TracerProvider can only be set once per process.
tests/conftest.py:210
Function
other
(n: int)
tests/tasks/server/test_task_middleware.py:149
Function
other
()
tests/server/test_tool_transformation.py:317
Function
other_scheme
()
tests/skills/test_list_skill_resources.py:117
Function
outer
()
tests/server/test_provider_extensions.py:708
Method
outer
(ctx: Context)
tests/tasks/server/test_task_catalog_transforms.py:148
Method
outer
()
tests/server/test_input_validation.py:578
Method
outer
(ctx: Context)
tests/server/telemetry/test_provider_tracing.py:251
Method
overwritten_get_user
(user_id: str)
tests/server/providers/proxy/test_proxy_server.py:742
Method
overwritten_wave
()
tests/server/providers/proxy/test_proxy_server.py:626
Method
owner
(self)
scripts/rank_issues.py:132
Method
paint
(request: PaintRequest)
tests/server/middleware/test_dereference.py:29
Function
pair
(a: str, b: str)
tests/downstream/server.py:173
Method
pair
(a: str = Field(alias="b"), b: str = "default-b")
tests/resources/test_resource_template.py:1420
Method
pair
(self)
tests/docs/test_upgrade_guide_equivalence.py:126
Method
pair
(self)
tests/docs/test_upgrade_guide_equivalence.py:184
Function
parallel
Fire several background tasks at once and drive them concurrently. Each `call_tool_task` returns immediately, so we start every task before a
examples/tasks/client.py:88
Method
parameter_spec
OpenAPI spec with various parameter types.
tests/server/providers/openapi/test_openapi_features.py:42
Function
parameters
One parameter object and a value to call it with.
tests/pbt/test_openapi_params.py:56
Function
parameters_only
(**kwargs: Any)
fastmcp_events/fastmcp_events/registration.py:246
Method
params
(self)
tests/server/auth/providers/test_azure.py:929
Method
params
(self)
tests/pbt/strategies.py:46
Function
parent
()
tests/tools/tool_transform/test_generator_execution.py:36
Function
parent
(x: str)
tests/tools/tool_transform/test_tool_transform.py:388
Function
parent
(n: Annotated[int | None, Field(ge=1, le=10)])
tests/tools/tool_transform/test_schema_compatibility.py:22
← previous
next →
7,001–7,100 of 17,519, ranked by callers