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
_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:48
↓ 1 callers
Method
_origin_allowed
( self, origin: str, request_origin: str, host: str, allow_same_origin
fastmcp_slim/fastmcp/server/http.py:326
↓ 1 callers
Function
_origin_host
(origin: str)
fastmcp_slim/fastmcp/server/http.py:169
↓ 1 callers
Function
_origin_matches
(origin: str, allowed_origins: Sequence[str])
fastmcp_slim/fastmcp/server/http.py:221
↓ 1 callers
Function
_origin_port
(scheme: str, port: int | None)
fastmcp_slim/fastmcp/server/http.py:178
↓ 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
Method
_owns_skill_resource
(self, uri: str)
fastmcp_slim/fastmcp/skills/provider.py:327
↓ 1 callers
Method
_owns_skill_resource
Whether manifest coherence requires this URI to be read live.
fastmcp_slim/fastmcp/skills/_source.py:29
↓ 1 callers
Method
_owns_skill_resource
(self, uri: str)
tests/skills/test_extension.py:71
↓ 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:249
↓ 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:252
↓ 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:40
↓ 1 callers
Function
_parse_generic_list
Parse list[X] type annotation -> multi-select.
fastmcp_slim/fastmcp/server/elicitation.py:324
↓ 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:165
↓ 1 callers
Function
_parse_key_version
Split a component key suffix into (name, version) on the last ``@``.
fastmcp_tasks/fastmcp_tasks/handlers.py:104
↓ 1 callers
Function
_parse_list_syntax
Parse list patterns: [[...]], [{...}], or [...].
fastmcp_slim/fastmcp/server/elicitation.py:273
↓ 1 callers
Function
_parse_scalar_type
Parse scalar types (bool, int, float, str, Literal, Enum).
fastmcp_slim/fastmcp/server/elicitation.py:334
↓ 1 callers
Function
_parse_statements
(path: Path)
scripts/pbt_coverage.py:270
↓ 1 callers
Function
_path_argument_name
(route: HTTPRoute, parameter_name: str)
fastmcp_slim/fastmcp/server/providers/openapi/components.py:412
↓ 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:424
↓ 1 callers
Function
_pins_legacy_mode
(tree: ast.AST)
tests/test_examples_ping.py:22
↓ 1 callers
Function
_poll
()
tests/client/test_stdio.py:54
↓ 1 callers
Function
_prefab_to_tool_result
Convert a PrefabApp to a FastMCP ToolResult.
fastmcp_slim/fastmcp/tools/base.py:705
↓ 1 callers
Function
_prefix
(local_name: str)
fastmcp_slim/fastmcp/apps/app.py:77
↓ 1 callers
Method
_prepare_scopes_for_token_exchange
Prepare scopes for initial token exchange (auth code -> tokens). The default omits the `scope` parameter from the upstream code excha
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1707
↓ 1 callers
Function
_print_schema
Print a JSON schema with a label.
fastmcp_slim/fastmcp/cli/client.py:554
↓ 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
_proxied_source
(provider: Provider)
fastmcp_slim/fastmcp/skills/_proxy.py:156
↓ 1 callers
Method
_prune_idle
(self, now: float)
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:35
↓ 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:109
↓ 1 callers
Method
_read_connected
Read metadata without changing the client's adopted negotiation state.
fastmcp_slim/fastmcp/server/providers/proxy.py:1346
↓ 1 callers
Method
_read_consent_bindings
Read a pre-upgrade consent binding map from its signed cookie. Kept temporarily so OAuth flows approved before an upgrade can finish.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:345
↓ 1 callers
Function
_read_mcp_resource
Read an MCP resource by URI and return its text content.
fastmcp_slim/fastmcp/cli/apps_dev.py:1130
↓ 1 callers
Function
_read_outstanding_map
Return the surfaced-key → tool-key mapping for a leg.
fastmcp_tasks/fastmcp_tasks/input_store.py:305
↓ 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:825
↓ 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:164
↓ 1 callers
Method
_refresh_jwks_key
Refresh the complete key set while holding the refresh lock.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:398
↓ 1 callers
Method
_register_bundled_extensions
(self: FastMCP, provider: Provider)
fastmcp_slim/fastmcp/server/mixins/extensions.py:175
↓ 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:578
↓ 1 callers
Method
_register_component
Register a single component based on its type.
fastmcp_slim/fastmcp/server/providers/filesystem.py:155
↓ 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:359
↓ 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
_reject_non_finite
(value: JsonValue)
fastmcp_slim/fastmcp/skills/models.py:115
↓ 1 callers
Function
_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 callers
Function
_release_worker_hooks
()
fastmcp_tasks/fastmcp_tasks/extension.py:378
↓ 1 callers
Function
_remaining
()
fastmcp_tasks/fastmcp_tasks/client.py:202
↓ 1 callers
Method
_remember_request
( self, jsonrpc_id: int | str | None, method: str, timestamp: float )
fastmcp_slim/fastmcp/cli/apps_dev_log.py:88
↓ 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:245
↓ 1 callers
Method
_remove_context_session
Remove one matching context hold from a task's pending exits.
fastmcp_slim/fastmcp/client/client.py:1040
↓ 1 callers
Function
_rename_error_locations
Rebuild a parent tool's validation error using the transformed argument names.
fastmcp_slim/fastmcp/tools/tool_transform.py:132
↓ 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
_render_skill_md
(frontmatter: Mapping[str, JsonValue], instructions: str)
fastmcp_slim/fastmcp/skills/skill.py:128
↓ 1 callers
Function
_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 callers
Function
_request_origin
(scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:217
↓ 1 callers
Method
_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 callers
Function
_require_property
Return a copy of *schema* with *property_name* in ``required``.
fastmcp_slim/fastmcp/utilities/json_schema.py:278
↓ 1 callers
Method
_require_route_connected
(self, route: ToolRoute)
fastmcp_slim/fastmcp/client/group.py:232
↓ 1 callers
Method
_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 callers
Method
_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 callers
Function
_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 callers
Method
_requires_live_resource
(self: FastMCP, uri: str)
fastmcp_slim/fastmcp/server/mixins/extensions.py:47
↓ 1 callers
Method
_requires_live_resource
Keep manifest-backed resources coherent with current file bytes.
fastmcp_slim/fastmcp/skills/extension.py:116
↓ 1 callers
Method
_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 callers
Method
_reset
Clear connection state and events so a future connect starts fresh.
fastmcp_slim/fastmcp/client/transports/stdio.py:295
↓ 1 callers
Function
_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 callers
Function
_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 callers
Method
_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 callers
Method
_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 callers
Function
_resolve_docket
Resolve the active Docket from the current context or worker default.
fastmcp_tasks/fastmcp_tasks/input_loop.py:73
↓ 1 callers
Method
_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 callers
Function
_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 callers
Function
_resolve_recursive_types
Bind recursive fields after every class in the conversion has been built.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:427
↓ 1 callers
Function
_resolve_ref
Follow one local `$ref` (`#/$defs/Name`) into `defs`; otherwise return as-is.
fastmcp_slim/fastmcp/server/transforms/search/base.py:120
↓ 1 callers
Function
_resolve_tool
Resolve the Tool a task ran, from its compound key (tools-only surface).
fastmcp_tasks/fastmcp_tasks/handlers.py:189
↓ 1 callers
Method
_responds
(client: FireTVClient)
examples/smart_home/src/smart_home/fire_tv/client.py:82
↓ 1 callers
Method
_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 callers
Function
_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:412
↓ 1 callers
Method
_routes_to_child
(self, uri: str, child_uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:124
↓ 1 callers
Method
_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 callers
Method
_run_body
Validate arguments and execute the body, applying any timeout.
fastmcp_slim/fastmcp/tools/function_tool.py:463
↓ 1 callers
Method
_run_discover_mw
Run discovery through the typed FastMCP middleware hook.
fastmcp_slim/fastmcp/server/low_level.py:324
↓ 1 callers
Method
_run_initialize_mw
( self, fastmcp: FastMCP, ctx: ServerRequestContext, call_next: CallNext,
fastmcp_slim/fastmcp/server/low_level.py:380
↓ 1 callers
Method
_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 callers
Method
_same_origin
(self, request: Request)
fastmcp_slim/fastmcp/cli/apps_dev_security.py:88
↓ 1 callers
Function
_sample
()
scripts/benchmark_http_startup.py:116
↓ 1 callers
Method
_scan
(self)
fastmcp_slim/fastmcp/skills/provider.py:332
← previous
next →
2,301–2,400 of 16,098, ranked by callers