Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
↓ 1 callers
Function
_schema_allows_null
Return True if the schema permits a null/None value.
fastmcp_slim/fastmcp/cli/client.py:362
↓ 1 callers
Function
_schema_has_structural_keys
(schema: dict[str, Any])
fastmcp_slim/fastmcp/tools/tool_transform.py:61
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Method
_scope_stream_id
(self, stream_id: StreamId)
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:26
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_search
(self, tools: Sequence[Tool], query: str)
fastmcp_slim/fastmcp/server/transforms/search/regex.py:56
↓ 1 callers
Function
_send_images
Send post with images using the client's send_images method.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:261
↓ 1 callers
Method
_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 callers
Function
_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 callers
Method
_serialize_payload
(self, context: MiddlewareContext[Any])
fastmcp_slim/fastmcp/server/middleware/logging.py:33
↓ 1 callers
Method
_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 callers
Function
_serialize_requests
Dump each request to the wire payload surfaced for the client to answer.
fastmcp_tasks/fastmcp_tasks/input_loop.py:63
↓ 1 callers
Function
_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 callers
Method
_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 callers
Method
_set_auth
(self, auth: httpx2.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/http.py:113
↓ 1 callers
Method
_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 callers
Function
_set_cookie_value
(response, name: str)
tests/server/auth/test_oauth_consent_page.py:139
↓ 1 callers
Function
_set_token
Set the access token in the auth context var.
tests/server/versioning/test_auth_version_fallback.py:32
↓ 1 callers
Function
_set_token
Set the access token in the auth context var.
tests/server/versioning/test_visibility_version_fallback.py:31
↓ 1 callers
Function
_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 callers
Method
_setup_handlers
Register core MCP protocol handlers with the low-level SDK server.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:117
↓ 1 callers
Method
_setup_proxy_ping_handler
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1659
↓ 1 callers
Method
_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 callers
Function
_should_skip
(example: CodeExample)
tests/docs/test_doc_examples.py:50
↓ 1 callers
Method
_should_validate_host
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:285
↓ 1 callers
Method
_should_validate_origin
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:292
↓ 1 callers
Method
_show_consent_page
Display consent page or auto-approve/deny based on cookies.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:437
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Function
_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 callers
Function
_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 callers
Method
_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 callers
Method
_skill_uris
Return identities before authorization/validation, preserving duplicates.
fastmcp_slim/fastmcp/skills/_source.py:25
↓ 1 callers
Function
_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 callers
Function
_spec_files_for_provider
Find all spec files for a given provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:239
↓ 1 callers
Function
_ssrf_safe_fetch_response
Run one fetch; the public wrapper bounds this whole coroutine.
fastmcp_slim/fastmcp/server/auth/ssrf.py:450
↓ 1 callers
Function
_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 callers
Function
_start_user_server
Start the user's MCP server as a subprocess on mcp_port.
fastmcp_slim/fastmcp/cli/apps_dev.py:1629
↓ 1 callers
Function
_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 callers
Method
_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 callers
Method
_store_cache_entry
Store a document in the bounded process-local cache.
fastmcp_slim/fastmcp/server/auth/cimd.py:235
↓ 1 callers
Function
_stream_and_cleanup
(resp: httpx2.Response)
fastmcp_slim/fastmcp/cli/apps_dev.py:1504
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_structural_kind
Type identity, excluding validation constraints and property metadata.
fastmcp_slim/fastmcp/tools/tool_transform.py:65
↓ 1 callers
Method
_submit_consent
Handle consent approval/denial, set cookies, and redirect appropriately.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:602
↓ 1 callers
Function
_summarize
(samples: list[Sample])
scripts/benchmark_http_startup.py:133
↓ 1 callers
Function
_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 callers
Function
_sync_outcome
( server: FastMCP, name: str, arguments: dict[str, Any] )
tests/tasks/server/test_task_async_generator_tools.py:36
↓ 1 callers
Function
_sync_result_to_wire
Serialize a synchronous ToolResult into the inlined task wire shape.
tests/tasks/server/test_task_return_types.py:33
↓ 1 callers
Function
_sync_wrapper
(fn: Callable[..., Any])
tests/tools/test_generator_thread_dispatch.py:19
↓ 1 callers
Function
_task_outcome
( server: FastMCP, name: str, arguments: dict[str, Any] )
tests/tasks/server/test_task_async_generator_tools.py:46
↓ 1 callers
Function
_task_server
()
tests/tasks/server/test_task_async_generator_tools.py:117
↓ 1 callers
Function
_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 callers
Function
_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 callers
Function
_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 callers
Function
_toast_result
()
examples/apps/media_picker/media_picker_server.py:261
↓ 1 callers
Function
_tool_result_content_to_anthropic
Preserve text and image blocks inside Anthropic tool results.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:84
↓ 1 callers
Function
_tool_result_content_to_openai_text
Convert text-only OpenAI tool output and reject images explicitly.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:106
↓ 1 callers
Function
_tool_skill_section
Generate a SKILL.md section for a single tool.
fastmcp_slim/fastmcp/cli/generate.py:717
↓ 1 callers
Function
_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_regex.py:47
↓ 1 callers
Function
_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_bm25.py:47
↓ 1 callers
Function
_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/code_mode/client.py:50
↓ 1 callers
Function
_tool_title
(tool: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev.py:959
↓ 1 callers
Function
_tools_to_json
Serialize a list of tools to JSON-safe dicts.
fastmcp_slim/fastmcp/cli/client.py:620
↓ 1 callers
Function
_trace_meta
()
fastmcp_slim/fastmcp/client/mixins/skills.py:43
↓ 1 callers
Method
_translate_scopes_from_idp
Strip ``{identifier_uri}/`` from custom API scopes Azure echoes back. Inverse of :meth:`_prefix_scopes_for_azure`. Azure echoes the prefixed
fastmcp_slim/fastmcp/server/auth/providers/azure.py:474
↓ 1 callers
Function
_ttl_ms
The task TTL in milliseconds, from Docket's execution TTL (server-set).
fastmcp_tasks/fastmcp_tasks/handlers.py:112
↓ 1 callers
Function
_typed_extras
(pair: dict[str, Any], **defs: Any)
tests/utilities/json_schema_type/test_prefix_items.py:303
↓ 1 callers
Function
_typed_extras_hold_prefix_array
An object with schema-valued `additionalProperties` whose own properties reach an unpinned positional array, directly or through a local `$ref`:
tests/pbt/test_json_schema.py:171
↓ 1 callers
Method
_unflatten_arguments
Maps flat arguments back to their OpenAPI locations using the parameter map. The parameter map is the only source of argument locati
fastmcp_slim/fastmcp/utilities/openapi/director.py:509
↓ 1 callers
Function
_union_enum_values
Enum values of a union, only when every non-null branch is enumerated. A union such as `Literal["a"] | int` has no closed set of valid values, so
fastmcp_slim/fastmcp/server/transforms/search/base.py:226
↓ 1 callers
Function
_union_type
(branches: list[Any])
fastmcp_slim/fastmcp/server/transforms/search/base.py:83
↓ 1 callers
Function
_unread
Allow the response body to be read on the client side.
tests/utilities/httpx2_mock.py:79
↓ 1 callers
Method
_unscope_stream_id
(self, stream_id: StreamId)
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:29
↓ 1 callers
Method
_unwind_partial_entry
Disconnect the members a failed or cancelled entry already connected.
fastmcp_slim/fastmcp/client/group.py:168
↓ 1 callers
Function
_unwrap
Return the innermost provider and its transforms, innermost first.
fastmcp_slim/fastmcp/skills/_composition.py:27
↓ 1 callers
Function
_unwrap_nullable
Reduce an optional schema (``X | None``) to the schema for ``X``.
fastmcp_slim/fastmcp/cli/client.py:338
↓ 1 callers
Function
_unwrap_result
Extract the logical return value from a ToolResult.
tests/experimental/transforms/test_code_mode_discovery.py:17
↓ 1 callers
Function
_unwrap_tool_result
Convert a ToolResult for use in the sandbox. - Output schema present → structured_content dict (matches the schema) - Otherwise → concatenate
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:116
↓ 1 callers
Function
_update_all_lists
Actions to update all three status lists from a tool result.
examples/apps/approvals/approvals_server.py:208
↓ 1 callers
Function
_url_match
Full URL match with query-parameter order insensitivity. A ``re.Pattern`` matches against the string form of the received URL, mirroring ``py
tests/utilities/httpx2_mock.py:40
↓ 1 callers
Method
_use_identity
Adopt the identity a ``ProxyMetadataMiddleware`` was explicitly given. Cached components carry the identity they were built with, so a change
fastmcp_slim/fastmcp/server/providers/proxy.py:1018
↓ 1 callers
Method
_uses_alternate_verification
Patch returned token scopes from the upstream token response. Hugging Face OAuth access tokens are opaque. The userinfo endpoint vali
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:282
↓ 1 callers
Method
_uses_alternate_verification
Whether this provider verifies a different token than the access token. When True, ``load_access_token`` patches the validated result with
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2120
↓ 1 callers
Function
_uses_default_multipart_encoding
Explicit defaults serialize like omitted encoding; overrides stay unchanged.
fastmcp_slim/fastmcp/utilities/openapi/director.py:37
↓ 1 callers
Method
_valid_host
(self, headers: Headers)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:58
↓ 1 callers
Function
_validate
()
fastmcp_slim/fastmcp/cli/cimd.py:170
↓ 1 callers
Function
_validate_form_content
Check accepted form content against the server's requested schema. Validates the JSON value that goes on the wire, as JSON Schema defines it,
fastmcp_slim/fastmcp/client/elicitation.py:38
↓ 1 callers
Method
_validate_issuer
Check a token's `iss` claim against the configured issuer(s). Subclasses override this to implement provider-specific rules, such as
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:509
↓ 1 callers
Function
_validate_json
(value: Any, ancestors: set[int])
fastmcp_slim/fastmcp/skills/_snapshot.py:40
↓ 1 callers
Method
_validate_task_extension_registered
Fail loudly if a task-enabled tool has no tasks extension registered. `task=True` on a tool is only an intent declaration; the engine that ru
fastmcp_slim/fastmcp/server/mixins/lifespan.py:120
↓ 1 callers
Function
_validate_transformed_arguments
Reject a transformed-tool submission its own advertised schema forbids. A transformed tool is registered with Docket as a base ``Tool``, so the
fastmcp_tasks/fastmcp_tasks/components.py:201
↓ 1 callers
Function
_validation_error_summary
Keep counts and built-in codes, never input-derived validation details.
fastmcp_slim/fastmcp/server/server.py:143
↓ 1 callers
Function
_verified_links
( links: list[MediaLink], )
examples/apps/media_picker/media_picker_server.py:243
↓ 1 callers
Function
_verify_youtube
( client: httpx2.AsyncClient, link: MediaLink, video_id: str )
examples/apps/media_picker/media_picker_server.py:105
← previous
next →
2,401–2,500 of 16,098, ranked by callers