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
_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:710
↓ 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
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:901
↓ 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:561
↓ 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:171
↓ 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:156
↓ 4 callers
Method
add
Add two numbers.
tests/tools/tool/test_tool.py:24
↓ 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
↓ 4 callers
Method
call_tool
Call a tool by name with the given arguments. Use this to execute tools discovered via search_tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:364
↓ 4 callers
Method
call_tool_bulk
Call a single tool registered on this MCP server multiple times with a single request. Each call can include different arguments. Us
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:113
↓ 4 callers
Method
callback_handler
Handle OAuth callback and return the authorization code result.
fastmcp_slim/fastmcp/client/auth/oauth.py:458
↓ 4 callers
Method
clear_if_matches
Clear a key only while its Horizon origin and value are active.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:100
↓ 4 callers
Method
client_factory
(**kwargs: Any)
tests/cli/test_apps_dev_server.py:638
↓ 4 callers
Method
client_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` capability the client declared, read from
fastmcp_slim/fastmcp/server/context.py:678
↓ 4 callers
Function
coerce_task_arguments
Validate and coerce task arguments before any task state is created. Called by ``submit_to_docket`` up front, so invalid inputs raise before the
fastmcp_tasks/fastmcp_tasks/components.py:151
↓ 4 callers
Function
compare_versions
Compare two version strings. Args: a: First version string (or None). b: Second version string (or None). Returns: -
fastmcp_slim/fastmcp/utilities/versions.py:237
↓ 4 callers
Method
connect_session
( self, *, transport_options: TransportOptions | None = None, **session_kwargs
fastmcp_slim/fastmcp/client/transports/config.py:130
↓ 4 callers
Method
copy
(self, **kwargs: Any)
fastmcp_slim/fastmcp/server/middleware/middleware.py:109
↓ 4 callers
Method
create_device_authorization
( self, metadata: DeviceMetadata | None = None, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:242
↓ 4 callers
Function
create_elicitation_callback
( elicitation_handler: ElicitationHandler, )
fastmcp_slim/fastmcp/client/elicitation.py:53
↓ 4 callers
Function
create_error_html
Create a styled HTML error page for OAuth errors. Args: error_title: The error title (e.g., "OAuth Error", "Authorization Failed")
fastmcp_slim/fastmcp/server/auth/oauth_proxy/ui.py:216
↓ 4 callers
Function
create_function_without_params
Create a new function with the same code but without the specified parameters in annotations. This is used to exclude parameters from type a
fastmcp_slim/fastmcp/utilities/types.py:190
↓ 4 callers
Function
create_log_callback
(handler: LogHandler | None = None)
fastmcp_slim/fastmcp/client/logging.py:47
↓ 4 callers
Function
create_logo
Create logo HTML. Args: icon_url: Optional custom icon URL. If not provided, uses the FastMCP logo. alt_text: Alt text for the lo
fastmcp_slim/fastmcp/utilities/ui.py:501
↓ 4 callers
Function
create_mcp_config_server
Create a FastMCP server from a MCPConfig.
fastmcp_slim/fastmcp/cli/run.py:115
↓ 4 callers
Function
create_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_end_to_end_compatibility.py:13
↓ 4 callers
Function
create_secure_html_response
Create an HTMLResponse with security headers. Adds X-Frame-Options: DENY to prevent clickjacking attacks per MCP security best practices.
fastmcp_slim/fastmcp/utilities/ui.py:609
↓ 4 callers
Function
dayLabel
(day)
status-site/app.js:42
↓ 4 callers
Method
delete
(self, key: CacheKey)
fastmcp_slim/fastmcp/client/caching.py:186
↓ 4 callers
Function
discover_servers
Run all scanners and return the combined results. Duplicate names across sources are preserved — callers can use :pyattr:`DiscoveredServer.qu
fastmcp_slim/fastmcp/cli/discovery.py:360
↓ 4 callers
Function
emit_identity
Show the authenticated user.
fastmcp_slim/fastmcp/cli/deploy/output.py:148
↓ 4 callers
Method
exchange_authorization_code
Exchange authorization code for FastMCP-issued tokens. Implements the token factory pattern: 1. Retrieves upstream tokens from stored
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1350
↓ 4 callers
Method
exchange_device_authorization
( self, device_code: str, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:262
↓ 4 callers
Function
fetch
(path, **kwargs)
tests/test_public_triage.py:203
↓ 4 callers
Function
fetch_prs
(numbers: list[int])
scripts/release_contributor_credit.py:60
↓ 4 callers
Method
format
(self, record: logging.LogRecord)
tests/server/test_logging.py:12
↓ 4 callers
Function
format_info
Format server information according to the specified format. Args: mcp: The FastMCP instance format: Output format ("fastmcp" or
fastmcp_slim/fastmcp/utilities/inspect.py:503
↓ 4 callers
Function
format_ip_for_url
Format IP address for use in URL (bracket IPv6 addresses). IPv6 addresses must be bracketed in URLs to distinguish the address from the port
fastmcp_slim/fastmcp/server/auth/ssrf.py:58
↓ 4 callers
Function
getAmplitude
()
docs/fastmcp-analytics.js:42
↓ 4 callers
Method
get_current_user
(self)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:287
↓ 4 callers
Function
get_latest_version
Get the latest version of FastMCP from PyPI, using cache when available. Args: include_prereleases: If True, include pre-release versions
fastmcp_slim/fastmcp/utilities/version_check.py:106
↓ 4 callers
Method
get_resource
Get resource by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastM
fastmcp_slim/fastmcp/server/providers/base.py:346
↓ 4 callers
Method
get_span_attributes
(self)
fastmcp_slim/fastmcp/tools/base.py:629
↓ 4 callers
Method
get_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:438
↓ 4 callers
Function
guard_client
A client that answers each round automatically.
tests/server/middleware/test_caching_guards.py:82
↓ 4 callers
Method
intersect
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 callers
Function
isPrefectDestination
(url)
docs/fastmcp-analytics.js:115
↓ 4 callers
Function
is_url
Check if a string is a URL.
fastmcp_slim/fastmcp/cli/run.py:84
↓ 4 callers
Function
issue_token
( proxy: OAuthProxy, jwt_verifier )
tests/server/auth/oauth_proxy/test_revocation.py:80
↓ 4 callers
Method
items
(page: int = 1, size: int = 10)
tests/resources/test_resource_template_level3.py:65
↓ 4 callers
Function
link
(text, url)
status-site/operations.js:16
↓ 4 callers
Method
list_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 callers
Method
list_resources
Retrieve all resources available on the server. This method automatically fetches all pages if the server paginates results, returnin
fastmcp_slim/fastmcp/client/mixins/resources.py:73
↓ 4 callers
Method
list_skills_mcp
Send one `skills/list` request and return its protocol result. Args: cursor: Optional pagination cursor from a previous result.
fastmcp_slim/fastmcp/client/mixins/skills.py:78
↓ 4 callers
Method
list_tools
Apply transforms to matching tools.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:64
↓ 4 callers
Function
nested_items_schema
(title: str)
tests/utilities/json_schema_type/test_generated_classes.py:34
↓ 4 callers
Function
normalize_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 callers
Function
number
(n)
status-site/app.js:34
↓ 4 callers
Method
on_request
Implement retry logic for requests.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:209
↓ 4 callers
Function
parseUrl
(href)
docs/fastmcp-analytics.js:107
↓ 4 callers
Function
parse_elicit_response_type
Parse response_type into schema and handling configuration. A response type is required; ``None`` raises ``TypeError``. Supports multiple syn
fastmcp_slim/fastmcp/server/elicitation.py:168
↓ 4 callers
Function
parse_hashed_resource_uri
Extract the hash from a Prefab renderer URI, or None.
fastmcp_slim/fastmcp/server/providers/addressing.py:98
↓ 4 callers
Function
parse_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 callers
Function
poll_device_authorization
Poll at the server interval until the device request completes.
fastmcp_slim/fastmcp/cli/deploy/authentication.py:32
↓ 4 callers
Method
read
()
tests/client/test_result_hydration.py:176
↓ 4 callers
Function
read_outstanding_inputs
Return a leg's outstanding input requests, keyed by surfaced key. Empty when the leg is not waiting on input. Consumed by ``tasks/get`` to bu
fastmcp_tasks/fastmcp_tasks/input_store.py:282
↓ 4 callers
Method
read_resource
Read the contents of a resource or resolved template. Args: uri (AnyUrl | str): The URI of the resource to read. Can be a string
fastmcp_slim/fastmcp/client/mixins/resources.py:278
↓ 4 callers
Method
read_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:143
← previous
next →
901–1,000 of 15,974, ranked by callers