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
↓ 4 callers
Function
register_component_with_docket
Register a component's callable with Docket for background execution. No-ops if ``task_config.mode`` is ``forbidden``. Function-backed components
fastmcp_tasks/fastmcp_tasks/components.py:55
↓ 4 callers
Function
replace_query_param
Replace the first occurrence of `key` in a URL's query string in place. Like `add_query_params`, this does not round-trip the query through `
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:57
↓ 4 callers
Method
reset
Clear all recorded calls.
tests/server/middleware/test_middleware.py:110
↓ 4 callers
Method
resolve_tool
Resolve a public tool name to its client and upstream identity. A known route only requires its own client to be connected; one dead
fastmcp_slim/fastmcp/client/group.py:312
↓ 4 callers
Function
restore_dropped_attributes
Restore FastMCP attributes a non-forwarding sampler dropped entirely. `Tracer.start_span` builds the span from `SamplingResult.attributes`, not
fastmcp_slim/fastmcp/telemetry.py:226
↓ 4 callers
Function
rotate
(admin: Redis, path: Path, password: str)
tests/integration_tests/test_task_credentials.py:76
↓ 4 callers
Function
run_cli_command
Run a client CLI so that it receives each argument literally. On Windows, a `.cmd` or `.bat` file always runs through cmd.exe, which would ot
fastmcp_slim/fastmcp/cli/install/shared.py:142
↓ 4 callers
Function
save
()
tests/apps/test_tool_names.py:15
↓ 4 callers
Function
secret_visible
(client: Client)
tests/server/test_session_scope.py:57
↓ 4 callers
Function
server_url_has_query
Check if a URL has query parameters.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:487
↓ 4 callers
Method
set_mcp_path
Bind the default verifier's audience to this server's resource URL. AuthKit with Resource Indicators (RFC 8707) mints tokens whose ``aud``
fastmcp_slim/fastmcp/server/auth/providers/workos.py:426
↓ 4 callers
Method
settings
(self)
tests/server/test_provider_extensions.py:101
↓ 4 callers
Function
should_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
↓ 4 callers
Function
skill_server
(name: str)
tests/client/group/test_skills.py:8
↓ 4 callers
Function
skills_client
(server: FastMCP)
tests/client/group/test_skills.py:13
↓ 4 callers
Function
snapshot_codec
The codec for the configured key; the plaintext codec when none is set.
fastmcp_tasks/fastmcp_tasks/encryption.py:161
↓ 4 callers
Function
spec_with_responses
(responses: dict[str, Any])
tests/server/providers/openapi/test_bodiless_success_responses.py:29
↓ 4 callers
Function
state_lock
Lock related CLI state changes across processes.
fastmcp_slim/fastmcp/cli/deploy/state.py:97
↓ 4 callers
Function
template_param_key
Normalize a template variable name into the key used for matched params. Regex group names must be valid Python identifiers, so every character a
fastmcp_slim/fastmcp/resources/template.py:171
↓ 4 callers
Function
test_server
()
tests/test_mcp_config.py:749
↓ 4 callers
Function
text_resource
(uri: str, text: str)
tests/utilities/test_skills.py:45
↓ 4 callers
Function
texts
(contents: Any)
tests/downstream/smoke_agent_framework.py:76
↓ 4 callers
Method
to_mcp_prompt
Convert the prompt to an MCP prompt.
fastmcp_slim/fastmcp/prompts/base.py:246
↓ 4 callers
Method
to_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:446
↓ 4 callers
Function
unscoped_tool
(fn: Callable[[], str], name: str)
tests/server/middleware/test_tool_injection.py:321
↓ 4 callers
Function
upload_tool_names
(client: Client)
tests/server/test_session_scope.py:44
↓ 4 callers
Method
validate
Check all parameter values against the configured policy. String values (and lists of strings, from wildcard `{path*}` parameters tha
fastmcp_slim/fastmcp/resources/security.py:127
↓ 4 callers
Method
validate_private_key_jwt
Validate JWT assertion for private_key_jwt auth. Args: assertion: JWT assertion string from client client: OAuth prox
fastmcp_slim/fastmcp/server/auth/cimd.py:818
↓ 4 callers
Function
validate_server_name
Validate that a server name is safe for use as a subprocess argument. Raises SystemExit if the name contains shell metacharacters.
fastmcp_slim/fastmcp/cli/install/shared.py:32
↓ 4 callers
Method
verify_token
Verify token using the configured token verifier.
fastmcp_slim/fastmcp/server/auth/auth.py:658
↓ 4 callers
Function
whoami
Show the current Prefect Horizon user.
fastmcp_slim/fastmcp/cli/deploy/command.py:303
↓ 4 callers
Function
write_invalid
(folder: Path)
tests/skills/test_deprecated_paths.py:22
↓ 4 callers
Function
x
(row)
status-site/app.js:167
↓ 3 callers
Function
CurrentSession
Inject the per-user `Session` for the current authenticated principal. Rarely written explicitly — a `session: UserSession` parameter is rewritte
fastmcp_slim/fastmcp/server/sessions.py:449
↓ 3 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/client/client.py:994
↓ 3 callers
Method
__init__
( self, *, store: PydanticAdapter[StateValue], principal: str | None,
fastmcp_slim/fastmcp/server/sessions.py:190
↓ 3 callers
Method
__init__
(self, *, enabled: bool = True)
tests/server/test_provider_extensions.py:96
↓ 3 callers
Function
_accepted
The accepted form content for one answered elicitation.
tests/server/test_mrtr_guards_components.py:49
↓ 3 callers
Function
_add_components
(mcp: FastMCP)
tests/contrib/test_component_manager.py:689
↓ 3 callers
Function
_answer
The accepted value for the question `_ask` poses.
tests/server/middleware/test_caching_guards.py:43
↓ 3 callers
Method
_append
(self, entry: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:71
↓ 3 callers
Function
_ask
( request: ElicitRequest, key: str, request_state: str | None )
tests/server/test_mrtr_guards_components.py:39
↓ 3 callers
Function
_ask
The single-question ask every guard in this module returns.
tests/server/middleware/test_caching_guards.py:26
↓ 3 callers
Method
_bind
Bind this provider to a specific MCP server URL. Called automatically when ``mcp_url`` is provided to ``__init__``, or by the transpo
fastmcp_slim/fastmcp/client/auth/client_credentials.py:240
↓ 3 callers
Method
_build_extension_kwargs
Session kwargs contributed by `extensions=` / `result_claims=`. Folds the user's `ClientExtension` instances into the capability ad, result
fastmcp_slim/fastmcp/client/client.py:1424
↓ 3 callers
Function
_build_resource_for_tool
Build a lazy renderer resource, identified by its effective configuration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:73
↓ 3 callers
Method
_build_upstream_authorize_url
Build Azure authorization URL with prefixed scopes. Overrides parent to prefix scopes with identifier_uri before sending to Azure, wh
fastmcp_slim/fastmcp/server/auth/providers/azure.py:494
↓ 3 callers
Method
_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:939
↓ 3 callers
Function
_by_status
(status: str)
examples/apps/approvals/approvals_server.py:129
↓ 3 callers
Method
_cache_key_prefix
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:118
↓ 3 callers
Function
_call_get_item
(server: FastMCP)
tests/server/providers/openapi/test_http_errors.py:61
↓ 3 callers
Function
_call_slow
(server: FastMCP)
tests/server/providers/openapi/test_transport_errors.py:37
↓ 3 callers
Function
_call_tool
( spec: dict[str, Any], arguments: dict[str, Any] )
tests/server/providers/openapi/test_undeclared_arguments.py:76
↓ 3 callers
Method
_call_tool
Helper method to call a tool with the provided arguments.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:140
↓ 3 callers
Method
_chain_shortfall
Widen this middleware's shortfall to cover the rest of the chain. Scope requirements are commonly split across several `AuthMiddleware`
fastmcp_slim/fastmcp/server/middleware/authorization.py:156
↓ 3 callers
Method
_chat_completion_to_create_message_result
( chat_completion: ChatCompletion, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:397
↓ 3 callers
Method
_check_task_request
Run both gates every `tasks/*` method shares.
fastmcp_tasks/fastmcp_tasks/extension.py:225
↓ 3 callers
Method
_clear_consent_binding_cookie
Expire this transaction's binding after its successful callback. The legacy shared cookie is left to its 15-minute expiry: rewriting it
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:399
↓ 3 callers
Function
_client
()
tests/server/providers/openapi/test_default_names.py:23
↓ 3 callers
Function
_client
(provider: AuthKitProvider, real_client)
tests/server/auth/providers/test_metadata_forwarding_cache.py:68
↓ 3 callers
Function
_client
( server: FastMCP, stateless: bool | None, **kwargs: Any )
tests/server/transforms/test_input_required.py:96
↓ 3 callers
Method
_connect
Establish or reuse a session connection. This method implements the reentrant context manager pattern: - First call: Creates
fastmcp_slim/fastmcp/client/client.py:1054
↓ 3 callers
Function
_consent_state_base_name
Base cookie name carrying a single issued CSRF token. The token is hashed rather than used directly so the raw token does not end up in a coo
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:68
↓ 3 callers
Function
_copy_schema
Return a deep copy of a JSON schema without recursing. `copy.deepcopy` consumes stack frames in proportion to nesting depth, so a deeply nest
fastmcp_slim/fastmcp/utilities/json_schema.py:17
↓ 3 callers
Function
_could_be_prefab
Cheaply reject ordinary values before importing Prefab UI.
fastmcp_slim/fastmcp/utilities/prefab.py:29
↓ 3 callers
Function
_count
Normalize a JSON Schema count such as minLength or maxItems for Pydantic. JSON allows writing a count as `2.0`. A count above `sys.maxsize` excee
fastmcp_slim/fastmcp/utilities/json_schema_type.py:552
↓ 3 callers
Method
_create_upstream_oauth_client
Create an OAuth2 client for communicating with the upstream IdP. This is the single point for constructing the client used in token e
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:881
↓ 3 callers
Function
_default_is_valid
( field_type: Any, default: Any, namespace: dict[str, Any] | None = None )
fastmcp_slim/fastmcp/utilities/json_schema_type.py:487
↓ 3 callers
Method
_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:111
↓ 3 callers
Method
_drain_cull
(self, proxy: OAuthProxy)
tests/server/auth/test_oauth_proxy_storage.py:260
↓ 3 callers
Method
_drive_input_required
Resolve a SEP-2322 `InputRequiredResult` to its terminal result. A 2026-era server may answer `tools/call` / `prompts/get` / `resources/read`
fastmcp_slim/fastmcp/client/client.py:1383
↓ 3 callers
Function
_elicit
A single-field form elicitation request keyed by ``key``.
tests/server/test_mrtr_guards_components.py:26
↓ 3 callers
Function
_ensure_async
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:48
↓ 3 callers
Method
_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:615
↓ 3 callers
Method
_expire_cookie
Expire one cookie by name, matching the attributes it was set with.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:329
↓ 3 callers
Function
_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:43
↓ 3 callers
Method
_extract_upstream_claims
Extract upstream claims to embed in FastMCP JWT. Override this method to decode upstream tokens, call userinfo endpoints, or otherwis
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1770
↓ 3 callers
Function
_fail
( command: CommandName, category: ErrorCategory, message: str, *, json_output: bool, d
fastmcp_slim/fastmcp/cli/deploy/command.py:104
↓ 3 callers
Function
_fail_for_expected_error
( command: CommandName, error: Exception, *, json_output: bool, )
fastmcp_slim/fastmcp/cli/deploy/command.py:122
↓ 3 callers
Function
_format_call_result_text
Pretty-print a tool call result to the console.
fastmcp_slim/fastmcp/cli/client.py:573
↓ 3 callers
Method
_format_message
Format a message for logging.
fastmcp_slim/fastmcp/server/middleware/logging.py:49
↓ 3 callers
Method
_forwarded
( self, server: FastMCP, tool: str = "status", mode: str = "auto" )
tests/server/providers/proxy/test_proxy_server.py:1465
↓ 3 callers
Function
_fresh_upstream
A CountingUpstream subclass with its own call counter.
tests/server/auth/providers/test_metadata_forwarding_cache.py:57
↓ 3 callers
Method
_gather
(self, operations: Iterable[Awaitable[_T]])
fastmcp_slim/fastmcp/skills/extension.py:146
↓ 3 callers
Function
_get_arguments_str
Get a canonical string representation of the arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:651
↓ 3 callers
Method
_get_client
(self)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:195
↓ 3 callers
Method
_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:130
↓ 3 callers
Function
_get_component_version_cache_key
Return a cache partition for the requested component version.
fastmcp_slim/fastmcp/server/middleware/caching.py:691
↓ 3 callers
Method
_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:180
↓ 3 callers
Function
_get_parent_trace_context
Get parent trace context from request meta for distributed tracing.
fastmcp_slim/fastmcp/server/telemetry.py:111
↓ 3 callers
Method
_get_scope_key
Return the key used to partition file storage. Defaults to the MCP session on handshake-era connections. A 2026-07-28 connection has
fastmcp_slim/fastmcp/apps/file_upload.py:188
↓ 3 callers
Function
_get_status
(server: ASGIServer, headers: dict[str, str])
tests/server/http/test_sse_host_origin_protection.py:46
↓ 3 callers
Method
_get_token_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:127
↓ 3 callers
Method
_get_tool
Get a specific tool by name. Default implementation filters _list_tools() and picks the highest version that matches the spec.
fastmcp_slim/fastmcp/server/providers/base.py:469
↓ 3 callers
Method
_get_tool
( self, name: str, version: VersionSpec | None = None )
tests/server/mount/test_mount.py:338
↓ 3 callers
Method
_get_unique_name
Ensure the name is unique by appending numbers if needed.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:236
↓ 3 callers
Method
_get_visible_tools
Get the auth-filtered tool catalog, excluding pinned tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:401
↓ 3 callers
Function
_guide
(name: str)
tests/docs/test_upgrade_guide_api_claims.py:34
↓ 3 callers
Method
_identities
Skill URIs before authorization, preserving duplicates across sources.
fastmcp_slim/fastmcp/skills/extension.py:162
↓ 3 callers
Function
_ignoring_gc_noise
Drop ResourceWarnings from sockets other tests leaked. Garbage collection can finalize them at any allocation inside a `catch_warnings` block
tests/cli/test_client_commands.py:736
← previous
next →
1,001–1,100 of 15,974, ranked by callers