MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

↓ 1 callersFunction_read_mcp_resource
Read an MCP resource by URI and return its text content.
fastmcp_slim/fastmcp/cli/apps_dev.py:1130
↓ 1 callersFunction_read_outstanding_map
Return the surfaced-key → tool-key mapping for a leg.
fastmcp_tasks/fastmcp_tasks/input_store.py:305
↓ 1 callersMethod_rebind_prefab_tool_names
Re-address a Prefab payload's tool references to this server's names. Runs on the way out of every ``tools/call``, above the middleware
fastmcp_slim/fastmcp/server/server.py:825
↓ 1 callersFunction_record_failure
( bucket: str, schema_name: str, schema_obj: dict, exc: BaseException )
tests/utilities/json_schema_type/test_real_world_schemas.py:283
↓ 1 callersFunction_redirect_uri_path
(uri_path: str)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:164
↓ 1 callersMethod_refresh_jwks_key
Refresh the complete key set while holding the refresh lock.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:398
↓ 1 callersMethod_register_bundled_extensions
(self: FastMCP, provider: Provider)
fastmcp_slim/fastmcp/server/mixins/extensions.py:175
↓ 1 callersFunction_register_client
Register the MCP client so the token endpoint can authenticate it.
tests/server/auth/oauth_proxy/test_identity_assertion.py:132
↓ 1 callersMethod_register_completion_handler
Register the low-level ``completion/complete`` handler. Called when a completion handler is set (via ``add_completion_handler``) so t
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:578
↓ 1 callersMethod_register_component
Register a single component based on its type.
fastmcp_slim/fastmcp/server/providers/filesystem.py:155
↓ 1 callersMethod_register_tools
(self)
fastmcp_slim/fastmcp/apps/choice.py:80
↓ 1 callersMethod_register_tools
(self)
fastmcp_slim/fastmcp/apps/approval.py:104
↓ 1 callersMethod_register_tools
(self)
fastmcp_slim/fastmcp/apps/form.py:146
↓ 1 callersMethod_register_tools
(self)
fastmcp_slim/fastmcp/apps/file_upload.py:359
↓ 1 callersFunction_registered_task_component
Return the component Docket registered for ``tool``'s key. ``get_tasks()`` yields the same components that were registered with Docket (the u
fastmcp_tasks/fastmcp_tasks/creation.py:205
↓ 1 callersFunction_reject_non_finite
(value: JsonValue)
fastmcp_slim/fastmcp/skills/models.py:115
↓ 1 callersFunction_reject_nonfinite
Raise ToolError if a non-finite float survived JSON serialization. JSON cannot represent NaN or Infinity. A non-finite float in the parsed ou
fastmcp_slim/fastmcp/tools/base.py:97
↓ 1 callersFunction_release_worker_hooks
()
fastmcp_tasks/fastmcp_tasks/extension.py:376
↓ 1 callersFunction_remaining
()
fastmcp_tasks/fastmcp_tasks/client.py:202
↓ 1 callersMethod_remember_request
( self, jsonrpc_id: int | str | None, method: str, timestamp: float )
fastmcp_slim/fastmcp/cli/apps_dev_log.py:88
↓ 1 callersFunction_remember_snapshot
Bind a snapshot to the current asyncio context under ``task_id``. Nothing outside this task's context sees it; stale entries left in a reused
fastmcp_tasks/fastmcp_tasks/context.py:272
↓ 1 callersMethod_remove_cache_entry
Remove a document from the process-local cache.
fastmcp_slim/fastmcp/server/auth/cimd.py:245
↓ 1 callersMethod_remove_context_session
Remove one matching context hold from a task's pending exits.
fastmcp_slim/fastmcp/client/client.py:1040
↓ 1 callersFunction_rename_error_locations
Rebuild a parent tool's validation error using the transformed argument names.
fastmcp_slim/fastmcp/tools/tool_transform.py:132
↓ 1 callersMethod_render
Delegate to the child server's render_prompt(). fn_key is already set by the parent server before calling this method.
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:229
↓ 1 callersFunction_render_param
One compact line per parameter: type, enum values, default. Enums and defaults are what let a caller construct a valid value without a round
fastmcp_slim/fastmcp/server/transforms/search/base.py:251
↓ 1 callersFunction_render_skill_md
(frontmatter: Mapping[str, JsonValue], instructions: str)
fastmcp_slim/fastmcp/skills/skill.py:128
↓ 1 callersFunction_request_origin
(scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:217
↓ 1 callersMethod_require_matching_task_route
Reject a task method whose `Mcp-Name` header disagrees with its body. SEP-2243 mirrors a request's name-shaped field into `Mcp-Name` so
fastmcp_tasks/fastmcp_tasks/extension.py:198
↓ 1 callersFunction_require_property
Return a copy of *schema* with *property_name* in ``required``.
fastmcp_slim/fastmcp/utilities/json_schema.py:278
↓ 1 callersMethod_require_route_connected
(self, route: ToolRoute)
fastmcp_slim/fastmcp/client/group.py:232
↓ 1 callersMethod_require_tasks_capability
Reject a task method from a client that did not declare the extension. SEP-2663: a client issuing `tasks/get`/`tasks/update`/`tasks/cancel`
fastmcp_tasks/fastmcp_tasks/extension.py:178
↓ 1 callersMethod_required_extensions
Extensions this server contributes when used as a provider. Auto-registerable registrations take precedence over provider defaults, p
fastmcp_slim/fastmcp/server/mixins/extensions.py:28
↓ 1 callersFunction_required_json_object_without_properties
Return whether an omitted required JSON object body should be sent empty. Flattened object properties are optional tool arguments. Leaving all of
fastmcp_slim/fastmcp/utilities/openapi/director.py:225
↓ 1 callersMethod_requires_live_resource
(self: FastMCP, uri: str)
fastmcp_slim/fastmcp/server/mixins/extensions.py:47
↓ 1 callersMethod_requires_live_resource
Keep manifest-backed resources coherent with current file bytes.
fastmcp_slim/fastmcp/skills/extension.py:123
↓ 1 callersMethod_rerank
One close-read request over the shortlist: which fits best, and whether each fits at all. Returns the names that fit, best first.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:367
↓ 1 callersMethod_reset
Clear connection state and events so a future connect starts fresh.
fastmcp_slim/fastmcp/client/transports/stdio.py:295
↓ 1 callersFunction_reset_warn_once
Reinstall the shims so every property's warn-once flag starts fresh. Each bridged property closes over its own `warned` flag which persists for
tests/test_compat.py:18
↓ 1 callersFunction_residual_union_arms
Flatten a (possibly aliased/nested) union into its non-guard arms. Every `InputRequiredResult` arm is dropped at any depth, and aliased union
fastmcp_slim/fastmcp/tools/function_parsing.py:125
↓ 1 callersMethod_resolve_auth
The auth object to hand to a newly built transport. `auth="oauth"` makes the transport construct an `OAuth` client, and that client's
fastmcp_slim/fastmcp/mcp_config.py:288
↓ 1 callersMethod_resolve_claimed_result
Finish a claimed `tools/call` result through its owning extension. A modern server may answer `tools/call` with a claimed extension shape
fastmcp_slim/fastmcp/client/client.py:1478
↓ 1 callersFunction_resolve_docket
Resolve the active Docket from the current context or worker default.
fastmcp_tasks/fastmcp_tasks/input_loop.py:73
↓ 1 callersMethod_resolve_factory
Resolve a server object or factory function to a server instance. Args: obj: The object that might be a server or factory functio
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:169
↓ 1 callersFunction_resolve_fastmcp_dependencies
Resolve uncalled-for dependencies for a FastMCP function. Sets up the context that uncalled-for's Depends() needs: - A cache for resolved dep
fastmcp_slim/fastmcp/server/dependencies.py:850
↓ 1 callersFunction_resolve_recursive_types
Bind recursive fields after every class in the conversion has been built.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:426
↓ 1 callersFunction_resolve_ref
Follow one local `$ref` (`#/$defs/Name`) into `defs`; otherwise return as-is.
fastmcp_slim/fastmcp/server/transforms/search/base.py:120
↓ 1 callersFunction_resolve_tool
Resolve the Tool a task ran, from its compound key (tools-only surface).
fastmcp_tasks/fastmcp_tasks/handlers.py:189
↓ 1 callersMethod_rewrite_prefab_uris
Replace placeholder Prefab URIs with shared renderer identities. Matching renderer configurations share a URI. Resource-only fields s
fastmcp_slim/fastmcp/server/server.py:810
↓ 1 callersFunction_root_class_name
Name of the class the root schema converts to, or None if it has none. Only an object root with properties becomes a class (including the obj
fastmcp_slim/fastmcp/utilities/json_schema_type.py:411
↓ 1 callersMethod_routes_to_child
(self, uri: str, child_uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:124
↓ 1 callersMethod_run
Delegate to the child server's call_tool(). fn_key is already set by the parent server before calling this method. A child tool that
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:79
↓ 1 callersMethod_run_body
Validate arguments and execute the body, applying any timeout.
fastmcp_slim/fastmcp/tools/function_tool.py:463
↓ 1 callersMethod_run_discover_mw
Run discovery through the typed FastMCP middleware hook.
fastmcp_slim/fastmcp/server/low_level.py:324
↓ 1 callersMethod_run_initialize_mw
( self, fastmcp: FastMCP, ctx: ServerRequestContext, call_next: CallNext,
fastmcp_slim/fastmcp/server/low_level.py:380
↓ 1 callersMethod_run_monty
Run code in an isolated sandbox session. Isolated so the cancellation handling in `run()` can be exercised without a live `pydantic-m
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:292
↓ 1 callersMethod_same_origin
(self, request: Request)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:88
↓ 1 callersFunction_sample
()
scripts/benchmark_http_startup.py:116
↓ 1 callersMethod_scan
(self)
fastmcp_slim/fastmcp/skills/provider.py:332
↓ 1 callersFunction_schema_allows_null
Return True if the schema permits a null/None value.
fastmcp_slim/fastmcp/cli/client.py:362
↓ 1 callersFunction_schema_has_structural_keys
(schema: dict[str, Any])
fastmcp_slim/fastmcp/tools/tool_transform.py:61
↓ 1 callersFunction_schema_is_array_of_objects
Return whether a schema describes an object array matching `value`. Composition alternatives are chosen against the runtime items: a `oneOf`
fastmcp_slim/fastmcp/utilities/openapi/director.py:115
↓ 1 callersFunction_schema_may_be_string
Return True if a non-null value matching ``schema`` could be a string. Branches without a ``type`` (a ``$ref``, an enum, an unconstrained schema)
fastmcp_slim/fastmcp/cli/client.py:375
↓ 1 callersFunction_scope_schemas
Yield ``schema`` and the schemas describing the same instance through a local ``$ref`` or an ``allOf`` member. Each reference target is visit
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:353
↓ 1 callersMethod_scope_stream_id
(self, stream_id: StreamId)
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:26
↓ 1 callersMethod_sealing_server
A one-round guard that seals a request_state on its first ask, under an explicit key so state can be replayed across instances.
tests/server/test_mrtr_guards.py:1135
↓ 1 callersMethod_seam_span
Open the per-request SERVER span at the middleware seam. The removed SDK ``OpenTelemetryMiddleware`` produced one SERVER span per inb
fastmcp_slim/fastmcp/server/low_level.py:276
↓ 1 callersMethod_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/server/transforms/search/regex.py:56
↓ 1 callersFunction_send_images
Send post with images using the client's send_images method.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:261
↓ 1 callersMethod_send_missing_auth
Send 401 response for missing authentication (RFC 6750 §3.1 compliant). When a request lacks any authentication information, per RFC 6750 §3.
fastmcp_slim/fastmcp/server/auth/middleware.py:96
↓ 1 callersFunction_serialize_auth
Serialize a remote transport's auth to an ``auth=`` argument. Covers what a server config can express: a bearer token, or the ``"oauth"`` fla
fastmcp_slim/fastmcp/cli/generate.py:129
↓ 1 callersMethod_serialize_payload
(self, context: MiddlewareContext[Any])
fastmcp_slim/fastmcp/server/middleware/logging.py:33
↓ 1 callersMethod_serialize_query_params
Serialize query parameter values according to their OpenAPI style/explode settings. By default (style=form, explode=true), list valu
fastmcp_slim/fastmcp/utilities/openapi/director.py:595
↓ 1 callersFunction_serialize_requests
Dump each request to the wire payload surfaced for the client to answer.
fastmcp_tasks/fastmcp_tasks/input_loop.py:63
↓ 1 callersFunction_serving_auth
Return the auth provider and MCP path of the HTTP app serving this request. FastMCP's HTTP app factories store the provider they were built with,
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:100
↓ 1 callersMethod_session_runner
Background task that manages the actual session lifecycle. This task runs in the background and: 1. Establishes the transpor
fastmcp_slim/fastmcp/client/client.py:1245
↓ 1 callersMethod_set_auth
(self, auth: httpx2.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/http.py:113
↓ 1 callersMethod_set_consent_state_cookie
Record that this browser received `csrf_token`, under its own name. The cookie is what makes the double-submit check meaningful: the token
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:268
↓ 1 callersFunction_set_cookie_value
(response, name: str)
tests/server/auth/test_oauth_consent_page.py:139
↓ 1 callersFunction_set_token
Set the access token in the auth context var.
tests/server/versioning/test_auth_version_fallback.py:32
↓ 1 callersFunction_set_token
Set the access token in the auth context var.
tests/server/versioning/test_visibility_version_fallback.py:31
↓ 1 callersFunction_set_visibility_metadata
Set visibility state in tool metadata. This uses the same metadata format as the Visibility transform, so tools marked here will be filtered
fastmcp_slim/fastmcp/tools/tool_transform.py:1180
↓ 1 callersMethod_setup_handlers
Register core MCP protocol handlers with the low-level SDK server.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:117
↓ 1 callersMethod_setup_proxy_ping_handler
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1659
↓ 1 callersMethod_shared_context_lifespan
Set up the process-level ``SharedContext`` and server ContextVar. ``SharedContext`` backs app-scoped ``Shared()`` dependencies and is
fastmcp_slim/fastmcp/server/mixins/lifespan.py:55
↓ 1 callersFunction_should_skip
(example: CodeExample)
tests/docs/test_doc_examples.py:50
↓ 1 callersMethod_should_validate_host
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:285
↓ 1 callersMethod_should_validate_origin
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:292
↓ 1 callersMethod_show_consent_page
Display consent page or auto-approve/deny based on cookies.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:437
↓ 1 callersMethod_simple_param_to_path_segment
Serialize a path parameter per the OpenAPI "simple" style, encoding each item separately so the style separators stay literal on the wire.
fastmcp_slim/fastmcp/utilities/openapi/director.py:727
↓ 1 callersMethod_simple_param_to_str
Serialize a value per the OpenAPI "simple" style (path and header parameters). Arrays join with commas either way; explode only changes objec
fastmcp_slim/fastmcp/utilities/openapi/director.py:677
↓ 1 callersMethod_single_pass
Rank and filter in one round trip. Chunks run concurrently; their probabilities are not comparable, so the merged order is a heuristic.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:316
↓ 1 callersFunction_single_pass_optimize
Optimize JSON schemas in a single traversal for better performance. This function combines three schema cleanup operations that would normal
fastmcp_slim/fastmcp/utilities/json_schema.py:686
↓ 1 callersFunction_skill_folders
Find skill folders below `root` as (relative path, folder) pairs. A skill folder's subfolders belong to the skill, so the walk stops there. A
fastmcp_slim/fastmcp/skills/provider.py:396
↓ 1 callersMethod_skill_manifest
File records and the entry whose frontmatter must match the content. A skill the server serves as resources but does not advertise through
fastmcp_slim/fastmcp/client/mixins/skills.py:353
↓ 1 callersMethod_skill_uris
Return identities before authorization/validation, preserving duplicates.
fastmcp_slim/fastmcp/skills/_source.py:25
↓ 1 callersFunction_slugify
Convert text to a URL-friendly slug format. Only contains lowercase letters, uppercase letters, numbers, and underscores.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:179
↓ 1 callersFunction_spec_files_for_provider
Find all spec files for a given provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:239
↓ 1 callersFunction_ssrf_safe_fetch_response
Run one fetch; the public wrapper bounds this whole coroutine.
fastmcp_slim/fastmcp/server/auth/ssrf.py:450
↓ 1 callersFunction_stamp_prefab_marker
Mark a tool as needing a Prefab renderer resource. Sets ``meta["ui"]["resourceUri"]`` to a placeholder URI. The server recognizes the placeho
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:65
← previousnext →2,301–2,400 of 15,974, ranked by callers