MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions11,669 in github.com/PrefectHQ/fastmcp

↓ 4 callersFunction_normalize_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:116
↓ 4 callersFunction_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 callersFunction_park_key
(mcp: FastMCP, task_id: str)
tests/tasks/server/test_guard_reentrant.py:74
↓ 4 callersFunction_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 callersFunction_read_cache
Read cached version info. Returns: Tuple of (cached_version, cache_timestamp) or (None, 0) if no cache.
fastmcp_slim/fastmcp/utilities/version_check.py:29
↓ 4 callersFunction_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:251
↓ 4 callersFunction_recording_extension
(identifier: str, log: list[str])
tests/server/test_extensions.py:335
↓ 4 callersFunction_redact_headers
(headers: httpx2.Headers)
fastmcp_slim/fastmcp/server/providers/openapi/components.py:49
↓ 4 callersMethod_register
(self, oauth_proxy, payload: dict)
tests/server/auth/oauth_proxy/test_client_registration.py:372
↓ 4 callersMethod_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 callersFunction_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 callersFunction_resolve_allowed_hosts_for_run
( *, host: str, host_origin_protection: HostOriginProtection, allowed_hosts: list[str] | None,
fastmcp_slim/fastmcp/server/mixins/transport.py:53
↓ 4 callersFunction_response_to_create_message_result
Convert Google GenAI response to CreateMessageResult (no tools).
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:322
↓ 4 callersMethod_revoke_internal
Internal helper to remove tokens and their associations.
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:318
↓ 4 callersFunction_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 callersMethod_save_raw
Write the session's full dict back under its single key (no TTL).
fastmcp_slim/fastmcp/server/sessions.py:223
↓ 4 callersFunction_scan_goose
Scan Goose config for MCP server extensions. Goose uses YAML (``~/.config/goose/config.yaml``) with a different schema — MCP servers are defi
fastmcp_slim/fastmcp/cli/discovery.py:251
↓ 4 callersFunction_schema_type
(schema: Any)
fastmcp_slim/fastmcp/server/transforms/search/base.py:92
↓ 4 callersMethod_session_with_capabilities
( capabilities: ClientCapabilities | None, )
tests/test_apps.py:454
↓ 4 callersMethod_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:172
↓ 4 callersFunction_stash_proxy_request_context
Stash the proxy's ``RequestContext`` on a ``ProxyClient`` before a backend call. Every proxy component (tool, resource, template, prompt) must ca
fastmcp_slim/fastmcp/server/providers/proxy.py:165
↓ 4 callersMethod_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:138
↓ 4 callersFunction_suppress_user_scanners
Suppress all scanners that read real user config files.
tests/cli/test_discovery.py:539
↓ 4 callersFunction_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:84
↓ 4 callersMethod_template
(self, skill_dir: Path)
tests/server/providers/test_skills_provider.py:806
↓ 4 callersFunction_ttl_server
()
tests/tasks/server/test_task_ttl.py:25
↓ 4 callersFunction_unwrap_type_alias
Resolve a PEP 695 ``type X = ...`` alias to its underlying value. ``get_origin()`` returns ``None`` for a ``TypeAliasType``, so an alias that
fastmcp_slim/fastmcp/tools/function_parsing.py:59
↓ 4 callersMethod_upstream_oauth_client
(self)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:826
↓ 4 callersFunction_validate
(def_name: str, instance: dict[str, Any])
tests/tasks/server/test_wire_models.py:47
↓ 4 callersFunctionadd_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:91
↓ 4 callersMethodadd_exception
( self, exception: BaseException, *, url: str | re.Pattern[str] | httpx2.URL |
tests/utilities/httpx2_mock.py:127
↓ 4 callersMethodadd_prompts
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:173
↓ 4 callersFunctionadd_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:23
↓ 4 callersFunctionbuild_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 callersMethodcall_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:229
↓ 4 callersMethodcall_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:93
↓ 4 callersMethodcallback_handler
Handle OAuth callback and return the authorization code result.
fastmcp_slim/fastmcp/client/auth/oauth.py:402
↓ 4 callersFunctioncancel_task
Call the `tasks/cancel` handler within the given auth scope.
tests/tasks/task_helpers.py:163
↓ 4 callersMethodclear
Clear all cached clients and force disconnect them.
fastmcp_slim/fastmcp/server/providers/proxy.py:1647
↓ 4 callersMethodclient_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` extra field on ``ClientCapabilities``
fastmcp_slim/fastmcp/server/context.py:659
↓ 4 callersFunctioncoerce_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:143
↓ 4 callersMethodcollect
Collect a schema by name and recurse into its dependencies.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:567
↓ 4 callersFunctioncompare_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 callersMethodconnect_session
( self, *, transport_options: TransportOptions | None = None, **session_kwargs
fastmcp_slim/fastmcp/client/transports/config.py:129
↓ 4 callersFunctioncreate_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:215
↓ 4 callersFunctioncreate_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:186
↓ 4 callersFunctioncreate_log_callback
(handler: LogHandler | None = None)
fastmcp_slim/fastmcp/client/logging.py:47
↓ 4 callersFunctioncreate_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 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_end_to_end_compatibility.py:11
↓ 4 callersFunctioncreate_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 callersMethoddelete
(self, key: CacheKey)
fastmcp_slim/fastmcp/client/caching.py:182
↓ 4 callersFunctiondiscover_and_import
Discover files, import modules, and extract components. This is the main entry point for filesystem-based discovery. Args: root: Roo
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:404
↓ 4 callersFunctiondiscover_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:314
↓ 4 callersMethodend
Invalidate the session — delete its one key and all of its state. After this the id no longer resolves through `get_session`. This is
fastmcp_slim/fastmcp/server/sessions.py:294
↓ 4 callersMethodexchange_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:1280
↓ 4 callersFunctionformat_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:502
↓ 4 callersFunctionformat_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:55
↓ 4 callersMethodfrom_dict
(cls, data: dict[str, str])
fastmcp_slim/fastmcp/client/oauth_callback.py:92
↓ 4 callersFunctiongetAmplitude
()
docs/fastmcp-analytics.js:42
↓ 4 callersMethodget_client_info
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:178
↓ 4 callersFunctionget_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:98
↓ 4 callersMethodget_notifications
Get all recorded notifications, optionally filtered by method.
tests/server/test_session_visibility.py:37
↓ 4 callersMethodget_oidc_configuration
Gets the OIDC configuration for the specified configuration URL. Args: config_url: The OIDC configuration URL strict:
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:506
↓ 4 callersMethodget_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:248
↓ 4 callersMethodget_resource
(uri: str, version=None)
tests/server/providers/test_transforming_provider.py:189
↓ 4 callersMethodget_resource_template
Get resource template by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server
fastmcp_slim/fastmcp/server/providers/base.py:288
↓ 4 callersMethodget_span_attributes
(self)
fastmcp_slim/fastmcp/tools/base.py:471
↓ 4 callersMethodget_tokens
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:144
↓ 4 callersMethodget_tool
Get tool by transformed name with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMCP)
fastmcp_slim/fastmcp/server/providers/base.py:158
↓ 4 callersMethodget_tool
(name: str, version=None)
tests/server/providers/test_local_provider.py:633
↓ 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:258
↓ 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:76
↓ 4 callersFunctionis_url
Check if a string is a URL.
fastmcp_slim/fastmcp/cli/run.py:84
↓ 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:2127
↓ 4 callersFunctionload_and_merge_config
Load config from server_spec and apply CLI overrides. This consolidates the config parsing logic that was duplicated across run, inspect, and
fastmcp_slim/fastmcp/utilities/cli.py:33
↓ 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 callersMethodon_request
Apply rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:158
↓ 4 callersMethodparse
Parse the OpenAPI schema into HTTP routes.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:691
↓ 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:70
↓ 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_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:1273
↓ 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 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:143
↓ 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:395
↓ 4 callersFunctionshould_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
← previousnext →601–700 of 11,669, ranked by callers