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
↓ 2 callers
Method
required_extensions
Extensions bundled with this provider. FastMCP automatically registers a separate instance of each extension on the receiving server.
fastmcp_slim/fastmcp/server/providers/base.py:96
↓ 2 callers
Method
required_extensions
Collect bundled extensions from children in provider order.
fastmcp_slim/fastmcp/server/providers/aggregate.py:103
↓ 2 callers
Method
reset
Clear all recorded notifications.
tests/client/test_notifications.py:62
↓ 2 callers
Function
resolve_definition_pointer
Look up ``pointer``, the part of a ``#/$defs/...`` reference after ``#/$defs/``, in ``definitions``. The pointer can continue into a definiti
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:334
↓ 2 callers
Function
resolve_dependencies
Resolve dependencies for a FastMCP function. This function: 1. Filters out any dependency parameter names from user arguments (security)
fastmcp_slim/fastmcp/server/dependencies.py:922
↓ 2 callers
Function
resolve_hostname
Resolve hostname to IP addresses using DNS. Args: hostname: Hostname to resolve port: Port number (used for getaddrinfo) Ret
fastmcp_slim/fastmcp/server/auth/ssrf.py:178
↓ 2 callers
Function
resolve_room
(bridge: Bridge, target: str)
examples/smart_home/src/smart_home/lights/server.py:36
↓ 2 callers
Function
respond
(request: httpx2.Request)
tests/server/auth/test_jwks_refresh.py:35
↓ 2 callers
Function
responder
(request: httpx2.Request)
tests/client/auth/test_client_credentials.py:57
↓ 2 callers
Method
run
Run the tool with context set for forward() functions. This method executes the tool's function while setting up the context that all
fastmcp_slim/fastmcp/tools/tool_transform.py:429
↓ 2 callers
Method
run
Executes the tool by making a call through the client.
fastmcp_slim/fastmcp/server/providers/proxy.py:415
↓ 2 callers
Function
run_checks
( report: Report, checks: list[Callable[[], Awaitable[object]]], gaps: dict[str, str] | None = Non
tests/downstream/smoke_langchain_mcp.py:112
↓ 2 callers
Function
run_tasks_through_rotation
Rounds of concurrent task calls. Between rounds the server drops the connections after the provider's credentials have moved on, so the next
tests/downstream/smoke_redis_credentials.py:140
↓ 2 callers
Function
run_v1_server_async
Run the MCP SDK's high-level `MCPServer` using async methods. Args: server: SDK `MCPServer` instance host: Host to bind to
fastmcp_slim/fastmcp/cli/run.py:324
↓ 2 callers
Function
save_current_leg
Record the latest leg's Docket execution key and its number.
fastmcp_tasks/fastmcp_tasks/input_store.py:185
↓ 2 callers
Function
scripted_model
(add: str, forecast: str)
tests/downstream/smoke_langchain_mcp.py:55
↓ 2 callers
Function
send
(message: Message)
tests/server/http/test_http_middleware.py:253
↓ 2 callers
Function
send_callback
()
tests/client/auth/test_oauth_client.py:211
↓ 2 callers
Function
sent_query
(spec: dict[str, Any], args: dict[str, Any])
tests/server/providers/openapi/test_query_key_collisions.py:42
↓ 2 callers
Function
sequenced_transport
( responses: list[httpx2.Response], )
tests/cli/deploy/test_authentication.py:41
↓ 2 callers
Function
serialize_tools_for_output_json
Serialize tools to the same dict format as ``list_tools`` output.
fastmcp_slim/fastmcp/server/transforms/search/base.py:62
↓ 2 callers
Function
server_python
The interpreter of the FastMCP checkout, which is what serves every smoke test.
tests/downstream/_harness.py:64
↓ 2 callers
Function
setCategory
()
status-site/app.js:458
↓ 2 callers
Function
setInterval
()
tests/test_status_refresh.cjs:41
↓ 2 callers
Function
set_background_context_factory
Install (or clear) the background-task ``Context`` factory. The factory returns an already-entered ``Context`` (so ``_current_context`` is se
fastmcp_slim/fastmcp/server/dependencies.py:196
↓ 2 callers
Function
set_worker_server_resolver
Install (or clear) the worker-server resolver used by ``get_server()``.
fastmcp_slim/fastmcp/server/dependencies.py:218
↓ 2 callers
Method
settings
Per-extension settings advertised at `capabilities.extensions[identifier]`. An empty dict (the default) advertises the extension with no sett
fastmcp_slim/fastmcp/server/extensions.py:232
↓ 2 callers
Function
spec_for
A POST /things whose request and response both use the `Thing` schema.
tests/server/providers/openapi/test_write_only_responses.py:139
↓ 2 callers
Method
status
Fetch the task's current status via `tasks/get`.
fastmcp_tasks/fastmcp_tasks/client.py:435
↓ 2 callers
Method
store_event
( self, stream_id: StreamId, message: JSONRPCMessage | None )
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:34
↓ 2 callers
Function
synthesize_prefab_resource_by_uri
Intercept a Prefab renderer URI and synthesize on demand.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:266
↓ 2 callers
Function
tasks_cancel
Handle ``tasks/cancel``: cooperatively cancel the task, empty ack. A durable cancellation marker is recorded so the logical task reports ``ca
fastmcp_tasks/fastmcp_tasks/handlers.py:449
↓ 2 callers
Function
tasks_get
Handle ``tasks/get``: the detailed task with its result/error/inputs inlined.
fastmcp_tasks/fastmcp_tasks/handlers.py:250
↓ 2 callers
Function
tasks_update
Handle ``tasks/update``: answer a guard leg and re-enter the task. The responses are keyed by the surfaced keys ``tasks/get`` reported. Unknown
fastmcp_tasks/fastmcp_tasks/handlers.py:337
↓ 2 callers
Function
temporary_log_level
Context manager to temporarily set log level and restore it afterwards. Args: level: The temporary log level to set (e.g., "DEBUG", "INFO
fastmcp_slim/fastmcp/utilities/logging.py:127
↓ 2 callers
Method
to_dict
Convert MCPConfig to dictionary format, preserving all fields.
fastmcp_slim/fastmcp/mcp_config.py:392
↓ 2 callers
Method
to_light_state
(self)
examples/smart_home/src/smart_home/lights/models.py:32
↓ 2 callers
Method
to_transport
(self)
tests/client/group/test_client_group.py:27
↓ 2 callers
Method
track
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:244
↓ 2 callers
Method
ui
( self, name_or_fn: F, *, name: str | None = None, description: str |
fastmcp_slim/fastmcp/apps/app.py:280
↓ 2 callers
Function
unwrap_optional
Return a field's bare type, unwrapping an Optional[T] annotation to T.
tests/utilities/json_schema_type/test_advanced.py:22
↓ 2 callers
Function
update_config_file
Update an MCP configuration file from a server object, preserving existing fields. This is used for updating the mcpServer configurations of thir
fastmcp_slim/fastmcp/mcp_config.py:427
↓ 2 callers
Function
use
(api: HorizonAuthAPI)
tests/cli/deploy/test_command.py:87
↓ 2 callers
Function
user
()
tests/cli/deploy/test_output.py:28
↓ 2 callers
Function
user_spec
(openapi_version: str)
tests/server/providers/openapi/test_write_only_responses.py:15
↓ 2 callers
Method
verify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:65
↓ 2 callers
Method
verify_token
(self, token: str)
tests/server/auth/test_issuer_url_identity.py:52
↓ 2 callers
Function
versioned_contacts_app
()
tests/server/test_hashed_tool_dispatch.py:307
↓ 2 callers
Function
wrapped_definition_schema
( title: str, *, additional_properties: bool, description_size: int = 3_000 )
tests/utilities/json_schema_type/test_generated_classes.py:476
↓ 2 callers
Function
write_state
Write JSON through a restricted temporary file and atomic replacement.
fastmcp_slim/fastmcp/cli/deploy/state.py:170
↓ 2 callers
Function
youtube_video_id
Extract a video ID from the common YouTube URL shapes.
examples/apps/media_picker/media_picker_server.py:80
↓ 1 callers
Function
CurrentAccessToken
Get the current access token for the authenticated user. This dependency provides access to the AccessToken for the current authenticated req
fastmcp_slim/fastmcp/server/dependencies.py:1397
↓ 1 callers
Function
CurrentHeaders
Get the current HTTP request headers. This dependency provides access to the HTTP headers for the current request, including the `authorizati
fastmcp_slim/fastmcp/server/dependencies.py:1179
↓ 1 callers
Function
CurrentWorker
Get the current Docket Worker instance managed by FastMCP. This dependency provides access to the Worker instance that FastMCP automatically
fastmcp_tasks/fastmcp_tasks/dependencies.py:161
↓ 1 callers
Function
EntraOBOToken
Exchange the user's Entra token for a downstream API token via OBO. This dependency performs a Microsoft Entra On-Behalf-Of (OBO) token exchange,
fastmcp_slim/fastmcp/server/auth/providers/azure.py:898
↓ 1 callers
Function
OptionalCurrentContext
Get the current FastMCP Context, or None when no context is active.
fastmcp_slim/fastmcp/server/dependencies.py:1075
↓ 1 callers
Function
OptionalCurrentSession
Inject the per-user `Session`, or `None` when the request is unauthenticated. Rarely written explicitly — a `session: UserSession | None = None`
fastmcp_slim/fastmcp/server/sessions.py:459
↓ 1 callers
Function
TaskKey
()
fastmcp_tasks/fastmcp_tasks/context.py:30
↓ 1 callers
Method
__aenter__
Enter the context manager and set this context as the current context.
fastmcp_slim/fastmcp/server/context.py:274
↓ 1 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1311
↓ 1 callers
Method
__aenter__
(self)
tests/server/test_dependencies_advanced.py:20
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
fastmcp_slim/fastmcp/client/client.py:1007
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callers
Method
__init__
Initialize OAuth client provider for an MCP server. Args: mcp_url: Full URL to the MCP endpoint (e.g. "http://host/mcp/s
fastmcp_slim/fastmcp/client/auth/oauth.py:213
↓ 1 callers
Method
__init__
( self, api_origin: str = DEFAULT_HORIZON_API_ORIGIN, *, api_key: SecretStr |
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:153
↓ 1 callers
Method
__init__
(self, app: ASGIApp)
fastmcp_slim/fastmcp/server/http.py:472
↓ 1 callers
Method
__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:442
↓ 1 callers
Method
__init__
Initialize AWS Cognito OAuth provider. Args: user_pool_id: Your Cognito User Pool ID (e.g., "eu-central-1_XXXXXXXXX")
fastmcp_slim/fastmcp/server/auth/providers/aws.py:127
↓ 1 callers
Method
__init__
Initialize GitHub OAuth provider. Args: client_id: GitHub OAuth app client ID (e.g., "Ov23li...") client_secret: GitH
fastmcp_slim/fastmcp/server/auth/providers/github.py:318
↓ 1 callers
Method
__init__
Initialize Auth0 OAuth provider. Args: config_url: Auth0 config URL client_id: Auth0 application client id
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:84
↓ 1 callers
Method
__init__
Initialize Azure OAuth provider. Args: client_id: Azure application (client) ID from your App registration client_sec
fastmcp_slim/fastmcp/server/auth/providers/azure.py:100
↓ 1 callers
Method
__init__
Initialize Clerk OAuth provider. Args: domain: Clerk instance domain (e.g., "saving-primate-16.clerk.accounts.dev").
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:284
↓ 1 callers
Method
__init__
Initialize Google OAuth provider. Args: client_id: Google OAuth client ID (e.g., "123456789.apps.googleusercontent.com")
fastmcp_slim/fastmcp/server/auth/providers/google.py:277
↓ 1 callers
Method
__init__
Initialize a JWTVerifier configured to validate JWTs using either a static key or a JWKS endpoint. Parameters: public_ke
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:231
↓ 1 callers
Method
__init__
Initialize Discord OAuth provider. Args: client_id: Discord OAuth client ID (e.g., "123456789") client_secret: Discor
fastmcp_slim/fastmcp/server/auth/providers/discord.py:196
↓ 1 callers
Method
__init__
Initialize the Descope provider. Args: base_url: Public URL of this FastMCP server. config_url: A resource-specific o
fastmcp_slim/fastmcp/server/auth/providers/descope.py:162
↓ 1 callers
Method
__init__
Initialize Hugging Face OAuth provider. Args: client_id: Hugging Face OAuth app client ID. Public apps and CIMD c
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:179
↓ 1 callers
Method
__init__
(self, k1: float = 1.5, b: float = 0.75)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:29
↓ 1 callers
Method
__init__
(self, skills: SkillCatalog | None = None)
fastmcp_slim/fastmcp/skills/provider.py:246
↓ 1 callers
Method
__init__
( self, *, search_fn: SearchFn | None = None, name: str = "search", de
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:368
↓ 1 callers
Method
__init__
(self, exception: Exception)
tests/client/client/test_session.py:28
↓ 1 callers
Method
__init__
(self, admin: redis.Redis)
tests/downstream/smoke_redis_credentials.py:110
↓ 1 callers
Method
__init__
(self, tools: Sequence[Tool])
tests/server/test_providers.py:72
↓ 1 callers
Method
__init__
(self, app: ASGIApp, header_name: str, header_value: str)
tests/server/http/test_http_middleware.py:23
↓ 1 callers
Method
__init__
(self, required_scopes: list[str])
tests/server/auth/test_enhanced_error_responses.py:29
↓ 1 callers
Method
__setattr__
(self, name: str, value: object)
fastmcp_slim/fastmcp/skills/skill.py:259
↓ 1 callers
Method
_absorb_tool_listing
( self, result: mcp_types.ListToolsResult, *, complete: bool )
fastmcp_slim/fastmcp/client/transports/base.py:89
↓ 1 callers
Function
_accepts_exploded_query
Whether an annotation explicitly accepts the list produced by explode.
fastmcp_slim/fastmcp/resources/template.py:74
↓ 1 callers
Function
_access_restricted_names
Names of the object's properties annotated with any of ``access_keys``. A property counts when its own schema, its ``$ref`` target, or one of its
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:380
↓ 1 callers
Function
_account_panel
( user: HorizonUser, *, title: str, message: str, )
fastmcp_slim/fastmcp/cli/deploy/output.py:53
↓ 1 callers
Function
_aggregate_by
(rows: list[dict], key: str)
examples/apps/explorer/explorer_server.py:321
↓ 1 callers
Method
_allow_same_origin_fallback
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:304
↓ 1 callers
Method
_allowed_hosts_for_scope
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:314
↓ 1 callers
Function
_answer_input_requests
Answer a task's outstanding input requests, then deliver via `tasks/update`. Each request is surfaced by a server-minted key and carries a serial
fastmcp_tasks/fastmcp_tasks/client.py:173
↓ 1 callers
Method
_apply_client_auth
Attach client credentials per the configured auth method (RFC 6749 §2.3).
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:66
↓ 1 callers
Function
_apply_meta_override
Apply a transform's ``meta=`` override, preserving framework namespaces. An override replaces the caller-facing meta wholesale, which is what use
fastmcp_slim/fastmcp/tools/tool_transform.py:365
↓ 1 callers
Method
_apply_shared_context
Re-establish app-scoped SharedContext ContextVars for this request. The SDK v2 dispatcher runs handlers in the message sender's context, so
fastmcp_slim/fastmcp/server/low_level.py:303
↓ 1 callers
Method
_apply_single_transform
Apply transformation to a single parameter. This method handles the transformation of a single argument according to the specified tr
fastmcp_slim/fastmcp/tools/tool_transform.py:929
↓ 1 callers
Function
_apply_value_metadata
Override title/description on the wrapped ``value`` property in-place.
fastmcp_slim/fastmcp/server/elicitation.py:228
↓ 1 callers
Method
_arg_transform_explicit_required_names
( transform_args: dict[str, ArgTransform] | None, )
fastmcp_slim/fastmcp/tools/tool_transform.py:1022
← previous
next →
1,801–1,900 of 15,974, ranked by callers