Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
↓ 4 callers
Function
_ctx_with_meta
(meta: dict[str, Any] | None)
tests/server/test_extensions.py:411
↓ 4 callers
Function
_current_leg_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:85
↓ 4 callers
Function
_deprecated
(name: str, replacement: str)
fastmcp_slim/fastmcp/utilities/skills.py:25
↓ 4 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:1394
↓ 4 callers
Function
_echo_server
()
tests/server/http/test_routable_headers.py:20
↓ 4 callers
Function
_elicit_request
(message: str)
tests/tasks/server/test_guard_reentrant.py:35
↓ 4 callers
Method
_ensure_discovered
Ensure skills are discovered, rediscovering if reload is enabled.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:174
↓ 4 callers
Function
_error
(response: httpx2.Response)
tests/server/providers/openapi/test_http_error_details_regression.py:9
↓ 4 callers
Function
_events_extension
(client: Client)
fastmcp_slim/fastmcp/experimental/events/subscription.py:419
↓ 4 callers
Function
_extract_csrf
Extract CSRF token from HTML form.
tests/server/auth/test_oauth_consent_page.py:110
↓ 4 callers
Function
_extract_result
Extract the list of names from a call_tool ToolResult.
tests/server/transforms/test_catalog.py:253
↓ 4 callers
Method
_extract_schema_as_dict
Resolves a schema and returns it as a dictionary.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:216
↓ 4 callers
Function
_file_uri
(path: str, file: str)
fastmcp_slim/fastmcp/skills/provider.py:490
↓ 4 callers
Function
_find_request
(request_id: str)
examples/apps/approvals/approvals_server.py:133
↓ 4 callers
Function
_format_size
(size: int)
fastmcp_slim/fastmcp/apps/file_upload.py:87
↓ 4 callers
Function
_front_client
(server: FastMCP, mode: str, elicit: bool)
tests/server/providers/proxy/test_relayed_capabilities.py:112
↓ 4 callers
Function
_get_cache_path
Get the path to the version cache file.
fastmcp_slim/fastmcp/utilities/version_check.py:21
↓ 4 callers
Method
_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:1101
↓ 4 callers
Method
_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:256
↓ 4 callers
Method
_get_highest_version_result
Get the highest version from successful non-None results. Used for versioned components where we want the highest version across all
fastmcp_slim/fastmcp/server/providers/aggregate.py:278
↓ 4 callers
Function
_get_prefab_types
Import and return Prefab's public app and component types on demand.
fastmcp_slim/fastmcp/utilities/prefab.py:18
↓ 4 callers
Method
_get_refresh_lock
Get or create a per-token refresh lock, evicting LRU entries when at capacity.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:960
↓ 4 callers
Method
_get_scopes_supported
Return the advertised scopes, discovering them lazily if enabled. The result of a successful discovery is cached for the provider's l
fastmcp_slim/fastmcp/server/auth/providers/descope.py:273
↓ 4 callers
Method
_get_token_expiry_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:133
↓ 4 callers
Method
_get_tool
( self, name: str, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/providers/proxy.py:1137
↓ 4 callers
Method
_handle_idp_callback
Handle callback from upstream IdP and forward to client. This implements the DCR-compliant callback forwarding: 1. Receive IdP callba
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2967
↓ 4 callers
Function
_hash_cache_key
Build a fixed-length SHA-256 cache key from request-derived input.
fastmcp_slim/fastmcp/server/middleware/caching.py:670
↓ 4 callers
Function
_highest_available_version
Look up each candidate version, highest first, until one is returned. Each version goes through `lookup`, the same path an explicit version r
fastmcp_slim/fastmcp/server/server.py:207
↓ 4 callers
Function
_image_content_to_anthropic_block
Convert MCP ImageContent to Anthropic ImageBlockParam.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:67
↓ 4 callers
Function
_is_prefab_tool
True if *tool* was marked as needing a Prefab renderer at registration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:34
↓ 4 callers
Method
_issue
(self, proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_single_use.py:141
↓ 4 callers
Method
_issue_access_token
Issue a FastMCP token backed by an upstream grant of `scope`.
tests/server/auth/providers/test_workos.py:446
↓ 4 callers
Method
_list_tools
List all tools from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:1112
↓ 4 callers
Function
_make_ctx
(request: Request | None)
tests/server/http/test_stale_access_token.py:25
↓ 4 callers
Method
_make_provider
(self, resource: str | None = None)
tests/server/auth/providers/test_propelauth.py:190
↓ 4 callers
Function
_make_read_resource_cache_key
Make a cache key for a resource read using version and URI.
fastmcp_slim/fastmcp/server/middleware/caching.py:722
↓ 4 callers
Method
_make_template
(self)
tests/resources/test_resource_template_query_params.py:271
↓ 4 callers
Method
_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/sse.py:107
↓ 4 callers
Function
_make_versioned_tool
Create a tool with a specific version for testing.
tests/server/transforms/test_catalog.py:23
↓ 4 callers
Function
_map_key
Redis hash mapping a leg's surfaced keys back to the tool's own keys.
fastmcp_tasks/fastmcp_tasks/input_store.py:112
↓ 4 callers
Function
_mock_github_success
Configure *mock_client* to return a successful GitHub user + scopes response.
tests/server/auth/providers/test_github.py:160
↓ 4 callers
Function
_mrtr_server
An SDK MCPServer whose `greet` tool elicits a name via a resolver. At 2026-07-28 the elicitation is delivered as an `InputRequiredResult`.
tests/client/client/test_input_required_driver.py:70
↓ 4 callers
Function
_next_poll_delay
Delay before the next poll, plus the backoff for the round after. With no status notifications on the modern protocol, polling is the only si
fastmcp_tasks/fastmcp_tasks/client.py:152
↓ 4 callers
Function
_normalize_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:120
↓ 4 callers
Function
_oauth_config
()
tests/client/transports/test_oauth_transport_reuse.py:28
↓ 4 callers
Function
_opted_in_call
Run a `tools/call` WITH the tasks opt-in bound (used to prove sync paths).
tests/tasks/server/test_server_tasks_parameter.py:23
↓ 4 callers
Function
_park_key
(mcp: FastMCP, task_id: str)
tests/tasks/server/test_guard_reentrant.py:74
↓ 4 callers
Method
_ping_loop
Send periodic pings until the connection ends.
fastmcp_slim/fastmcp/server/middleware/ping.py:89
↓ 4 callers
Function
_poll_ceiling
The upper bound for the poll backoff, in seconds. A server-advertised `pollIntervalMs` is a deliberate statement about how much load the serv
fastmcp_tasks/fastmcp_tasks/client.py:139
↓ 4 callers
Function
_raw_request
Send a bare JSON-RPC request through the dispatcher, bypassing the typed `send_request` that normally stamps the outgoing envelope. The moder
tests/server/middleware/test_message_visibility.py:69
↓ 4 callers
Function
_recall_snapshot
Return the snapshot bound for ``task_id`` in the current context. Returns ``None`` if nothing is bound, or if the bound entry belongs to a di
fastmcp_tasks/fastmcp_tasks/context.py:281
↓ 4 callers
Function
_recording_extension
(identifier: str, log: list[str])
tests/server/test_extensions.py:335
↓ 4 callers
Function
_redact_headers
(headers: httpx2.Headers)
fastmcp_slim/fastmcp/server/providers/openapi/components.py:54
↓ 4 callers
Method
_register
(self, oauth_proxy, payload: dict)
tests/server/auth/oauth_proxy/test_client_registration.py:445
↓ 4 callers
Method
_remove_component
Remove a component from unified storage. Args: key: The prefixed key of the component. Raises: KeyError: If
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:203
↓ 4 callers
Function
_requests_key
Redis hash of a leg's outstanding input requests, keyed by surfaced key. Scoped by leg number so a re-entered leg's fresh requests never collide
fastmcp_tasks/fastmcp_tasks/input_store.py:101
↓ 4 callers
Function
_resolve_allowed_hosts_for_run
( *, host: str, host_origin_protection: HostOriginProtection, allowed_hosts: list[str] | None,
fastmcp_slim/fastmcp/server/mixins/transport.py:51
↓ 4 callers
Method
_respond
(self, messages: list[Any])
tests/downstream/smoke_agno.py:44
↓ 4 callers
Function
_response
(document: dict[str, object])
tests/server/auth/test_oidc_discovery_cache.py:30
↓ 4 callers
Function
_restrict_access
(path: Path, *, directory: bool = False)
fastmcp_slim/fastmcp/cli/deploy/state.py:78
↓ 4 callers
Function
_return_visit
Visit the consent page the way a client-initiated navigation does.
tests/server/auth/test_oauth_consent_remembered_key.py:110
↓ 4 callers
Method
_revoke_internal
Internal helper to remove tokens and their associations.
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:318
↓ 4 callers
Method
_run_middleware
Builds and executes the middleware chain for a single dispatch phase. ``phase`` selects whether a pass runs only the method-agnostic hooks
fastmcp_slim/fastmcp/server/server.py:767
↓ 4 callers
Function
_sample
Issue a handshake-era `sampling/createMessage` request from a server. `Context` has no `sample()` — server-initiated sampling is not part of
tests/client/test_sampling.py:13
↓ 4 callers
Method
_save_raw
Write the session's full dict back under its single key (no TTL).
fastmcp_slim/fastmcp/server/sessions.py:223
↓ 4 callers
Method
_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:134
↓ 4 callers
Function
_send_get
Send `tasks/get` and parse the detailed task response.
fastmcp_tasks/fastmcp_tasks/client.py:84
↓ 4 callers
Function
_server
A server whose only tool is task-enabled and renamed by a transform.
tests/tasks/server/test_task_transformed_tools.py:28
↓ 4 callers
Function
_server
(middleware: Middleware)
tests/server/middleware/test_logging_methods_filter.py:31
↓ 4 callers
Method
_server_spans
(exporter: InMemorySpanExporter)
tests/server/telemetry/test_provider_tracing.py:193
↓ 4 callers
Function
_serving_client_tool_call
()
fastmcp_slim/fastmcp/server/dependencies.py:263
↓ 4 callers
Method
_set_consent_binding_cookie
Set an independently signed cookie for one consent transaction. This cookie binds the browser that approved consent to the IdP callback,
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:375
↓ 4 callers
Method
_should_retry
Determine if an error should trigger a retry. Checks both the error itself and its ``__cause__``, since FastMCP wraps tool exceptions
fastmcp_slim/fastmcp/server/middleware/error_handling.py:190
↓ 4 callers
Function
_shown_twin
Return a shown component with the same identity as a hidden one. Providers answer a lookup with one component per identity before the server
fastmcp_slim/fastmcp/server/server.py:233
↓ 4 callers
Method
_skills_unavailable_reason
Why this connection can't send Skills requests, or None if it can.
fastmcp_slim/fastmcp/client/mixins/skills.py:50
↓ 4 callers
Function
_snapshot_redis_key
The Redis key holding a task's context snapshot.
fastmcp_tasks/fastmcp_tasks/context.py:137
↓ 4 callers
Function
_start_flow
Register the client (idempotent) and start a flow; returns the txn_id.
tests/server/auth/test_oauth_consent_remembered_key.py:64
↓ 4 callers
Function
_store_proxy_access_token
( proxy: OAuthProxy, *, upstream_scope: str, )
tests/server/auth/providers/test_github_transient_failures.py:44
↓ 4 callers
Function
_strict_input_validation
The ``strict`` value to pass to pydantic for the running server. Reads ``strict_input_validation`` off the active request's ``FastMCP`` insta
fastmcp_slim/fastmcp/tools/function_tool.py:147
↓ 4 callers
Method
_string_key
Derive a stable store key from every `CacheKey` field. `CacheKey` is `(method, params_key, partition)`, where the coordinator has alr
fastmcp_slim/fastmcp/client/caching.py:142
↓ 4 callers
Function
_suppress_user_scanners
Suppress all scanners that read real user config files.
tests/cli/test_discovery.py:691
↓ 4 callers
Function
_task_not_found
The single "not found" error for missing, expired, or cross-scope ids. Uses one message for all three so a caller cannot probe another scope's ta
fastmcp_tasks/fastmcp_tasks/handlers.py:85
↓ 4 callers
Method
_template
(self, skill_dir: Path)
tests/server/providers/test_skills_provider.py:1064
↓ 4 callers
Method
_tool
(self, version: str | None)
tests/server/versioning/test_versioning.py:431
↓ 4 callers
Function
_upstream
( handler: Callable[[httpx2.Request], httpx2.Response], )
tests/server/providers/openapi/test_transport_errors.py:28
↓ 4 callers
Method
_upstream_oauth_client
(self)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:953
↓ 4 callers
Method
_uses_alternate_verification
Return True when id_token verification is enabled. This ensures ``load_access_token`` always patches the validated result with upstre
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:567
↓ 4 callers
Function
_validate
(def_name: str, instance: dict[str, Any])
tests/tasks/server/test_wire_models.py:47
↓ 4 callers
Method
_validate_provider_extensions
Require a provider's bundles in every active runtime using this aggregate.
fastmcp_slim/fastmcp/server/providers/aggregate.py:181
↓ 4 callers
Method
_validate_response
( response: httpx2.Response, model: type[ResponseModelT], )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:222
↓ 4 callers
Method
_verify_consent_binding_cookie
Verify the consent binding for a specific transaction.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:411
↓ 4 callers
Function
_version_request_meta
( version: VersionSpec | None, )
fastmcp_slim/fastmcp/server/server.py:164
↓ 4 callers
Method
add
(self, kind, owner, data, version, tags)
tests/pbt/test_components_machine.py:285
↓ 4 callers
Function
add_component_to_docket
Schedule a component for background execution via Docket. Handles each component type's calling convention: - ``FunctionTool``: splats the a
fastmcp_tasks/fastmcp_tasks/components.py:99
↓ 4 callers
Method
add_prompts
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:181
↓ 4 callers
Function
add_query_params
Append query parameters to a URL while preserving existing parameters. The existing query string is appended to verbatim rather than decoded
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:42
↓ 4 callers
Function
alias_pointer_schema
`#/$defs/Alias/properties/value` passes through `Alias`, a reference to `Actual`.
tests/utilities/test_json_schema_expansion.py:137
↓ 4 callers
Function
authorization
(*, expires_in: int = 600, interval: int = 5)
tests/cli/deploy/test_authentication.py:28
↓ 4 callers
Function
build_provider
Build a plain OAuth provider mounted at BASE_URL, optionally with a distinct issuer.
tests/server/auth/test_issuer_url_identity.py:77
↓ 4 callers
Function
build_proxy
( target: ClientTransport | Client, ignore_tools: Sequence[str] )
fastmcp_remote/fastmcp_remote/cli.py:267
← previous
next →
901–1,000 of 16,725, ranked by callers