Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
↓ 1 callers
Function
_make_log_server
()
tests/test_mcp_config.py:871
↓ 1 callers
Function
_make_ping_server
()
tests/test_mcp_config.py:1397
↓ 1 callers
Function
_make_property
Build a warn-once property routing a camelCase read to a snake attr. The getter reads the live `mcp_camelcase_compat` setting on every access: if
fastmcp_slim/fastmcp/_compat.py:109
↓ 1 callers
Function
_make_session_server
()
tests/test_mcp_config.py:1262
↓ 1 callers
Function
_make_token
Create a test access token.
tests/server/versioning/test_visibility_version_fallback.py:20
↓ 1 callers
Function
_mask_error_details
The worker server's error-masking policy, mirroring the sync call path. Resolves the owning server through ``get_server()`` (the worker-server
fastmcp_tasks/fastmcp_tasks/input_loop.py:87
↓ 1 callers
Function
_match_host
Match host component, supporting *.example.com wildcard patterns. Args: uri_host: The host from the URI being validated pattern_h
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:148
↓ 1 callers
Function
_match_path
Match path component using fnmatch for wildcard support. Args: uri_path: The path from the URI pattern_path: The path pattern (ma
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:270
↓ 1 callers
Function
_match_port
Match port component, supporting * wildcard for any port. Args: uri_port: The port from the URI (None if default, string otherwise)
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:228
↓ 1 callers
Method
_matches
(value: str, expected: str)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:96
↓ 1 callers
Function
_matches_registered_loopback_redirect_uri
( redirect_uri: AnyUrl, registered_uri: AnyUrl, )
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:165
↓ 1 callers
Function
_matches_registered_redirect_uri
( redirect_uri: AnyUrl, registered_uris: list[AnyUrl] | None, )
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:194
↓ 1 callers
Method
_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:497
↓ 1 callers
Function
_maybe_apply_prefab_ui
Mark a tool as a Prefab tool if its config or return type implies it. Per-tool renderer resources are synthesized lazily at list/read time; h
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:82
↓ 1 callers
Method
_maybe_cleanup
Run ``_cleanup_expired`` at most once per cleanup interval.
fastmcp_slim/fastmcp/utilities/token_cache.py:159
↓ 1 callers
Method
_maybe_cleanup
(self)
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:252
↓ 1 callers
Method
_maybe_cleanup
Periodically cleanup expired JTIs to prevent unbounded growth.
fastmcp_slim/fastmcp/server/auth/cimd.py:520
↓ 1 callers
Method
_maybe_handle_id_jag
Dispatch the SEP-990 jwt-bearer grant, or None to fall through. Returns a response for the jwt-bearer grant (ID-JAG), or None when the
fastmcp_slim/fastmcp/server/auth/auth.py:140
↓ 1 callers
Function
_measure_depth
Return how many `items` levels deep an array-nested schema goes. Walks iteratively so the assertion helpers cannot themselves hit the recursi
tests/utilities/test_json_schema.py:18
↓ 1 callers
Function
_media_list
(playable: list[MediaCandidate], notices: list[str])
examples/apps/media_picker/media_picker_server.py:268
↓ 1 callers
Function
_median
(samples: Sequence[Sample], key: str)
scripts/benchmark_http_startup.py:129
↓ 1 callers
Function
_merge_domain_lists
( base: list[str] | None, extra: list[str] | None )
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:63
↓ 1 callers
Function
_merge_domains
Merge two domain lists, deduplicating.
fastmcp_slim/fastmcp/apps/config.py:179
↓ 1 callers
Function
_merge_ref_siblings
Merge sibling keywords from original $ref nodes into dereferenced schema. When jsonref resolves $ref, it replaces the entire node with the refere
fastmcp_slim/fastmcp/utilities/json_schema.py:373
↓ 1 callers
Function
_mint_surfaced_key
Mint a unique surfaced key for one outstanding request (SEP-2663 L350). Namespaced by the task id and suffixed with fresh entropy so no two r
fastmcp_tasks/fastmcp_tasks/input_store.py:117
↓ 1 callers
Function
_mirror_front_era_mode
Return the backend connect ``mode`` that mirrors the front connection's era. A proxy is a server on its front and a client on its back. The two p
fastmcp_slim/fastmcp/server/providers/proxy.py:1284
↓ 1 callers
Function
_mock_github_failure
Configure *mock_client* to return a 401 GitHub response.
tests/server/auth/providers/test_github.py:178
↓ 1 callers
Function
_model_from_schema
Dynamically create a Pydantic model from a JSON Schema for form generation.
fastmcp_slim/fastmcp/cli/apps_dev.py:947
↓ 1 callers
Method
_narrow
Wide passes until the candidate set fits the close read. Probabilities from different chunks are not comparable, so each chunk's shor
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:338
↓ 1 callers
Function
_needs_recursive_processing
Check if the schema needs recursive processing (smarter than just checking for recursive fields).
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:212
↓ 1 callers
Function
_nested_fields
Suffix listing an object-valued field's own field names, or empty. Names only: the level below is what turns `items (object[])` into somethin
fastmcp_slim/fastmcp/server/transforms/search/base.py:172
↓ 1 callers
Function
_normalize_anyof_order
Normalize the order of items in anyOf arrays for consistent comparison.
tests/server/providers/local_provider_tools/test_output_schema.py:19
↓ 1 callers
Function
_normalize_call_tool_result
Normalize a tool's ``to_mcp_result()`` output into a ``CallToolResult``. ``ToolResult.to_mcp_result()`` returns one of three shapes for backward
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:73
↓ 1 callers
Function
_normalize_callback_host_for_bind
(host: str)
fastmcp_slim/fastmcp/client/auth/oauth.py:38
↓ 1 callers
Method
_normalize_contents
Normalize input to list[ResourceContent].
fastmcp_slim/fastmcp/resources/base.py:170
↓ 1 callers
Function
_normalize_iso_timestamp
Return an ISO 8601 timestamp for createdAt, tolerating a missing value.
fastmcp_tasks/fastmcp_tasks/handlers.py:93
↓ 1 callers
Method
_normalize_messages
Normalize input to list[Message].
fastmcp_slim/fastmcp/prompts/base.py:163
↓ 1 callers
Method
_normalize_uri
Normalize a URI to a canonical form for consent tracking.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:86
↓ 1 callers
Function
_numeric_date_claim
Read a NumericDate claim (RFC 7519 §2), rejecting non-numeric values. A validly-signed assertion could still carry a malformed `exp`/`iat`/`nbf`
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:492
↓ 1 callers
Function
_object_fields
Field names of the object a schema describes, one level deep, or None. Looks through a local `$ref`, an array's `items`, every object branch
fastmcp_slim/fastmcp/server/transforms/search/base.py:130
↓ 1 callers
Function
_oembed_client
()
examples/apps/media_picker/media_picker_server.py:101
↓ 1 callers
Method
_on_list_resources
List all available resources. Supports pagination via params.cursor.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:155
↓ 1 callers
Function
_open_browser
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1890
↓ 1 callers
Function
_operator_entry
Keep only the schema's fields from another system's entry.
scripts/maintenance_status.py:392
↓ 1 callers
Function
_opted_in_call
Run a `tools/call` WITH the tasks opt-in bound (used to prove sync paths).
tests/tasks/server/test_task_config.py:35
↓ 1 callers
Function
_opted_in_call
Run a `tools/call` WITH the tasks opt-in bound (used to prove sync paths).
tests/tasks/server/test_task_tools.py:42
↓ 1 callers
Method
_origin_allowed
( self, origin: str, request_origin: str, host: str, allow_same_origin
fastmcp_slim/fastmcp/server/http.py:322
↓ 1 callers
Function
_origin_host
(origin: str)
fastmcp_slim/fastmcp/server/http.py:165
↓ 1 callers
Function
_origin_matches
(origin: str, allowed_origins: Sequence[str])
fastmcp_slim/fastmcp/server/http.py:217
↓ 1 callers
Function
_origin_port
(scheme: str, port: int | None)
fastmcp_slim/fastmcp/server/http.py:174
↓ 1 callers
Function
_owning_server
The server a mounted tool lives on, for worker context resolution. A mounted tool is a ``FastMCPProviderTool`` that references the child server
fastmcp_tasks/fastmcp_tasks/creation.py:146
↓ 1 callers
Function
_package_path_matches
Check whether a package module's __path__ points at package_root. Used to tell whether a top-level package name already present in sys.module
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:120
↓ 1 callers
Function
_params_dict
Query params as a dict, order-insensitive, mirroring pytest-httpx.
tests/utilities/httpx2_mock.py:31
↓ 1 callers
Method
_parse_cache_policy
Parse HTTP cache headers and derive cache behavior.
fastmcp_slim/fastmcp/server/auth/cimd.py:240
↓ 1 callers
Function
_parse_descope_config_url
(config_url: str)
fastmcp_slim/fastmcp/server/auth/providers/descope.py:34
↓ 1 callers
Function
_parse_dict_syntax
Parse dict syntax: {"low": {"title": "..."}} -> single-select titled.
fastmcp_slim/fastmcp/server/elicitation.py:227
↓ 1 callers
Function
_parse_frontmatter_line_based
Legacy line-based frontmatter parser (key: value only). Used as a fallback when full YAML parsing fails so plain scalar keys (including value
fastmcp_slim/fastmcp/server/providers/skills/_common.py:35
↓ 1 callers
Function
_parse_generic_list
Parse list[X] type annotation -> multi-select.
fastmcp_slim/fastmcp/server/elicitation.py:290
↓ 1 callers
Function
_parse_host_port
Parse host and port from netloc, handling wildcards. Args: netloc: The netloc component (e.g., "localhost:8080" or "localhost:*") Re
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:116
↓ 1 callers
Function
_parse_key_version
Split a component key suffix into (name, version) on the last ``@``.
fastmcp_tasks/fastmcp_tasks/handlers.py:103
↓ 1 callers
Function
_parse_list_syntax
Parse list patterns: [[...]], [{...}], or [...].
fastmcp_slim/fastmcp/server/elicitation.py:243
↓ 1 callers
Function
_parse_scalar_type
Parse scalar types (bool, int, float, str, Literal, Enum).
fastmcp_slim/fastmcp/server/elicitation.py:300
↓ 1 callers
Function
_path_argument_name
(route: HTTPRoute, parameter_name: str)
fastmcp_slim/fastmcp/server/providers/openapi/components.py:362
↓ 1 callers
Function
_path_checks
Lazily load the SDK's path-safety helpers. The screening logic lives in the `mcp` SDK, which is an optional dependency of `fastmcp-slim`. Imp
fastmcp_slim/fastmcp/resources/security.py:33
↓ 1 callers
Method
_perform_authorization
(self)
fastmcp_slim/fastmcp/client/auth/client_credentials.py:396
↓ 1 callers
Function
_poll
()
tests/client/test_stdio.py:48
↓ 1 callers
Function
_prefab_to_tool_result
Convert a PrefabApp to a FastMCP ToolResult.
fastmcp_slim/fastmcp/tools/base.py:565
↓ 1 callers
Function
_prefix
(local_name: str)
fastmcp_slim/fastmcp/apps/app.py:77
↓ 1 callers
Function
_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:45
↓ 1 callers
Method
_prepare_scopes_for_token_exchange
Prepare scopes for initial token exchange (auth code -> tokens). Override this method to provide scopes during the authorization code
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1653
↓ 1 callers
Function
_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
↓ 1 callers
Function
_print_schema
Print a JSON schema with a label.
fastmcp_slim/fastmcp/cli/client.py:401
↓ 1 callers
Function
_private_package_prefix
Compute a collision-safe synthetic package name anchored at a directory.
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:134
↓ 1 callers
Function
_public_content_meta
Strip FastMCP's internal bookkeeping out of component meta. Component `meta` carries private entries under the `fastmcp` namespace (e.g. `_in
fastmcp_slim/fastmcp/resources/base.py:242
↓ 1 callers
Method
_rank_and_fit_chunk
One request that both ranks a chunk and asks the fit question of every tool in it, on summaries. Returns the fitting names with their
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:285
↓ 1 callers
Method
_rank_chunk
One wide request: rank every tool in a chunk by summary.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:266
↓ 1 callers
Function
_raw_message
The message payload handed to the root dispatch's ``on_message``/``on_request`` pass. The raw inbound params mapping is used verbatim rather than
fastmcp_slim/fastmcp/server/low_level.py:58
↓ 1 callers
Method
_read
Server entry point - read file directly without creating ephemeral resource.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:101
↓ 1 callers
Method
_read_connected
Read metadata without changing the client's adopted negotiation state.
fastmcp_slim/fastmcp/server/providers/proxy.py:1186
↓ 1 callers
Function
_read_mcp_resource
Read an MCP resource by URI and return its text content.
fastmcp_slim/fastmcp/cli/apps_dev.py:1235
↓ 1 callers
Function
_read_outstanding_map
Return the surfaced-key → tool-key mapping for a leg.
fastmcp_tasks/fastmcp_tasks/input_store.py:289
↓ 1 callers
Method
_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:702
↓ 1 callers
Function
_record_failure
( bucket: str, schema_name: str, schema_obj: dict, exc: BaseException )
tests/utilities/json_schema_type/test_real_world_schemas.py:283
↓ 1 callers
Function
_redirect_uri_path
(uri_path: str)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:161
↓ 1 callers
Method
_register_bundled_extensions
(self: FastMCP, provider: Provider)
fastmcp_slim/fastmcp/server/mixins/extensions.py:169
↓ 1 callers
Function
_register_client
Register the MCP client so the token endpoint can authenticate it.
tests/server/auth/oauth_proxy/test_identity_assertion.py:132
↓ 1 callers
Method
_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:459
↓ 1 callers
Method
_register_component
Register a single component based on its type.
fastmcp_slim/fastmcp/server/providers/filesystem.py:153
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/choice.py:80
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/approval.py:104
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/form.py:146
↓ 1 callers
Method
_register_tools
(self)
fastmcp_slim/fastmcp/apps/file_upload.py:279
↓ 1 callers
Function
_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 callers
Function
_release_worker_hooks
()
fastmcp_tasks/fastmcp_tasks/extension.py:339
↓ 1 callers
Function
_remaining
()
fastmcp_tasks/fastmcp_tasks/client.py:202
↓ 1 callers
Function
_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 callers
Method
_remove_cache_entry
Remove a document from the process-local cache.
fastmcp_slim/fastmcp/server/auth/cimd.py:236
↓ 1 callers
Method
_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 callers
Function
_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 callers
Function
_request_origin
(scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:213
← previous
next →
1,801–1,900 of 13,374, ranked by callers