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
Method
_create_enhanced_error_response
Create enhanced error response with content negotiation. Args: request: The original request client_id: The unregiste
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:284
↓ 1 callers
Function
_create_enum
Create enum type from list of values.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:521
↓ 1 callers
Method
_create_error_message
( self, context: MiddlewareContext[Any], start_time: float, error: Exception,
fastmcp_slim/fastmcp/server/middleware/logging.py:89
↓ 1 callers
Method
_create_forwarding_transform
Create schema and forwarding function that encapsulates all transformation logic. This method builds a new JSON schema for the transformed to
fastmcp_slim/fastmcp/tools/tool_transform.py:627
↓ 1 callers
Function
_create_numeric_type
Create numeric type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:499
↓ 1 callers
Method
_create_openapi_resource
Create and register an OpenAPIResource.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:301
↓ 1 callers
Method
_create_openapi_template
Create and register an OpenAPIResourceTemplate.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:336
↓ 1 callers
Method
_create_openapi_tool
Create and register an OpenAPITool.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:249
↓ 1 callers
Method
_create_protected_resource_route
Build a protected resource metadata route that discovers scopes lazily. Mirrors ``create_protected_resource_routes`` (RFC 9728) but resolves
fastmcp_slim/fastmcp/server/auth/providers/descope.py:292
↓ 1 callers
Method
_create_proxy
Create underlying transport, proxy client, and proxy server for a single backend. The ProxyClient is connected via the AsyncExitStack *before
fastmcp_slim/fastmcp/client/transports/config.py:313
↓ 1 callers
Function
_create_pydantic_model
Create Pydantic BaseModel from object schema with additionalProperties.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:843
↓ 1 callers
Function
_create_roots_callback_from_fn
( fn: Callable[[RequestContext[ClientSession, LifespanContextT]], RootsList] | Callable[[RequestContex
fastmcp_slim/fastmcp/client/roots.py:58
↓ 1 callers
Function
_create_roots_callback_from_roots
( roots: RootsList, )
fastmcp_slim/fastmcp/client/roots.py:45
↓ 1 callers
Function
_create_string_type
Create string type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:425
↓ 1 callers
Method
_create_token_verifier
( self, introspection_url: str, client_id: str, client_secret: str | SecretStr
fastmcp_slim/fastmcp/server/auth/providers/propelauth.py:202
↓ 1 callers
Function
_create_token_without_sub
Sign a JWT with no 'sub' claim, to exercise the missing-subject path.
tests/server/auth/test_jwt_provider.py:586
↓ 1 callers
Function
_css
()
examples/apps/media_picker/media_picker_server.py:336
↓ 1 callers
Function
_decode_unverified_claims
Decode a JWT payload without verifying the signature. Used only to read the `iss` claim so we can select the trusted issuer's key before perf
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:522
↓ 1 callers
Function
_default_discovery_tools
()
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:602
↓ 1 callers
Function
_default_title
Derive a display title from a tool name. The MCP spec says clients should fall back to `name` for display when `title` is absent, but some cl
fastmcp_slim/fastmcp/tools/base.py:62
↓ 1 callers
Function
_delete_stored_snapshot
Remove a task's stored snapshot, as a TTL expiry would.
tests/tasks/server/test_snapshot_encryption.py:197
↓ 1 callers
Function
_dereference_resource_template
Return a copy of the template with dereferenced schemas.
fastmcp_slim/fastmcp/server/middleware/dereference.py:58
↓ 1 callers
Function
_dereference_tool
Return a copy of the tool with dereferenced schemas.
fastmcp_slim/fastmcp/server/middleware/dereference.py:44
↓ 1 callers
Function
_detached_request_context
Build a minimal SDK request context for internal handler invocation. Used by ``Context._paginate_list`` when no request context is active (e.g.
fastmcp_slim/fastmcp/server/context.py:1298
↓ 1 callers
Function
_detail
A tool's full description and parameter list, rendered as markdown.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:67
↓ 1 callers
Function
_determine_route_type
Determine the FastMCP component type based on the route and mappings.
fastmcp_slim/fastmcp/server/providers/openapi/routing.py:86
↓ 1 callers
Function
_device_metadata
()
fastmcp_slim/fastmcp/cli/deploy/command.py:74
↓ 1 callers
Method
_discover_jwks_uri
Discover an issuer's JWKS URI via OIDC discovery. Fetches ``{issuer}/.well-known/openid-configuration`` and returns its ``jwks_uri``.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:258
↓ 1 callers
Function
_discover_scopes
(openid_configuration_url: str)
fastmcp_slim/fastmcp/server/auth/providers/descope.py:61
↓ 1 callers
Method
_dispatch_component
Delegate a component request to the interior chain, covering early failures. The interior handler adapter runs the FastMCP chain itself and r
fastmcp_slim/fastmcp/server/low_level.py:202
↓ 1 callers
Method
_dispatch_handler
Builds a chain of handlers for a given message and dispatch phase.
fastmcp_slim/fastmcp/server/middleware/middleware.py:160
↓ 1 callers
Function
_dispatching_tool_call
()
fastmcp_slim/fastmcp/server/dependencies.py:287
↓ 1 callers
Function
_dt
(value: str | None)
scripts/rank_issues.py:250
↓ 1 callers
Function
_dump
JSON for a schema value, which may hold non-JSON objects such as the `datetime.date` that YAML produces for an unquoted `2024-01-01`.
fastmcp_slim/fastmcp/server/transforms/search/base.py:245
↓ 1 callers
Function
_elicit_request
(message: str)
tests/tasks/client/test_transparent_tasks.py:137
↓ 1 callers
Function
_elicit_request
(message: str)
tests/tasks/server/test_reenter_shutdown.py:22
↓ 1 callers
Function
_embedded_ipv4_addresses
Return IPv4 addresses embedded in known IPv6 transition forms.
fastmcp_slim/fastmcp/server/auth/ssrf.py:108
↓ 1 callers
Method
_enforce_application_type
Reject a redirect URI that violates the client's application_type. SEP-837: the web/native distinction is enforced at registration, but a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:240
↓ 1 callers
Method
_enforce_size_limit
Ensure there is room for at least one new entry.
fastmcp_slim/fastmcp/utilities/token_cache.py:166
↓ 1 callers
Function
_ensure_repo
Clone the openapi-directory repo if not already present at the pinned commit. Safe under pytest-xdist: a file lock serializes the rmtree/reclone
tests/utilities/json_schema_type/test_real_world_schemas.py:126
↓ 1 callers
Function
_enter_server_lifespan
Enters the server's lifespan context for FastMCP servers and does nothing for the SDK's own high-level servers.
fastmcp_slim/fastmcp/client/transports/memory.py:119
↓ 1 callers
Method
_entry_ttl
Seconds until the entry's own expiry, so the backend can evict it independently. The SDK gates freshness on `expires_at`, but a shared backen
fastmcp_slim/fastmcp/client/caching.py:212
↓ 1 callers
Function
_error_detail
What an `is_error` result tells the model: text, else structured, else generic. Non-text blocks are never stringified; an image's base64 payload
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:96
↓ 1 callers
Function
_error_result
An ``is_error`` result for a task tool that raised, mirroring foreground. A raised tool error is a *completed* task carrying an error result, nev
fastmcp_tasks/fastmcp_tasks/input_loop.py:105
↓ 1 callers
Function
_example_id
(example: CodeExample)
tests/docs/test_upgrade_guide_examples.py:54
↓ 1 callers
Function
_examples
()
tests/docs/test_upgrade_guide_examples.py:41
↓ 1 callers
Method
_execute
Validate arguments and execute the tool body. Argument validation runs first and raises a bare ``pydantic.ValidationError`` on bad in
fastmcp_slim/fastmcp/tools/function_tool.py:452
↓ 1 callers
Method
_exempt
True if `name` is exempted under either its extracted or its URI-template spelling (hyphens normalize to underscores on extraction, so
fastmcp_slim/fastmcp/resources/security.py:119
↓ 1 callers
Method
_extension_runtime
( self, available: frozenset[str], *, root: FastMCP | None )
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:422
↓ 1 callers
Method
_extension_runtime
Carry each root's restrictions through the live provider tree.
fastmcp_slim/fastmcp/server/providers/aggregate.py:110
↓ 1 callers
Function
_extension_tool_call_scope
Claim pending delegation for this dispatch, isolating independent calls.
fastmcp_slim/fastmcp/server/extensions.py:90
↓ 1 callers
Method
_extensions_lifespan
Enter each registered extension's lifespan, exit them on shutdown. Extension lifespans are entered once per runtime tree, at the root. A
fastmcp_slim/fastmcp/server/mixins/lifespan.py:87
↓ 1 callers
Function
_external_stacklevel
Stack level of the first caller outside the fastmcp package. Public entry points reach `infer_transport` through different wrapper depths (`C
fastmcp_slim/fastmcp/client/transports/inference.py:33
↓ 1 callers
Method
_extract_input_schema_dependencies
Extract only the schema definitions needed for input (parameters and request body). Args: parameters: Route parameters
fastmcp_slim/fastmcp/utilities/openapi/parser.py:620
↓ 1 callers
Method
_extract_output_schema_dependencies
Extract only the schema definitions needed for outputs (responses). Args: responses: Route responses all_sch
fastmcp_slim/fastmcp/utilities/openapi/parser.py:661
↓ 1 callers
Method
_extract_parameters
Extract and resolve parameters from operation and path item.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:247
↓ 1 callers
Method
_extract_public_key_from_jwks
Extract public key from inline JWKS. Args: token: JWT token to extract kid from jwks: JWKS document containing keys
fastmcp_slim/fastmcp/server/auth/cimd.py:653
↓ 1 callers
Method
_extract_request_body
Extract and resolve request body information.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:352
↓ 1 callers
Method
_extract_responses
Extract and resolve response information. Only includes the primary success response for MCP tools.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:455
↓ 1 callers
Function
_extract_schemas
Pull all schema definitions out of an OpenAPI spec.
tests/utilities/json_schema_type/test_real_world_schemas.py:217
↓ 1 callers
Function
_extract_scopes
(data: Mapping[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:30
↓ 1 callers
Method
_extract_scopes
Extract scopes from introspection response. RFC 7662 allows scopes to be returned as either: - A space-separated string in t
fastmcp_slim/fastmcp/server/auth/providers/introspection.py:156
↓ 1 callers
Function
_fetch_app_bridge_bundle
Async wrapper around _fetch_app_bridge_bundle_sync.
fastmcp_slim/fastmcp/cli/apps_dev.py:1374
↓ 1 callers
Method
_fetch_discovery
Perform the actual discovery fetch; caller holds the issuer lock.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:278
↓ 1 callers
Method
_fetch_jwks
Fetch JWKS data, using SSRF-safe or standard fetch based on config.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:445
↓ 1 callers
Method
_fetch_whoami
( self, client: httpx2.AsyncClient, token: str )
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:159
↓ 1 callers
Function
_filter_properties_by_access
Remove readOnly and/or writeOnly properties from schema.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:293
↓ 1 callers
Function
_find_mdx_examples
Find Python code examples in .mdx files. pytest-examples only supports ``.md``; we call its internal ``_extract_code_chunks`` directly so ``.
tests/docs/test_doc_examples.py:33
↓ 1 callers
Function
_find_package_root
Find the root of the package containing this file. Walks up the directory tree until we find a directory without __init__.py, but never above
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:74
↓ 1 callers
Method
_find_server_object
Find the server object in the module. Args: module: The imported Python module file_path: Path to the file (for error
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:109
↓ 1 callers
Function
_find_session_manager
(app: StarletteWithLifespan)
tests/server/http/test_session_idle_timeout.py:33
↓ 1 callers
Method
_find_tool
Find a tool by name from a pre-fetched list.
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:686
↓ 1 callers
Function
_fingerprint
Identity of everything the model is shown about a tool.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:73
↓ 1 callers
Function
_flatten_discriminator_subtypes
Flatten the subtypes named by an OpenAPI ``discriminator.mapping``. A parent schema carrying a discriminator describes its children only thro
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:339
↓ 1 callers
Function
_format_callback_host_for_url
(host: str)
fastmcp_slim/fastmcp/client/auth/oauth.py:44
↓ 1 callers
Function
_format_duration
(seconds: int)
fastmcp_slim/fastmcp/cli/deploy/output.py:75
↓ 1 callers
Function
_format_origin_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:184
↓ 1 callers
Function
_format_params
Format inputSchema properties as a compact signature.
examples/search/client_regex.py:34
↓ 1 callers
Function
_format_params
Format inputSchema properties as a compact signature.
examples/search/client_bm25.py:34
↓ 1 callers
Function
_format_params
Format inputSchema properties as a compact signature.
examples/code_mode/client.py:37
↓ 1 callers
Function
_format_prompt_result
Format PromptResult for tool output. Returns JSON with the messages array. Preserves embedded resources as structured JSON objects.
fastmcp_slim/fastmcp/server/transforms/prompts_as_tools.py:149
↓ 1 callers
Function
_format_result
Format ResourceResult for tool output. Single text content is returned as-is. Single binary content is base64-encoded. Multiple contents are
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:156
↓ 1 callers
Function
_format_schema_for_help
Format a JSON schema for display in help text.
fastmcp_slim/fastmcp/cli/generate.py:107
↓ 1 callers
Function
_format_uptime
()
examples/apps/system_monitor/system_monitor_server.py:93
↓ 1 callers
Function
_forward_ctx
Fold middleware edits to the *message* back into the SDK context. The outer pass hands middleware a *copy* of the raw params (see ``_raw_mess
fastmcp_slim/fastmcp/server/low_level.py:75
↓ 1 callers
Function
_forwardable_server_meta
Backend result metadata that may cross onto the frontend connection.
fastmcp_slim/fastmcp/server/providers/proxy.py:193
↓ 1 callers
Method
_function_has_kwargs
Check if function accepts **kwargs. This determines whether a custom function can accept arbitrary keyword arguments, which affects h
fastmcp_slim/fastmcp/tools/tool_transform.py:927
↓ 1 callers
Function
_gate_transaction_reads
Hold every transaction read open until the gate releases. Parks concurrent consent renders in the window where each has read the transaction
tests/server/auth/test_oauth_consent_flow.py:201
↓ 1 callers
Method
_generate_default_name
Generate a default name from the route.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:212
↓ 1 callers
Method
_generate_manifest
Generate JSON manifest for the skill.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:60
↓ 1 callers
Method
_generate_pkce_pair
Generate PKCE code verifier and challenge pair. Returns: Tuple of (code_verifier, code_challenge) using S256 method
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:872
↓ 1 callers
Function
_geocode
Geocode an address using OpenStreetMap Nominatim (free, no key).
examples/apps/map/map_server.py:33
↓ 1 callers
Function
_get
(d: dict[str, Any], snake: str, camel: str)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:102
↓ 1 callers
Method
_get_callback
( self, request: httpx2.Request )
tests/utilities/httpx2_mock.py:141
↓ 1 callers
Method
_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:498
↓ 1 callers
Method
_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:601
↓ 1 callers
Method
_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:735
↓ 1 callers
Method
_get_client
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1490
↓ 1 callers
Method
_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:250
↓ 1 callers
Method
_get_component_identity
Get the identity (type, name/uri) for a component. Returns: A tuple of (component_type, logical_name) where logical_name is
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:113
← previous
next →
1,601–1,700 of 13,374, ranked by callers