MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

↓ 3 callersMethodexchange_refresh_token
Exchange FastMCP refresh token for new FastMCP access token. Implements two-tier refresh: 1. Verify FastMCP refresh token 2.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1980
↓ 3 callersFunctionextract_exploded_query_params
Extract query parameter names declared with the RFC 6570 explode modifier. `{?tags*}` (or `{&tags*}`) marks `tags` as repeatable — `?tags=a&tags=
fastmcp_slim/fastmcp/resources/template.py:97
↓ 3 callersFunctionfastmcp_spans
Names of spans emitted by FastMCP's own instrumentation scope.
tests/telemetry/test_interop.py:43
↓ 3 callersFunctionformat_mcp_info
Format server info as standard MCP protocol JSON. Uses Client to get the standard MCP protocol format with camelCase fields. Includes version
fastmcp_slim/fastmcp/utilities/inspect.py:467
↓ 3 callersFunctionforward_raw
Forward directly to parent tool without transformation. This function bypasses all argument transformation and validation, calling the parent
fastmcp_slim/fastmcp/tools/tool_transform.py:191
↓ 3 callersMethodfrom_config
Create one independent client for each configured server. A server entry may include a FastMCP-specific ``mode`` field. It applies on
fastmcp_slim/fastmcp/client/group.py:88
↓ 3 callersMethodfrom_fastapi
Create a FastMCP server from a FastAPI application. Args: app: FastAPI application instance name: Name for t
fastmcp_slim/fastmcp/server/server.py:2822
↓ 3 callersMethodfrom_file
Load configuration from a JSON file. Relative `source.path` and `environment.requirements` values are anchored to the configuration f
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:223
↓ 3 callersMethodfrom_mcp_result
Wrap a protocol result while preserving its exact wire representation.
fastmcp_slim/fastmcp/tools/base.py:215
↓ 3 callersFunctiongc_collect_harder
()
tests/client/test_stdio.py:35
↓ 3 callersFunctiongenerated_app
(server: FastMCP)
tests/cli/test_generate_cli_empty_arrays.py:12
↓ 3 callersMethodget_error_stats
Get error statistics for monitoring. The map is capped at 1000 entries. Errors that would exceed the cap are counted together under `
fastmcp_slim/fastmcp/server/middleware/error_handling.py:134
↓ 3 callersFunctionget_function_type_hints
Resolve a function's type hints, keeping `Annotated` metadata.
fastmcp_slim/fastmcp/utilities/types.py:52
↓ 3 callersMethodget_resource
( self, uri: str, call_next: GetResourceNext, *, version: VersionSpec
tests/server/auth/test_authorization.py:1516
↓ 3 callersMethodget_span_attributes
(self)
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:123
↓ 3 callersMethodget_tool
Get tool by transformed name.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:102
↓ 3 callersMethodget_tool
( self, name: str, call_next: GetToolNext, *, version: VersionSpec | None = None )
tests/server/providers/test_catalog_tool_names.py:21
↓ 3 callersMethodget_tool
( self, name: str, call_next: GetToolNext, *, version: VersionSpec | None = None )
tests/server/transforms/test_catalog.py:46
↓ 3 callersFunctionget_visibility_rules
Load visibility rule dicts from session state. Returns no rules when there is no session or no client identity to scope them to.
fastmcp_slim/fastmcp/server/transforms/visibility.py:327
↓ 3 callersFunctiongh
(path: str, *, paginate: bool = False, timeout: int = 60)
scripts/triage_floor_feed.py:316
↓ 3 callersFunctiongh_json
(*args: str)
scripts/maintenance_status.py:147
↓ 3 callersFunctionhandle_elicit_accept
Handle an accepted elicitation response. Args: config: The elicitation configuration from parse_elicit_response_type content: The
fastmcp_slim/fastmcp/server/elicitation.py:361
↓ 3 callersFunctionhandler
(request: httpx2.Request)
tests/cli/deploy/test_authentication.py:44
↓ 3 callersFunctionident
(kind: str, name: str)
tests/pbt/test_middleware.py:107
↓ 3 callersFunctioninspector
Run an MCP server with the MCP Inspector for development. Args: server_spec: Python file to run, optionally with :object suffix, or None
fastmcp_slim/fastmcp/cli/cli.py:134
↓ 3 callersFunctioninstall_cursor_workspace
Install FastMCP server to workspace-specific Cursor configuration. Args: file: Path to the server file server_object: Optional se
fastmcp_slim/fastmcp/cli/install/cursor.py:59
↓ 3 callersFunctioninstall_stdio
Generate the stdio command for running a FastMCP server. Args: file: Path to the server file server_object: Optional server objec
fastmcp_slim/fastmcp/cli/install/stdio.py:21
↓ 3 callersFunctionis_bot
(user: dict | None)
scripts/triage_floor_feed.py:38
↓ 3 callersFunctionis_human
(actor: dict[str, Any] | None)
scripts/release_contributor_credit.py:40
↓ 3 callersFunctionis_timeout_error
Return whether an exception is an httpx2 or legacy-httpx timeout.
fastmcp_slim/fastmcp/utilities/exceptions.py:34
↓ 3 callersFunctionkind
(item: dict)
scripts/backlog_status.py:64
↓ 3 callersFunctionknown_divergence
Name a known divergence, so the run still stops on anything new. A list param holding `[""]` reads back as `[]`: RFC 6570 expands both to an
tests/pbt/test_uri_template.py:18
↓ 3 callersMethodlifespan_context
Access the server's lifespan context. Returns the context dict yielded by *this* server's lifespan function. For a mounted child this
fastmcp_slim/fastmcp/server/context.py:431
↓ 3 callersFunctionlist_components
()
fastmcp_slim/fastmcp/contrib/mcp_mixin/example.py:43
↓ 3 callersFunctionlist_only_tool
(spec: dict[str, Any])
tests/server/providers/openapi/test_component_property_refs.py:59
↓ 3 callersMethodlist_tools
Mark tools by visibility state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:210
↓ 3 callersFunctionlisted_files
(client: Client, list_files: str)
tests/server/test_session_scope.py:51
↓ 3 callersFunctionload
()
status-site/pbt.js:495
↓ 3 callersMethodlog_bridge
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:172
↓ 3 callersMethodlog_request
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:111
↓ 3 callersMethodlog_response
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:127
↓ 3 callersFunctionlogout
Revoke the current Horizon key and remove the local credential.
fastmcp_slim/fastmcp/cli/deploy/command.py:353
↓ 3 callersFunctionmake_client
(proxy)
tests/server/auth/oauth_proxy/test_nonpositive_expires_in.py:33
↓ 3 callersFunctionmake_gateway
( upstream: FastMCP, *, backend_mode: str, identity: Literal["proxy", "upstream"] = "proxy",
tests/server/providers/proxy/test_server_metadata.py:148
↓ 3 callersFunctionmake_issue
(author_association: str = "NONE")
tests/scripts/test_auto_close_needs_mre.py:8
↓ 3 callersFunctionmoduleHash
(name)
status-site/pbt.js:18
↓ 3 callersFunctionnames_spec
(*routes: tuple[str, str])
tests/server/providers/openapi/test_server.py:367
↓ 3 callersMethodnotify_resource_updated
Tell clients listening to `uri` that the resource changed. Matches `uri` exactly against the URIs each stream subscribed to, so pass
fastmcp_slim/fastmcp/server/server.py:2146
↓ 3 callersMethodnotify_resources_changed
Tell listening clients that this server's resource list changed. See `notify_tools_changed` for delivery semantics.
fastmcp_slim/fastmcp/server/server.py:2139
↓ 3 callersFunctionnow_us
()
examples/events/jetstream.py:66
↓ 3 callersFunctionnumber
(value)
status-site/operations.js:9
↓ 3 callersMethodon_request
Apply sliding window rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:344
↓ 3 callersFunctionopt_in_meta
The per-request `_meta` block that opts the tasks extension in.
tests/tasks/task_helpers.py:51
↓ 3 callersFunctionorder_item_schema
(children: dict[str, Any], title: str = TITLE)
tests/utilities/json_schema_type/test_generated_classes.py:26
↓ 3 callersFunctionparse_verify
Interpret the --verify value as a boolean toggle or a CA bundle path.
fastmcp_remote/fastmcp_remote/cli.py:93
↓ 3 callersFunctionpatch_client
(server: FastMCP)
tests/cli/test_list_skills.py:21
↓ 3 callersFunctionpct
(n)
status-site/pbt.js:32
↓ 3 callersMethodping
()
tests/server/middleware/test_dereference.py:165
↓ 3 callersFunctionpost_poll
( http: TestClient, name: str, mcp_name: str | None, method: str = "events/poll" )
tests/events/test_extension.py:640
↓ 3 callersFunctionpost_prefect
(post, payload: dict, token: str | None)
tests/test_floor_receiver.py:304
↓ 3 callersFunctionprefab_available
Return whether Prefab UI is installed without importing it.
fastmcp_slim/fastmcp/utilities/prefab.py:12
↓ 3 callersFunctionprovider
()
tests/server/auth/providers/test_metadata_forwarding_cache.py:53
↓ 3 callersFunctionquote_windows_batch_argument
Quote one argument for a command line that runs a `.cmd` or `.bat` file. The result reaches the program that the batch file launches as the o
fastmcp_slim/fastmcp/cli/install/shared.py:80
↓ 3 callersFunctionread_bytes
(client: Client, uri: str)
tests/skills/test_provider.py:45
↓ 3 callersFunctionrecord_span_exception
Record an exception and error status on a span.
fastmcp_slim/fastmcp/server/telemetry.py:242
↓ 3 callersFunctionrecover_client_pid
Reconnect `client` and return the pid of the freshly spawned subprocess.
tests/client/test_stdio.py:116
↓ 3 callersFunctionregister_task_session
Register a session for in-process background task access. Called automatically when a task is submitted to Docket. The session is stored as a
fastmcp_tasks/fastmcp_tasks/context.py:414
↓ 3 callersMethodrelease
(self, client_id: str)
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:72
↓ 3 callersFunctionrelease_update_lock
Release the per-task update lock.
fastmcp_tasks/fastmcp_tasks/input_store.py:524
↓ 3 callersFunctionrender
(ctx: Context, prefix: str)
tests/server/transforms/test_input_required.py:54
↓ 3 callersMethodreply
(self, request_id: Any, result: dict[str, Any])
tests/client/minimal_stdio_server.py:96
↓ 3 callersFunctionresolve_docket_settings
The effective Docket settings for `server`'s registered tasks extension. Reads the *registered* `TasksExtension`'s resolved settings, not the
fastmcp_tasks/fastmcp_tasks/worker_cli.py:30
↓ 3 callersMethodresolve_security
Resolve the effective security policy for this template. A per-component ``security`` overrides the server default. ``INHERIT_SECURIT
fastmcp_slim/fastmcp/resources/template.py:462
↓ 3 callersFunctionresolve_ui_mime_type
Return the appropriate MIME type for a resource URI. For ``ui://`` scheme resources, defaults to ``UI_MIME_TYPE`` when no explicit MIME type
fastmcp_slim/fastmcp/utilities/mime.py:10
↓ 3 callersFunctionresolve_within
Resolve `relative` under `base`, rejecting paths that escape `base`. `base` must already be resolved. The containment check uses it as given, so
fastmcp_slim/fastmcp/server/providers/skills/_common.py:124
↓ 3 callersMethodrestrict_scope
Intersect a scope string with the server's valid_scopes allowlist. CIMD documents are client-controlled, so a declared scope must never
fastmcp_slim/fastmcp/server/auth/cimd.py:764
↓ 3 callersMethodrevoke_current_api_key
(self)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:326
↓ 3 callersFunctionrewrite_payload_tool_names
Re-address a payload's tool references to this server's own names. Mutates in place and returns the payload. A reference this server cannot
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:115
↓ 3 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:148
↓ 3 callersFunctionrun_auth_checks_with_shortfall
Run auth checks with AND logic, classifying the denial cause. Returns ``(authorized, missing_scopes)``. ``missing_scopes`` names every scope
fastmcp_slim/fastmcp/utilities/authorization.py:253
↓ 3 callersMethodrun_stdio_async
Run the server using stdio transport. Args: show_banner: Whether to display the server banner log_level: Log level fo
fastmcp_slim/fastmcp/server/mixins/transport.py:214
↓ 3 callersFunctionsafe_create_model
Create a Pydantic model whose field names come from untrusted input. Each property name only ever becomes a field. A reserved name is stored
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1292
↓ 3 callersMethodsave
(self, configuration: HorizonConfiguration)
fastmcp_slim/fastmcp/cli/deploy/configuration.py:49
↓ 3 callersMethodsave_for_origin
Save a key only while its issuing Horizon origin is active.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:84
↓ 3 callersFunctionsave_visibility_rules
Save visibility rule dicts to session state and send notifications. Args: context: The context to save rules for. rules: The visi
fastmcp_slim/fastmcp/server/transforms/visibility.py:343
↓ 3 callersFunctionscope_requirements
Scopes a check list requires but the token lacks, without running it. Returns ``None`` when the list contains any opaque (non-scope) check. Such
fastmcp_slim/fastmcp/utilities/authorization.py:202
↓ 3 callersFunctionseam_span
Open the per-request SERVER span at the FastMCP middleware seam. The span is named after the method and carries the base MCP attributes (`mcp
fastmcp_slim/fastmcp/server/telemetry.py:251
↓ 3 callersFunctionsecret_bytes
The key a `whsec_` secret encodes. Raises: ValueError: If `secret` is not `whsec_` and base64 of 24 to 64 bytes.
fastmcp_events/fastmcp_events/webhooks.py:38
↓ 3 callersMethodsend
( kind: str, *, event_meta: dict[str, Any] | None = None, **fields: Any )
fastmcp_events/fastmcp_events/extension.py:581
↓ 3 callersMethodsend_response
(message: Message)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:172
↓ 3 callersFunctionserver_for
(responses: dict[str, Any], *, validate_output: bool = True)
tests/server/providers/openapi/test_bodiless_success_responses.py:59
↓ 3 callersMethodsession
Get the current active session. Raises RuntimeError if not connected.
fastmcp_slim/fastmcp/client/client.py:683
↓ 3 callersMethodset_elicitation_callback
Set the elicitation callback for the client. A connected session that was opened with an elicitation handler uses the new one immedia
fastmcp_slim/fastmcp/client/client.py:790
↓ 3 callersMethodset_roots
Set the roots for the client. This does not automatically call `send_roots_list_changed`. A connected session that was opened with roots answ
fastmcp_slim/fastmcp/client/client.py:762
↓ 3 callersFunctionshare
(m)
status-site/pbt.js:31
↓ 3 callersFunctionshow
(index)
status-site/app.js:233
↓ 3 callersFunctionsigned_headers
The headers one delivery carries, signed now.
fastmcp_events/fastmcp_events/webhooks.py:62
↓ 3 callersFunctionskills_client
(provider: SkillManifestProvider)
tests/skills/test_manifest_provider.py:37
↓ 3 callersMethodsource
Run an async function that listens to an outside stream and logs it. For an upstream that pushes and keeps no history you can read from a
fastmcp_events/fastmcp_events/extension.py:293
↓ 3 callersMethodsource_position
The upstream position `source` last saved, if any.
fastmcp_events/fastmcp_events/log.py:74
← previousnext →1,401–1,500 of 17,519, ranked by callers