MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

↓ 2 callersMethod_matches_tool_cache_settings
Check if the tool matches the cache settings for tool calls.
fastmcp_slim/fastmcp/server/middleware/caching.py:626
↓ 2 callersMethod_materialize_generator
Consume generators/async generators into lists. Without this, async generators pass through as objects (repr string), and sync genera
fastmcp_slim/fastmcp/tools/function_tool.py:558
↓ 2 callersFunction_materialize_sync_generator
Consume a sync generator into a list, passing any other value through. A generator body runs during iteration, not creation, so this must be
fastmcp_slim/fastmcp/tools/function_tool.py:72
↓ 2 callersFunction_merge_forwardable_http_headers
Combine forwardable ambient headers with a transport's configured headers. Configured headers take precedence. Header names are case-insensitive,
fastmcp_slim/fastmcp/client/dependencies.py:6
↓ 2 callersMethod_merge_schema_with_precedence
Merge two schemas, with the override schema taking precedence. Args: base_schema: Base schema to start with override_
fastmcp_slim/fastmcp/tools/tool_transform.py:1038
↓ 2 callersFunction_methods
(provider: ProxyProvider, client: MagicMock, kind: str)
tests/server/providers/proxy/test_cache_refresh_races.py:35
↓ 2 callersFunction_modern_proxy
A proxy whose backend client negotiates the modern era, so the backend can emit an `InputRequiredResult` for the proxy to round-trip.
tests/server/test_mrtr_guards_components.py:57
↓ 2 callersFunction_multi_round_server
()
tests/client/client/test_input_required_driver.py:60
↓ 2 callersMethod_mutate
(self, result: ResultT)
tests/server/providers/proxy/test_server_metadata.py:407
↓ 2 callersMethod_negotiate
Run the connect-time protocol negotiation dictated by ``self.mode``. - ``"legacy"``: today's initialize handshake (populates ``initialize_res
fastmcp_slim/fastmcp/client/client.py:875
↓ 2 callersFunction_nested_class_name
Disambiguate a nested class named like the conversion root. Pydantic resolves a class's annotations with the class's own name bound to that c
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1303
↓ 2 callersFunction_normalize
(skills: SkillCatalog)
fastmcp_slim/fastmcp/skills/provider.py:437
↓ 2 callersFunction_normalize_domain
Strip any URL scheme and trailing slashes from a Clerk instance domain. The Clerk dashboard shows the Frontend API URL with its scheme, so users
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:48
↓ 2 callersFunction_normalize_redirect_uri
Return the canonical string form shared by both input types. A plain string never goes through a URL parser, so attacker-controlled spellings
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:351
↓ 2 callersFunction_normalize_scopes
Normalize scopes to a space-separated string (or None).
fastmcp_slim/fastmcp/client/auth/client_credentials.py:57
↓ 2 callersFunction_normalize_yaml_types
Convert YAML-parsed types back to JSON-native types. ``yaml.safe_load`` converts ISO date-time strings to ``datetime``/``date`` objects. The
fastmcp_slim/fastmcp/utilities/json_schema_type.py:130
↓ 2 callersMethod_on_call_tool
Handle MCP 'tools/call' requests. A guard tool (SEP-2322 multi-round-trip) requests client input by returning an ``InputRequiredResul
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:284
↓ 2 callersFunction_once_per_request
( provider: Provider, name: str, load: Callable[[], Awaitable[_T]] )
fastmcp_slim/fastmcp/skills/provider.py:472
↓ 2 callersMethod_paginate_list
Generic pagination helper for list operations. Invokes a FastMCP ``_on_*`` list handler (``(ctx, params) -> result``) page by page. T
fastmcp_slim/fastmcp/server/context.py:529
↓ 2 callersMethod_params
(message: str, field: dict[str, Any], name: str = "answer")
tests/cli/test_client_commands.py:1050
↓ 2 callersMethod_parent_with_failing_list
(self)
tests/server/mount/test_mount.py:348
↓ 2 callersMethod_parse_call_tool_result
Parse an mcp_types.CallToolResult into our CallToolResult dataclass. Args: name: Tool name (for schema lookup) result
fastmcp_slim/fastmcp/client/mixins/tools.py:274
↓ 2 callersMethod_path
(self, key: Sequence[str])
scripts/rank_issues.py:379
↓ 2 callersFunction_play_youtube_video
(fire_tv: FireTVClient, video_id: str)
examples/smart_home/src/smart_home/fire_tv/server.py:26
↓ 2 callersFunction_post_status
( server: ASGIServer, message_url: str, headers: dict[str, str], )
tests/server/http/test_sse_host_origin_protection.py:76
↓ 2 callersFunction_pre_4_2_payload
A payload as fastmcp 4.0-4.1 backends serialize it.
tests/server/providers/test_prefab_payload.py:9
↓ 2 callersFunction_prefab_to_json
Serialize a PrefabApp, addressing its peer-tool references by identity. The resolver writes each reference as ``__<hash>_<local_name>``, and the
fastmcp_slim/fastmcp/tools/base.py:678
↓ 2 callersFunction_prepare_directory
(path: Path)
fastmcp_slim/fastmcp/cli/deploy/state.py:88
↓ 2 callersFunction_prepare_parameter_map
Return the route's parameter map, building it if the route lacks one. Routes from the OpenAPI parser carry a precomputed map. Routes constructed
fastmcp_slim/fastmcp/utilities/openapi/director.py:250
↓ 2 callersMethod_prepare_scopes_for_upstream_refresh
Prepare scopes for upstream token refresh request. Override this method to transform scopes before sending to upstream provider. For
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1753
↓ 2 callersMethod_prepare_transports
Create backend transports before connecting so capabilities are inspectable.
fastmcp_slim/fastmcp/client/transports/config.py:294
↓ 2 callersFunction_principal_segment
A fixed-length, delimiter-safe key segment for a principal. Hashing keeps an arbitrary principal string from injecting the `:` key delimiter
fastmcp_slim/fastmcp/server/sessions.py:152
↓ 2 callersFunction_propagation_only_span
Attach the incoming `_meta` trace context without creating a span. This is what separates `propagation_only` from `off`. Both create no FastM
fastmcp_slim/fastmcp/server/telemetry.py:122
↓ 2 callersFunction_proxy
( backend: FastMCP, *, backend_mode: str, client_class: type[Client] )
tests/server/providers/proxy/test_proxy_request_meta.py:80
↓ 2 callersFunction_quote_batch_text
Quote text for cmd.exe and the C runtime argument parser.
fastmcp_slim/fastmcp/cli/install/shared.py:58
↓ 2 callersFunction_raised
(call: Callable[[], Awaitable[Any]])
tests/client/client/test_session.py:72
↓ 2 callersMethod_read_skill_file
(self: Client, uri: str)
fastmcp_slim/fastmcp/client/mixins/skills.py:406
↓ 2 callersFunction_read_stored_snapshot
Return the raw stored value of a task's snapshot key.
tests/tasks/server/test_snapshot_encryption.py:175
↓ 2 callersFunction_read_supporting_file
(path: Path)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:41
↓ 2 callersMethod_read_upstream
( self, client: Client, context: Context | None )
fastmcp_slim/fastmcp/server/providers/proxy.py:1366
↓ 2 callersFunction_readiness
(invalid: list[str], main_file_name: str = "SKILL.md")
fastmcp_slim/fastmcp/server/providers/skills/_deprecation.py:77
↓ 2 callersMethod_record
(self, name: str, error: BaseException | None, seconds: float)
tests/downstream/_harness.py:214
↓ 2 callersFunction_recording_backend
(seen: dict[str, _RecordedRequest])
tests/server/providers/proxy/test_proxy_request_meta.py:46
↓ 2 callersFunction_recover_new_pid
Call `call` until it succeeds on a subprocess other than `old_pid`. `psutil.Process(pid).kill()` is asynchronous and crash recovery is transp
tests/client/test_stdio.py:91
↓ 2 callersFunction_ref_component_name
Return the component schema a local `$ref` points into, if any. The name is the decoded segment after `#/$defs/` or `#/components/schemas/`,
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:95
↓ 2 callersMethod_refuse_foreign_loop_in_use
Refuse a connection while another event loop is using this one. The connection task and the session's streams belong to the event loop
fastmcp_slim/fastmcp/client/transports/stdio.py:211
↓ 2 callersFunction_relay_read_resource
Read a backend resource, surfacing a guard ask rather than driving it. Mirrors `ProxyTool.run`: on a modern backend the low-level session is used
fastmcp_slim/fastmcp/server/providers/proxy.py:236
↓ 2 callersFunction_remove_task_session
(session_id: str, ref: weakref.ref[ServerSession])
fastmcp_tasks/fastmcp_tasks/context.py:409
↓ 2 callersFunction_request_state_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:93
↓ 2 callersMethod_request_token
(self, url: str, data: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:84
↓ 2 callersFunction_require_azure_identity
Raise ImportError with install instructions if azure-identity is not available.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:837
↓ 2 callersMethod_require_connected
(self)
fastmcp_slim/fastmcp/client/group.py:213
↓ 2 callersMethod_require_skills_extension
(self: Client)
fastmcp_slim/fastmcp/client/mixins/skills.py:73
↓ 2 callersFunction_required_dt
(value: str)
scripts/rank_issues.py:252
↓ 2 callersMethod_reset_session_state
Reset session state after disconnect or cancellation. Args: full: If True, also resets session_task and nesting_counter.
fastmcp_slim/fastmcp/client/client.py:660
↓ 2 callersFunction_resolve_json_spec
Disambiguate a ``.json`` server spec.
fastmcp_slim/fastmcp/cli/client.py:160
↓ 2 callersFunction_resolve_ref
Resolve JSON Schema reference to target schema.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:541
↓ 2 callersFunction_resolve_token_storage
Wrap a token store in the FastMCP adapter, defaulting to in-memory. Unlike the interactive `OAuth` provider, M2M providers do not warn when using
fastmcp_slim/fastmcp/client/auth/client_credentials.py:73
↓ 2 callersMethod_resource_mode_manifest
( self: Client, uri: str )
fastmcp_slim/fastmcp/client/mixins/skills.py:381
↓ 2 callersFunction_resource_texts
Text from ReadResourceResult.contents blocks (TextResourceContents).
tests/server/test_protocol_eras.py:83
↓ 2 callersFunction_restore_request_context
Set the ``request_ctx``, ``_current_context`` and ``_current_server`` ContextVars from stashed values so a proxy forwarding handler relays to the
fastmcp_slim/fastmcp/server/providers/proxy.py:1799
↓ 2 callersFunction_restore_token_expiry
Restore the persisted absolute token expiry after a token is reloaded. The inherited initializer reloads the stored token but not its expiry, so
fastmcp_slim/fastmcp/client/auth/client_credentials.py:105
↓ 2 callersFunction_restrict_windows_access
(path: Path)
fastmcp_slim/fastmcp/cli/deploy/state.py:58
↓ 2 callersMethod_reverse_name
Remove namespace prefix from a name, or None if no match.
fastmcp_slim/fastmcp/server/transforms/namespace.py:64
↓ 2 callersMethod_reverse_uri
Remove namespace from a URI, or None if no match.
fastmcp_slim/fastmcp/server/transforms/namespace.py:82
↓ 2 callersMethod_runner_errors
(caplog: pytest.LogCaptureFixture)
tests/server/middleware/test_ping.py:280
↓ 2 callersFunction_scan_skill_roots
Load every skill folder below `roots`. Returns the valid skills by relative path, plus one line per invalid folder saying what is wrong and h
fastmcp_slim/fastmcp/skills/provider.py:347
↓ 2 callersFunction_schema_is_object
Return whether a schema (or any composition branch) describes an object.
fastmcp_slim/fastmcp/utilities/openapi/director.py:91
↓ 2 callersFunction_schema_type_includes
Return whether `type` declares the given type, including type lists.
fastmcp_slim/fastmcp/utilities/openapi/director.py:83
↓ 2 callersMethod_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:400
↓ 2 callersMethod_seed_schema
Seed the wire-schema cache for `name` from the tool dispatch and `tools/list` would actually serve: the highest version by the same PE
fastmcp_slim/fastmcp/server/server.py:363
↓ 2 callersMethod_select_model_from_preferences
( self, model_preferences: ModelPreferences | str | list[str] | None )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:415
↓ 2 callersMethod_select_model_from_preferences
( self, model_preferences: ModelPreferences | str | list[str] | None )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:367
↓ 2 callersFunction_send_cancel
Send `tasks/cancel` to cooperatively cancel a task.
fastmcp_tasks/fastmcp_tasks/client.py:119
↓ 2 callersFunction_send_request
Send a request, preserving native httpx2 transport errors. Native `httpx2` transport errors are re-raised unchanged so the server's actionabl
fastmcp_slim/fastmcp/server/providers/openapi/components.py:106
↓ 2 callersFunction_send_update
Send `tasks/update` delivering the caller's answers to a parked task.
fastmcp_tasks/fastmcp_tasks/client.py:101
↓ 2 callersFunction_served_resource_metadata_url
Return the RFC 9728 metadata URL that auth challenges may advertise. The URL is derived from the provider's resource URL and is advertised only
fastmcp_slim/fastmcp/server/http.py:447
↓ 2 callersMethod_server
()
tests/test_exceptions.py:111
↓ 2 callersMethod_session_scope_key
Key for data that follows one client across requests. On a handshake-era connection this is `session_id`. A 2026-07-28 connection has
fastmcp_slim/fastmcp/server/context.py:806
↓ 2 callersMethod_set_auth
(self, auth: httpx2.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/sse.py:79
↓ 2 callersMethod_set_list_cookie
( self: OAuthProxy, response: HTMLResponse | RedirectResponse, base_name: str,
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:218
↓ 2 callersMethod_setup_session_with_claims
Set up a proxy JWT pointing at a valid upstream token, with optional upstream_claims.
tests/server/auth/oauth_proxy/test_tokens.py:1701
↓ 2 callersFunction_skill_md_uri
(path: str)
fastmcp_slim/fastmcp/skills/provider.py:494
↓ 2 callersFunction_split_declared_strictness
Pop `"additionalProperties": false` from every migrated schema, asserting it's there. FastMCP's generated tool schemas declare `"additionalProper
tests/docs/test_upgrade_guide_equivalence.py:81
↓ 2 callersFunction_sse_session
Open an SSE stream and yield the session's message endpoint URL.
tests/server/http/test_sse_host_origin_protection.py:57
↓ 2 callersFunction_stop_reason
Map Gemini's finish reason to MCP's stop reason, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:364
↓ 2 callersFunction_stop_reason
Map OpenAI's finish reason to MCP's stop reason, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:64
↓ 2 callersFunction_stop_reason
Map Anthropic's stop reason to MCP's, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:55
↓ 2 callersFunction_strip_structural_schema_keys
(schema: dict[str, Any])
fastmcp_slim/fastmcp/tools/tool_transform.py:57
↓ 2 callersFunction_task_key_ttl_seconds
Wall-clock TTL for a task's Redis metadata keys. Docket's ``execution_ttl`` plus a buffer (matching task creation), so a key written or refre
fastmcp_tasks/fastmcp_tasks/handlers.py:117
↓ 2 callersFunction_task_server
()
tests/tasks/server/test_task_protocol.py:20
↓ 2 callersMethod_template
(self)
tests/resources/test_resource_template_meta.py:39
↓ 2 callersFunction_terminal_elicitation_handler
Prompt the user on the terminal for elicitation responses. Prints the server's message and prompts for each field in the schema. The user can
fastmcp_slim/fastmcp/cli/client.py:199
↓ 2 callersFunction_terminal_error_message
The best available error message for a failed task.
fastmcp_tasks/fastmcp_tasks/client.py:308
↓ 2 callersFunction_text
One table-safe line: no pipes or line breaks from another publisher.
scripts/maintenance_status.py:380
↓ 2 callersFunction_text
Content is objects on the sync path and plain dicts on the task path.
tests/tasks/server/test_task_async_generator_tools.py:28
↓ 2 callersMethod_to_parent
(self, uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:61
↓ 2 callersMethod_to_server_and_underlying_transport
Turn the transforming server into a FastMCP proxy and return its transport.
fastmcp_slim/fastmcp/mcp_config.py:124
↓ 2 callersFunction_tokenize
Normalize and extract Unicode alphanumeric tokens.
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:20
↓ 2 callersMethod_transform_name
Apply namespace prefix to a name.
fastmcp_slim/fastmcp/server/transforms/namespace.py:60
← previousnext →1,501–1,600 of 15,974, ranked by callers