MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,976 in github.com/PrefectHQ/fastmcp

↓ 8 callersMethodnew
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1987
↓ 8 callersFunctionref_target_name
Return the definition name a local JSON Pointer ``$ref`` addresses. The name is the first pointer segment after one of *roots* (``$defs`` by
fastmcp_slim/fastmcp/utilities/json_schema.py:105
↓ 8 callersMethodregister_resources
Registers all methods marked with @mcp_resource with the FastMCP server. A method whose URI contains `{param}` placeholders is registered as
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:225
↓ 8 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:212
↓ 8 callersMethodrun_http_async
Run the server using HTTP transport. Args: transport: Transport protocol to use - "http" (default), "streamable-http", or "sse"
fastmcp_slim/fastmcp/server/mixins/transport.py:253
↓ 8 callersMethodschemas
(self)
tests/server/providers/openapi/test_write_only_responses.py:183
↓ 8 callersFunctionserve
( provider: SkillCatalogProvider, middleware: list[Middleware] | None = None )
tests/skills/test_provider.py:33
↓ 8 callersFunctionserver_env
Keep the server's own logs, warnings, and stderr out of the consumer's output.
tests/downstream/_harness.py:71
↓ 8 callersFunctionstdio_command
()
tests/downstream/_harness.py:81
↓ 8 callersFunctiontransform_context_annotations
Transform injected-by-type params into Dependency-defaulted params. Transforms ALL params typed as Context (into ``= CurrentContext()``) and as
fastmcp_slim/fastmcp/server/dependencies.py:342
↓ 8 callersMethodunwrap
(self)
fastmcp_slim/fastmcp/server/middleware/caching.py:162
↓ 8 callersMethodupdate_default_scopes
Update the default scopes advertised to clients and used for DCR/CIMD fallback. Use this method when the available scope set is determined af
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:799
↓ 8 callersFunctionupdate_task
Call the `tasks/update` handler within the given auth scope.
tests/tasks/task_helpers.py:151
↓ 8 callersFunctionvalidate_elicitation_json_schema
Validate that a JSON schema follows MCP elicitation requirements. This ensures the schema is compatible with MCP elicitation requirements: -
fastmcp_slim/fastmcp/server/elicitation.py:433
↓ 8 callersMethodwrap
(cls, value: ToolResult)
fastmcp_slim/fastmcp/server/middleware/caching.py:153
↓ 7 callersFunction$
(id)
status-site/operations.js:1
↓ 7 callersMethod__init__
( self, client_factory: ClientFactoryT, *, identity: ProxyIdentity = "proxy",
fastmcp_slim/fastmcp/server/providers/proxy.py:364
↓ 7 callersMethod_add_component
Add a component to unified storage. Args: component: The component to add. Returns: The component that was a
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:178
↓ 7 callersFunction_b64_decoded_size
Return the exact decoded byte-length of a base64 string without decoding it.
fastmcp_slim/fastmcp/apps/file_upload.py:78
↓ 7 callersFunction_build_uvx_command
Build a uvx command for running a FastMCP server. Goose requires uvx (not uv run) as the command. The uvx format is: uvx [--with pkg] [--
fastmcp_slim/fastmcp/cli/install/goose.py:58
↓ 7 callersFunction_cached_server
An SDK MCPServer whose tools/list carries a positive ttlMs hint at 2026.
tests/client/client/test_response_cache.py:28
↓ 7 callersMethod_create_before_message
( self, context: MiddlewareContext[Any] )
fastmcp_slim/fastmcp/server/middleware/logging.py:56
↓ 7 callersMethod_dispatch_component_middleware
Run the interior middleware chain for a component operation. This is the dispatch site for the component methods (``tools/call``, ``t
fastmcp_slim/fastmcp/server/server.py:744
↓ 7 callersFunction_elicited_field
The accepted value of *field* from the elicitation answered under *key*.
tests/conformance/server.py:428
↓ 7 callersFunction_fetch_latest_version
Fetch the latest version from PyPI. Args: include_prereleases: If True, include pre-release versions (alpha, beta, rc). Returns:
fastmcp_slim/fastmcp/utilities/version_check.py:67
↓ 7 callersFunction_get_npx_command
Get the correct npx command for the current platform.
fastmcp_slim/fastmcp/cli/cli.py:50
↓ 7 callersMethod_get_verification_token
Get the token to verify from the upstream token set. When verify_id_token is enabled, returns the id_token from the upstream token re
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:543
↓ 7 callersMethod_log_error
Log error with appropriate detail level.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:59
↓ 7 callersMethod_make_tool
( self, name: str = "my_tool", properties: dict[str, Any] | None = None, requi
tests/cli/test_client_commands.py:309
↓ 7 callersFunction_prune_param
Return a new schema with *param* removed from `properties`, `required`, and (if no longer referenced) `$defs`.
fastmcp_slim/fastmcp/utilities/json_schema.py:585
↓ 7 callersFunction_resolve_tool_param_flags
Resolve CLI flags for tool parameters, disambiguating colliding names. Returns a mapping of ``prop_name -> (cli_flag, explicit_name)`` where:
fastmcp_slim/fastmcp/cli/generate.py:212
↓ 7 callersFunction_schema_type_label
Return a human-readable type label for a property schema.
fastmcp_slim/fastmcp/cli/generate.py:662
↓ 7 callersMethod_time_operation
Helper method to time any operation.
fastmcp_slim/fastmcp/server/middleware/timing.py:91
↓ 7 callersMethodauthorize
Start OAuth transaction and route through consent interstitial. Flow: 1. Validate client's resource matches server's resource URL (se
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1168
↓ 7 callersFunctionbuild_cache_hints
Build the per-method `CacheHint` map for the SDK low-level server. `cache_ttl` is in seconds and is converted to the wire's milliseconds. When
fastmcp_slim/fastmcp/server/caching.py:29
↓ 7 callersFunctionbuild_id_server
Server whose cart tools take an explicit `session_id: SessionId`.
tests/server/test_session_provider.py:90
↓ 7 callersFunctioncall_sync_fn_in_threadpool
Call a sync function in a threadpool to avoid blocking the event loop. Uses anyio.to_thread.run_sync which properly propagates contextvars, m
fastmcp_slim/fastmcp/utilities/async_utils.py:26
↓ 7 callersFunctioncancel_task
Call the `tasks/cancel` handler within the given auth scope.
tests/tasks/task_helpers.py:163
↓ 7 callersFunctionclient_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` capability the client declared, read from ``se
fastmcp_slim/fastmcp/server/low_level.py:111
↓ 7 callersMethodclose
(self)
examples/smart_home/src/smart_home/fire_tv/client.py:77
↓ 7 callersFunctioncombine_lifespans
Combine multiple lifespans into a single lifespan. Useful when mounting FastMCP into FastAPI and you need to run both your app's lifespan and
fastmcp_slim/fastmcp/utilities/lifespan.py:12
↓ 7 callersFunctioncombined
(app: AppT)
fastmcp_slim/fastmcp/utilities/lifespan.py:47
↓ 7 callersFunctioncreate_jwt
Create a test JWT token.
tests/utilities/test_auth.py:15
↓ 7 callersFunctioncreate_oauth_callback_server
Create an OAuth callback server. Args: port: The port to run the server on callback_path: The path to listen for OAuth redir
fastmcp_slim/fastmcp/client/oauth_callback.py:114
↓ 7 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_openapi_features.py:26
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_resources.py:688
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_resources.py:897
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_prompts.py:423
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/local_provider_tools/test_tags.py:42
↓ 7 callersFunctiondelegate_span
Create an INTERNAL span for provider delegation. Used by FastMCPProvider when delegating to mounted servers. Automatically records any except
fastmcp_slim/fastmcp/server/telemetry.py:367
↓ 7 callersMethoddisconnect
(self)
fastmcp_slim/fastmcp/client/transports/stdio.py:233
↓ 7 callersMethodfinish
(self)
tests/downstream/_harness.py:225
↓ 7 callersFunctionform
(token: str, include_client_id: bool = False)
tests/server/auth/test_private_key_jwt_auth.py:71
↓ 7 callersFunctiongenerate_cursor_deeplink
Generate a Cursor deeplink for installing the MCP server. Args: server_name: Name of the server server_config: Server configurati
fastmcp_slim/fastmcp/cli/install/cursor.py:22
↓ 7 callersMethodget_calls
Get all recorded calls for a specific method or hook. Args: method: The method to filter by (e.g. "tools/list")
tests/server/middleware/test_middleware.py:48
↓ 7 callersMethodget_client
Fetch CIMD document and create synthetic OAuth client. Args: client_id_url: HTTPS URL pointing to CIMD document Returns:
fastmcp_slim/fastmcp/server/auth/cimd.py:769
↓ 7 callersFunctionget_fastmcp_meta
Extract FastMCP metadata from a function, handling bound methods and wrappers.
fastmcp_slim/fastmcp/decorators.py:29
↓ 7 callersMethodget_resource
(uri: str, version=None)
tests/server/providers/test_transforming_provider.py:189
↓ 7 callersFunctionget_skill_manifest
Get the manifest for a specific skill. Args: client: Connected FastMCP client skill_name: Name of the skill Returns:
fastmcp_slim/fastmcp/utilities/skills.py:110
↓ 7 callersMethodget_token_expiry
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:169
↓ 7 callersFunctioninstall_goose
Install FastMCP server in Goose via deeplink. Args: file: Path to the server file. server_object: Optional server object name (fo
fastmcp_slim/fastmcp/cli/install/goose.py:85
↓ 7 callersFunctionis_docket_available
Check if a compatible pydocket (>= 0.19.0) is installed and importable. Three things have to be true for fastmcp's task features to work: 1
fastmcp_slim/fastmcp/server/dependencies.py:310
↓ 7 callersMethodlist_resource_templates
List resource templates with all transforms applied. Components may be marked as disabled but are NOT filtered here.
fastmcp_slim/fastmcp/server/providers/base.py:376
↓ 7 callersFunctionnested_union_schema
Each level is a union of three references to the level below.
tests/utilities/test_json_schema_expansion.py:14
↓ 7 callersMethodnew
Create a new client instance with the same configuration but fresh session state. This creates a new client with the same transport, handlers
fastmcp_slim/fastmcp/client/client.py:788
↓ 7 callersMethodon_message
(self, context: MiddlewareContext, call_next: CallNext)
tests/server/middleware/test_message_visibility.py:32
↓ 7 callersFunctionparse_env_var
Parse environment variable string in format KEY=VALUE.
fastmcp_slim/fastmcp/cli/install/shared.py:166
↓ 7 callersFunctionpr
(**overrides)
tests/test_public_triage.py:41
↓ 7 callersFunctionpublic_result_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/utilities/components.py:39
↓ 7 callersFunctionrecord
(operation: str, ctx: Context)
tests/server/providers/proxy/test_proxy_request_meta.py:49
↓ 7 callersMethodreplay_events_after
Replay events that occurred after the specified event ID. Args: last_event_id: The ID of the last event the client received
fastmcp_slim/fastmcp/server/event_store.py:170
↓ 7 callersFunctionreset_transport
Reset transport to previous value.
fastmcp_slim/fastmcp/server/context.py:104
↓ 7 callersFunctionrestrict_tag
Require scopes when the accessed component has a specific tag.
fastmcp_slim/fastmcp/utilities/authorization.py:197
↓ 7 callersFunctionresult_value
The `"result"` field of a direct `Tool.run()` call's structured content. `structured_content` is `dict | None` on `ToolResult` (a bare function t
tests/server/test_session_provider.py:39
↓ 7 callersFunctionrun
(command: list[str], **kwargs: object)
tests/cli/deploy/test_credentials.py:242
↓ 7 callersFunctionrun_asgi_lifespan
Run an ASGI application's lifespan, driving the protocol as a real server does. The application's lifespan runs inside a dedicated task for the w
fastmcp_slim/fastmcp/utilities/asgi_transport.py:224
↓ 7 callersMethodset_message
Update the progress status message.
fastmcp_slim/fastmcp/server/dependencies.py:1366
↓ 7 callersFunctionset_transport
Set the current transport type. Returns token for reset.
fastmcp_slim/fastmcp/server/context.py:97
↓ 7 callersFunctionskills_client
(server: FastMCP)
tests/skills/test_directory_provider.py:25
↓ 7 callersFunctionsuppress_fastmcp_telemetry
Suppress FastMCP's own spans without disabling trace propagation. Scoped equivalent of `telemetry_mode="propagation_only"`, for callers that
fastmcp_slim/fastmcp/telemetry.py:109
↓ 7 callersFunctionsync_skills
Download all available skills from a server. Args: client: Connected FastMCP client target_dir: Directory where skill folders wil
fastmcp_slim/fastmcp/utilities/skills.py:264
↓ 7 callersMethodto_mcp_resource_contents
Convert to MCP resource contents type. Args: uri: The URI of the resource (required by MCP types) Returns: T
fastmcp_slim/fastmcp/resources/base.py:90
↓ 7 callersMethodto_mcp_result
( self, )
fastmcp_slim/fastmcp/tools/base.py:231
↓ 7 callersMethodto_transport
(self)
tests/test_mcp_config.py:102
↓ 7 callersMethodverify_token
Verify a bearer token and return access info if valid. This method implements the TokenVerifier protocol by delegating to ou
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:681
↓ 7 callersMethodverify_token
Verify a Hugging Face OAuth token using the userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:75
↓ 7 callersFunctionwait_for_process_exit
Poll until the given pid is gone, failing clearly if it never exits. The subprocesses under test self-terminate within a fraction of a second,
tests/client/test_stdio.py:66
↓ 6 callersMethod__init__
Initialize a Stdio transport. Args: command: The command to run (e.g., "python", "node", "uvx") args: The ar
fastmcp_slim/fastmcp/client/transports/stdio.py:33
↓ 6 callersMethod__init__
( self, reload: bool = False, supporting_files: Literal["template", "resources"] = "te
fastmcp_slim/fastmcp/server/providers/skills/vendor_providers.py:54
↓ 6 callersMethod_cached_fetch
Serve a cacheable request through the response cache. Mirrors the SDK Client's list caching while also supporting cacheable extension
fastmcp_slim/fastmcp/client/client.py:1335
↓ 6 callersFunction_claude_code_config
Build a minimal ~/.claude.json structure.
tests/cli/test_discovery.py:282
↓ 6 callersFunction_decode
(value: Any)
fastmcp_tasks/fastmcp_tasks/input_store.py:127
↓ 6 callersFunction_derive_server_name
Derive a human-friendly name from a server spec.
fastmcp_slim/fastmcp/cli/generate.py:950
↓ 6 callersMethod_exists
Whether a session record exists for this `(principal, session_id)`. True only once `create_session` has written the creation marker. A raw
fastmcp_slim/fastmcp/server/sessions.py:237
↓ 6 callersFunction_find_session_manager
(app: StarletteWithLifespan)
tests/server/http/test_session_idle_timeout.py:37
↓ 6 callersMethod_forward_authorization_server_metadata
Return the upstream authorization server metadata, cached per provider. The first URL in ``metadata_urls`` that answers 2xx with a JSON body
fastmcp_slim/fastmcp/server/auth/auth.py:669
↓ 6 callersFunction_get_auth_context
Get auth context for the current request. Returns a tuple of (skip_auth, token) where: - skip_auth=True means auth checks should be skipped (
fastmcp_slim/fastmcp/server/server.py:282
↓ 6 callersFunction_get_auth_partition_key
Return a stable, hashed identifier for the current access token. Cache entries are partitioned by access token so that responses filtered by
fastmcp_slim/fastmcp/server/middleware/caching.py:676
↓ 6 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:375
↓ 6 callersMethod_get_visibility_rules
Load visibility rule dicts from session state.
fastmcp_slim/fastmcp/server/context.py:1231
← previousnext →501–600 of 15,976, ranked by callers