MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

↓ 4 callersMethodget_tasks
Return components eligible for background task execution. Returns components that have task_config.mode != 'forbidden'. This includes
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:449
↓ 4 callersMethodget_tokens
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:144
↓ 4 callersMethodget_tool
(name: str, version=None)
tests/server/providers/test_local_provider.py:634
↓ 4 callersMethodget_tool
( self, name: str, call_next: GetToolNext, *, version: VersionSpec | None = None )
tests/server/transforms/test_catalog.py:46
↓ 4 callersMethodget_tool_by_hash
Get an app-visible tool by its identity hash, through `get_tool()`. The identity hash survives renaming, so `_get_tool_by_hash()` finds
fastmcp_slim/fastmcp/server/providers/base.py:263
↓ 4 callersFunctiongh_json
(*args: str)
scripts/gate_digest.py:98
↓ 4 callersFunctionguard_client
A client that answers each round automatically.
tests/server/middleware/test_caching_guards.py:82
↓ 4 callersFunctionhandler
( ctx: ServerRequestContext[Any, Any], params: Any )
fastmcp_slim/fastmcp/server/extensions.py:325
↓ 4 callersMethodintersect
Return a spec that satisfies both this spec and other. Used by transforms to combine caller constraints with filter constraints. For
fastmcp_slim/fastmcp/utilities/versions.py:88
↓ 4 callersFunctionisPrefectDestination
(url)
docs/fastmcp-analytics.js:115
↓ 4 callersMethodis_allowed
Check if a request is allowed.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:79
↓ 4 callersFunctionis_url
Check if a string is a URL.
fastmcp_slim/fastmcp/cli/run.py:84
↓ 4 callersFunctionlink
(text, url)
status-site/app.js:16
↓ 4 callersFunctionlist_command
List tools available on an MCP server. Examples: fastmcp list http://localhost:8000/mcp fastmcp list server.py fastmcp li
fastmcp_slim/fastmcp/cli/client.py:641
↓ 4 callersMethodlist_prompts
Retrieve all prompts available on the server. This method automatically fetches all pages if the server paginates results, returning
fastmcp_slim/fastmcp/client/mixins/prompts.py:72
↓ 4 callersMethodlist_tools
Apply transforms to matching tools.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:64
↓ 4 callersMethodload_access_token
Validate FastMCP JWT by swapping for upstream token. This implements the token swap pattern: 1. Verify FastMCP JWT signature (proves
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2161
↓ 4 callersFunctionnested_items_schema
(title: str)
tests/utilities/json_schema_type/test_generated_classes.py:34
↓ 4 callersFunctionnormalize_resource_url
Normalize a resource URL by removing query parameters and trailing slashes. RFC 8707 allows clients to include query parameters in resource URLs,
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:474
↓ 4 callersMethodon_request
Implement retry logic for requests.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:191
↓ 4 callersFunctionparseUrl
(href)
docs/fastmcp-analytics.js:107
↓ 4 callersFunctionparse_hashed_resource_uri
Extract the hash from a Prefab renderer URI, or None.
fastmcp_slim/fastmcp/server/providers/addressing.py:95
↓ 4 callersFunctionparse_version_key
Parse a version string into a sortable key. Args: version: The version string, or None for unversioned. Returns: A VersionKe
fastmcp_slim/fastmcp/utilities/versions.py:197
↓ 4 callersFunctionpoll_device_authorization
Poll at the server interval until the device request completes.
fastmcp_slim/fastmcp/cli/deploy/authentication.py:32
↓ 4 callersFunctionquiet
Silence loggers that report an interruption a check causes on purpose.
tests/downstream/_harness.py:136
↓ 4 callersMethodread_resource
Read a resource by its URI. For static resources, provide the exact URI. For templated resources, provide the URI with templa
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:138
↓ 4 callersMethodregister_all
Registers all marked tools, resources, and prompts with the server. This method calls ``register_tools``, ``register_resources``, and
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:286
↓ 4 callersFunctionregister_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:47
↓ 4 callersMethodremove_tool
Remove tool(s) from this provider's storage. Args: name: The tool name. version: If None, removes ALL versions. If sp
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:229
↓ 4 callersFunctionreplace_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:38
↓ 4 callersMethodreset
Clear all recorded notifications.
tests/server/test_session_visibility.py:45
↓ 4 callersMethodreset
Clear all recorded calls.
tests/server/middleware/test_middleware.py:110
↓ 4 callersMethodreset_visibility
Clear all session visibility rules. Use this to reset session visibility back to global defaults. Sends notifications to this sessio
fastmcp_slim/fastmcp/server/context.py:1275
↓ 4 callersFunctionrestore_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:209
↓ 4 callersFunctionrun_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 callersFunctionsave
(name: str)
tests/cli/test_fastmcp_remote.py:297
↓ 4 callersFunctionserver_url_has_query
Check if a URL has query parameters.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:487
↓ 4 callersMethodset_client_info
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/client/auth/oauth.py:184
↓ 4 callersMethodset_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:396
↓ 4 callersMethodsettings
(self)
tests/server/test_provider_extensions.py:101
↓ 4 callersFunctionshould_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
↓ 4 callersFunctionsnapshot_codec
The codec for the configured key; the plaintext codec when none is set.
fastmcp_tasks/fastmcp_tasks/encryption.py:161
↓ 4 callersFunctionstate_lock
Lock related CLI state changes across processes.
fastmcp_slim/fastmcp/cli/deploy/state.py:96
↓ 4 callersMethodstream
()
tests/tools/test_tool_run_in_thread.py:112
↓ 4 callersFunctiontest_server
()
tests/test_mcp_config.py:716
↓ 4 callersMethodto_mcp_prompt_message
Convert to MCP PromptMessage.
fastmcp_slim/fastmcp/prompts/base.py:93
↓ 4 callersMethodto_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:457
↓ 4 callersFunctionunscoped_tool
(fn: Callable[[], str], name: str)
tests/server/middleware/test_tool_injection.py:321
↓ 4 callersMethodvalidate_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:797
↓ 4 callersFunctionvalidate_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 callersFunctionwhoami
Show the current Prefect Horizon user.
fastmcp_slim/fastmcp/cli/deploy/command.py:303
↓ 3 callersMethod__aenter__
(self)
tests/server/test_dependencies.py:24
↓ 3 callersMethod__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/client/group.py:131
↓ 3 callersMethod__init__
( self, *, store: PydanticAdapter[StateValue], principal: str | None,
fastmcp_slim/fastmcp/server/sessions.py:190
↓ 3 callersMethod__init__
(self, *, enabled: bool = True)
tests/server/test_provider_extensions.py:96
↓ 3 callersFunction_accepted
The accepted form content for one answered elicitation.
tests/server/test_mrtr_guards_components.py:49
↓ 3 callersFunction_add_components
(mcp: FastMCP)
tests/contrib/test_component_manager.py:637
↓ 3 callersFunction_allof_members
Expand local schema references while collecting ``allOf`` members.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:230
↓ 3 callersFunction_answer
The accepted value for the question `_ask` poses.
tests/server/middleware/test_caching_guards.py:43
↓ 3 callersFunction_apply_snapshot_to_context
Populate the ambient request context a worker's tool body reads. A Docket worker has no live request or SDK auth context — especially a Redis
fastmcp_tasks/fastmcp_tasks/context.py:538
↓ 3 callersFunction_ask
( request: ElicitRequest, key: str, request_state: str | None )
tests/server/test_mrtr_guards_components.py:39
↓ 3 callersFunction_ask
The single-question ask every guard in this module returns.
tests/server/middleware/test_caching_guards.py:26
↓ 3 callersMethod_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:230
↓ 3 callersMethod_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:1311
↓ 3 callersMethod_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:887
↓ 3 callersFunction_by_status
(status: str)
examples/apps/approvals/approvals_server.py:129
↓ 3 callersMethod_cache_key_prefix
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:117
↓ 3 callersFunction_call_tool
( spec: dict[str, Any], arguments: dict[str, Any] )
tests/server/providers/openapi/test_undeclared_arguments.py:75
↓ 3 callersMethod_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:116
↓ 3 callersMethod_check_task_request
Run both gates every `tasks/*` method shares.
fastmcp_tasks/fastmcp_tasks/extension.py:192
↓ 3 callersFunction_claiming_server
An SDK MCPServer whose `claimed_tool` returns a claimed extension result.
tests/client/test_client_extensions.py:117
↓ 3 callersMethod_connect
Establish or reuse a session connection. This method implements the reentrant context manager pattern: - First call: Creates
fastmcp_slim/fastmcp/client/client.py:956
↓ 3 callersFunction_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:66
↓ 3 callersFunction_could_be_prefab
Cheaply reject ordinary values before importing Prefab UI.
fastmcp_slim/fastmcp/utilities/prefab.py:29
↓ 3 callersMethod_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:829
↓ 3 callersMethod_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:76
↓ 3 callersMethod_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:1270
↓ 3 callersFunction_elicit
A single-field form elicitation request keyed by ``key``.
tests/server/test_mrtr_guards_components.py:26
↓ 3 callersFunction_ensure_async
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:46
↓ 3 callersMethod_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:475
↓ 3 callersFunction_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:43
↓ 3 callersFunction_fail
( command: CommandName, category: ErrorCategory, message: str, *, json_output: bool, d
fastmcp_slim/fastmcp/cli/deploy/command.py:104
↓ 3 callersFunction_fail_for_expected_error
( command: CommandName, error: Exception, *, json_output: bool, )
fastmcp_slim/fastmcp/cli/deploy/command.py:122
↓ 3 callersFunction_format_call_result_text
Pretty-print a tool call result to the console.
fastmcp_slim/fastmcp/cli/client.py:420
↓ 3 callersMethod_format_message
Format a message for logging.
fastmcp_slim/fastmcp/server/middleware/logging.py:49
↓ 3 callersFunction_format_size
(size: int)
fastmcp_slim/fastmcp/apps/file_upload.py:83
↓ 3 callersFunction_forwardable_request_meta
Frontend request metadata that may cross onto the backend connection. This is the proxy's one sanctioned read of the inbound request's `_meta`:
fastmcp_slim/fastmcp/server/providers/proxy.py:174
↓ 3 callersMethod_forwarded
( self, server: FastMCP, tool: str = "status", mode: str = "auto" )
tests/server/providers/proxy/test_proxy_server.py:1394
↓ 3 callersFunction_get_arguments_str
Get a canonical string representation of the arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:627
↓ 3 callersMethod_get_client
(self)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:195
↓ 3 callersMethod_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:129
↓ 3 callersFunction_get_component_version_cache_key
Return a cache partition for the requested component version.
fastmcp_slim/fastmcp/server/middleware/caching.py:667
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:179
↓ 3 callersFunction_get_parent_trace_context
Get parent trace context from request meta for distributed tracing.
fastmcp_slim/fastmcp/server/telemetry.py:89
↓ 3 callersMethod_get_scope_key
Return the key used to partition file storage. Defaults to ``ctx.session_id``, which is stable for stdio, SSE, and stateful HTTP. The
fastmcp_slim/fastmcp/apps/file_upload.py:166
↓ 3 callersFunction_get_status
(server: ASGIServer, headers: dict[str, str])
tests/server/http/test_sse_host_origin_protection.py:46
↓ 3 callersMethod_get_token_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:126
↓ 3 callersMethod_get_token_expiry_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:132
↓ 3 callersMethod_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:467
↓ 3 callersMethod_get_unique_name
Ensure the name is unique by appending numbers if needed.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:233
← previousnext →801–900 of 13,374, ranked by callers