MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

↓ 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_reproduces
True while the finding's minimal case still fails the way it was recorded. Any other exception propagates, so an unrelated break in the adapter f
tests/pbt/test_json_schema.py:68
↓ 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:200
↓ 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:180
↓ 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:116
↓ 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:429
↓ 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_responds
(client: FireTVClient)
examples/smart_home/src/smart_home/fire_tv/client.py:82
↓ 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:853
↓ 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:414
↓ 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:623
↓ 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_examples
(item: pytest.Item, examples: int)
tests/pbt/conftest.py:113
↓ 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:755
↓ 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:705
↓ 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:183
↓ 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
↓ 1 callersFunction_start_user_server
Start the user's MCP server as a subprocess on mcp_port.
fastmcp_slim/fastmcp/cli/apps_dev.py:1629
↓ 1 callersFunction_stdio_transport_connect_task
A standalone connection task for a stdio transport. It is not a part of the StdioTransport class to ensure that the connection task does not hold
fastmcp_slim/fastmcp/client/transports/stdio.py:344
↓ 1 callersMethod_stop_session
Stop the session. A last exit passes the session it held, and the stop is skipped if another context now uses it; a forced stop takes whatever
fastmcp_slim/fastmcp/client/client.py:1205
↓ 1 callersMethod_store_cache_entry
Store a document in the bounded process-local cache.
fastmcp_slim/fastmcp/server/auth/cimd.py:235
↓ 1 callersFunction_stream_and_cleanup
(resp: httpx2.Response)
fastmcp_slim/fastmcp/cli/apps_dev.py:1504
↓ 1 callersFunction_strip_discriminator
Recursively remove OpenAPI ``discriminator`` keys from a schema. Pydantic emits ``discriminator.mapping`` with values like ``#/$defs/ClassNam
fastmcp_slim/fastmcp/utilities/json_schema.py:238
↓ 1 callersFunction_strip_titles
Recursively drop every "title" key, the one difference that's genuinely cosmetic. A hand-written SDK schema has no title anywhere; FastMCP derive
tests/docs/test_upgrade_guide_equivalence.py:49
↓ 1 callersFunction_structural_kind
Type identity, excluding validation constraints and property metadata.
fastmcp_slim/fastmcp/tools/tool_transform.py:65
↓ 1 callersMethod_submit_consent
Handle consent approval/denial, set cookies, and redirect appropriately.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:602
↓ 1 callersFunction_summarize
(samples: list[Sample])
scripts/benchmark_http_startup.py:133
↓ 1 callersFunction_summary
The first paragraph of a tool's description, or its name when it has none.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:60
↓ 1 callersFunction_sync_outcome
( server: FastMCP, name: str, arguments: dict[str, Any] )
tests/tasks/server/test_task_async_generator_tools.py:36
↓ 1 callersFunction_sync_result_to_wire
Serialize a synchronous ToolResult into the inlined task wire shape.
tests/tasks/server/test_task_return_types.py:33
↓ 1 callersFunction_sync_wrapper
(fn: Callable[..., Any])
tests/tools/test_generator_thread_dispatch.py:19
↓ 1 callersFunction_task_outcome
( server: FastMCP, name: str, arguments: dict[str, Any] )
tests/tasks/server/test_task_async_generator_tools.py:46
↓ 1 callersFunction_task_server
()
tests/tasks/server/test_task_async_generator_tools.py:117
↓ 1 callersFunction_terminate_process
Terminate a subprocess and all its children. Sends SIGTERM to the process group first for graceful shutdown, then falls back to SIGKILL if th
fastmcp_slim/fastmcp/cli/run.py:380
↓ 1 callersFunction_test_provider
Run json_schema_to_type on every schema for one provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:262
↓ 1 callersFunction_text_within_limit
Check the total length of every key and scalar value in *schema*. Inlining shares scalar objects rather than copying them, so a repeated long
fastmcp_slim/fastmcp/utilities/json_schema.py:188
↓ 1 callersFunction_toast_result
()
examples/apps/media_picker/media_picker_server.py:261
↓ 1 callersMethod_tool
(self, version: str | None)
tests/server/versioning/test_versioning.py:482
↓ 1 callersFunction_tool_result_content_to_anthropic
Preserve text and image blocks inside Anthropic tool results.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:84
← previousnext →2,401–2,500 of 16,224, ranked by callers