MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

↓ 4 callersFunction_get_tool_hash
Read the stored hash from tool meta, or compute from app name + tool name.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:47
↓ 4 callersMethod_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:2643
↓ 4 callersFunction_hash_cache_key
Build a fixed-length SHA-256 cache key from request-derived input.
fastmcp_slim/fastmcp/server/middleware/caching.py:646
↓ 4 callersMethod_list_tools
List all tools from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:921
↓ 4 callersFunction_make_add_server
()
tests/test_mcp_config.py:639
↓ 4 callersFunction_make_ctx
(request: Request | None)
tests/server/http/test_stale_access_token.py:25
↓ 4 callersMethod_make_provider
(self, resource: str | None = None)
tests/server/auth/providers/test_propelauth.py:190
↓ 4 callersFunction_make_read_resource_cache_key
Make a cache key for a resource read using version and URI.
fastmcp_slim/fastmcp/server/middleware/caching.py:696
↓ 4 callersMethod_make_template
(self)
tests/resources/test_resource_template_query_params.py:269
↓ 4 callersMethod_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/sse.py:106
↓ 4 callersFunction_make_versioned_tool
Create a tool with a specific version for testing.
tests/server/transforms/test_catalog.py:23
↓ 4 callersFunction_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 callersFunction_methods_server
()
tests/tasks/server/test_task_methods.py:31
↓ 4 callersFunction_mock_github_success
Configure *mock_client* to return a successful GitHub user + scopes response.
tests/server/auth/providers/test_github.py:159
↓ 4 callersFunction_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 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_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 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:281
↓ 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:45
↓ 4 callersMethod_register
(self, oauth_proxy, payload: dict)
tests/server/auth/oauth_proxy/test_client_registration.py:445
↓ 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:52
↓ 4 callersFunction_response
(document: dict[str, object])
tests/server/auth/test_oidc_discovery_cache.py:30
↓ 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 callersFunction_restrict_access
(path: Path, *, directory: bool = False)
fastmcp_slim/fastmcp/cli/deploy/state.py:77
↓ 4 callersMethod_revoke_internal
Internal helper to remove tokens and their associations.
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:318
↓ 4 callersMethod_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:584
↓ 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:260
↓ 4 callersFunction_serving_client_tool_call
()
fastmcp_slim/fastmcp/server/dependencies.py:261
↓ 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 callersMethod_sign_cookie
Sign a cookie payload with HMAC-SHA256. Returns: base64(payload).base64(signature)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:127
↓ 4 callersFunction_snapshot_redis_key
The Redis key holding a task's context snapshot.
fastmcp_tasks/fastmcp_tasks/context.py:137
↓ 4 callersFunction_spec
(path: str, method: str, operation: dict[str, Any])
tests/server/providers/openapi/test_undeclared_arguments.py:46
↓ 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:563
↓ 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:950
↓ 4 callersMethod_tool
(self, version: str | None)
tests/server/versioning/test_versioning.py:431
↓ 4 callersFunction_tool_auth_allows
Whether the tool's own `auth` check admits the current request.
fastmcp_slim/fastmcp/server/server.py:237
↓ 4 callersMethod_upstream_oauth_client
(self)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:849
↓ 4 callersFunction_validate
(def_name: str, instance: dict[str, Any])
tests/tasks/server/test_wire_models.py:47
↓ 4 callersMethod_validate_provider_extensions
Require a provider's bundles in every active runtime using this aggregate.
fastmcp_slim/fastmcp/server/providers/aggregate.py:169
↓ 4 callersMethod_validate_response
( response: httpx2.Response, model: type[ResponseModelT], )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:222
↓ 4 callersMethod_verify_cookie
Verify and extract payload from signed cookie. Returns: payload if signature valid, None otherwise
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:137
↓ 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:181
↓ 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 callersFunctionalias_pointer_schema
`#/$defs/Alias/properties/value` passes through `Alias`, a reference to `Actual`.
tests/utilities/test_json_schema_expansion.py:101
↓ 4 callersFunctionauthorization
(*, expires_in: int = 600, interval: int = 5)
tests/cli/deploy/test_authentication.py:28
↓ 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 callersFunctionbuild_proxy
(client: Client, ignore_tools: Sequence[str])
fastmcp_remote/fastmcp_remote/cli.py:263
↓ 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:364
↓ 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 callersFunctioncallback
()
tests/experimental/transforms/test_monty_callback_lifecycle.py:99
↓ 4 callersMethodcallback_handler
Handle OAuth callback and return the authorization code result.
fastmcp_slim/fastmcp/client/auth/oauth.py:402
↓ 4 callersMethodclear_if_matches
Clear a key only while its Horizon origin and value are active.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:100
↓ 4 callersMethodclient_factory
(**kwargs: Any)
tests/cli/test_apps_dev_server.py:574
↓ 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:658
↓ 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 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:130
↓ 4 callersMethodcopy
(self, **kwargs: Any)
fastmcp_slim/fastmcp/server/middleware/middleware.py:109
↓ 4 callersMethodcreate_device_authorization
( self, metadata: DeviceMetadata | None = None, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:242
↓ 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:216
↓ 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:211
↓ 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_mcp_config_server
Create a FastMCP server from a MCPConfig.
fastmcp_slim/fastmcp/cli/run.py:115
↓ 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:409
↓ 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:323
↓ 4 callersFunctionemit_identity
Show the authenticated user.
fastmcp_slim/fastmcp/cli/deploy/output.py:148
↓ 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:1297
↓ 4 callersMethodexchange_device_authorization
( self, device_code: str, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:262
↓ 4 callersFunctionfetch_prs
(numbers: list[int])
scripts/release_contributor_credit.py:60
↓ 4 callersMethodfilter
(self, record: logging.LogRecord)
fastmcp_slim/fastmcp/utilities/logging.py:212
↓ 4 callersMethodformat
(self, record: logging.LogRecord)
tests/server/test_logging.py:12
↓ 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:503
↓ 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:59
↓ 4 callersFunctiongc_collect_harder
()
tests/client/test_stdio.py:29
↓ 4 callersFunctiongetAmplitude
()
docs/fastmcp-analytics.js:42
↓ 4 callersMethodget_client_info
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:178
↓ 4 callersMethodget_current_user
(self)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:287
↓ 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:106
↓ 4 callersMethodget_notifications
Get all recorded notifications, optionally filtered by method.
tests/server/test_session_visibility.py:37
↓ 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:344
↓ 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:384
↓ 4 callersMethodget_span_attributes
(self)
fastmcp_slim/fastmcp/tools/base.py:489
← previousnext →701–800 of 13,374, ranked by callers