MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

↓ 3 callersFunctionemit_device_challenge
Show a device challenge before polling starts.
fastmcp_slim/fastmcp/cli/deploy/output.py:84
↓ 3 callersFunctionemit_environment_logout
Explain why logout cannot change an environment credential.
fastmcp_slim/fastmcp/cli/deploy/output.py:182
↓ 3 callersFunctionemit_logout
Show a successful local logout result.
fastmcp_slim/fastmcp/cli/deploy/output.py:216
↓ 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:1776
↓ 3 callersMethodexchange_refresh_token
( self, client: OAuthClientInformationFull, refresh_token: RefreshToken, scope
tests/server/test_auth_integration.py:126
↓ 3 callersFunctionfastmcp_spans
Names of spans emitted by FastMCP's own instrumentation scope.
tests/telemetry/test_interop.py:43
↓ 3 callersMethodfinish
(self)
tests/downstream/_harness.py:225
↓ 3 callersMethodfn
()
tests/prompts/test_prompt.py:17
↓ 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:77
↓ 3 callersFunctionforward_uri
Build the URI a forwarding layer (mount or proxy) sends to the server behind it. The path is expanded from `uri_template` with `params`, but the
fastmcp_slim/fastmcp/resources/template.py:340
↓ 3 callersMethodfrom_file
Load configuration from a JSON file. Args: file_path: Path to the configuration file Returns: MCPServerConfi
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:223
↓ 3 callersFunctionget_auth_span_attributes
Get auth attributes for the current request, if authenticated.
fastmcp_slim/fastmcp/server/telemetry.py:43
↓ 3 callersFunctionget_dataclass_field
(type: type, field_name: str)
tests/utilities/json_schema_type/test_advanced.py:16
↓ 3 callersFunctionget_http_headers
Extract headers from the current HTTP request if available. Never raises an exception, even if there is no active HTTP request (in which case
fastmcp_slim/fastmcp/server/dependencies.py:600
↓ 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:75
↓ 3 callersFunctionget_visibility_rules
Load visibility rule dicts from session state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:314
↓ 3 callersFunctiongh_json
(*args: str)
scripts/maintenance_status.py:132
↓ 3 callersFunctionhandler
(request: httpx2.Request)
tests/cli/deploy/test_authentication.py:44
↓ 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_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 callersMethodlist_prompts_mcp
Send a prompts/list request and return the complete MCP protocol result. Args: cursor: Optional pagination cursor from a previous
fastmcp_slim/fastmcp/client/mixins/prompts.py:28
↓ 3 callersMethodlist_resource_templates_mcp
Send a resources/listResourceTemplates request and return the complete MCP protocol result. Args: cursor: Optional pagination cur
fastmcp_slim/fastmcp/client/mixins/resources.py:119
↓ 3 callersMethodlist_resources
Retrieve all resources available on the server. This method automatically fetches all pages if the server paginates results, returnin
fastmcp_slim/fastmcp/client/mixins/resources.py:72
↓ 3 callersMethodlist_resources_mcp
Send a resources/list request and return the complete MCP protocol result. Args: cursor: Optional pagination cursor from a previo
fastmcp_slim/fastmcp/client/mixins/resources.py:28
↓ 3 callersMethodlist_tools
Mark tools by visibility state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:210
↓ 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:145
↓ 3 callersFunctionmake_issue
(author_association: str = "NONE")
tests/scripts/test_auto_close_needs_mre.py:8
↓ 3 callersFunctionnumber
(value)
status-site/app.js:9
↓ 3 callersMethodon_message
Handle errors for all messages.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:109
↓ 3 callersMethodon_request
Apply sliding window rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:259
↓ 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:89
↓ 3 callersMethodpopulate
(self)
scripts/rank_issues_tui.py:355
↓ 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_outstanding_inputs
Return a leg's outstanding input requests, keyed by surfaced key. Empty when the leg is not waiting on input. Consumed by ``tasks/get`` to bu
fastmcp_tasks/fastmcp_tasks/input_store.py:266
↓ 3 callersMethodread_resource
Read the contents of a resource or resolved template. Args: uri (AnyUrl | str): The URI of the resource to read. Can be a string
fastmcp_slim/fastmcp/client/mixins/resources.py:267
↓ 3 callersFunctionrecord_span_exception
Record an exception and error status on a span.
fastmcp_slim/fastmcp/server/telemetry.py:154
↓ 3 callersFunctionrecover_client_pid
Reconnect `client` and return the pid of the freshly spawned subprocess.
tests/client/test_stdio.py:108
↓ 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 callersFunctionrelease_update_lock
Release the per-task update lock.
fastmcp_tasks/fastmcp_tasks/input_store.py:508
↓ 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:29
↓ 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:392
↓ 3 callersMethodresolve_tool
Resolve a public tool name to its client and upstream identity. A known route only requires its own client to be connected; one dead
fastmcp_slim/fastmcp/client/group.py:220
↓ 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 callersMethodrevoke_current_api_key
(self)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:326
↓ 3 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
tests/experimental/transforms/test_code_mode.py:72
↓ 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:215
↓ 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:777
↓ 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:319
↓ 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:164
↓ 3 callersMethodselected
(self)
scripts/rank_issues_tui.py:414
↓ 3 callersFunctionserve
Run server.py over `http`, `sse`, or `proxy` (HTTP) with bearer auth for the block.
tests/downstream/_harness.py:105
↓ 3 callersFunctionssrf_safe_fetch_response
Fetch URL with SSRF protection and return response metadata. This is equivalent to :func:`ssrf_safe_fetch` but returns response headers and s
fastmcp_slim/fastmcp/server/auth/ssrf.py:417
↓ 3 callersFunctionstdio_transport
A FastMCP StdioTransport for the smoke server; imported lazily so consumers that reach FastMCP only over the wire never import it.
tests/downstream/_harness.py:85
↓ 3 callersMethodstop
Stop the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:251
↓ 3 callersFunctionsummarize_credit
Count unique human contributors and identify first-time history checks. GitHub's first-time candidates and supplemental contributors need a histo
scripts/release_contributor_credit.py:253
↓ 3 callersMethodsystem_one
(self, state: Any, questions: Any)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:57
↓ 3 callersFunctiontext_resource
(uri: str, text: str)
tests/utilities/test_skills.py:39
↓ 3 callersMethodto_mcp_prompt
Convert the prompt to an MCP prompt.
fastmcp_slim/fastmcp/prompts/base.py:236
↓ 3 callersMethodto_mcp_prompt_result
Convert to MCP GetPromptResult.
fastmcp_slim/fastmcp/prompts/base.py:182
↓ 3 callersMethodto_mcp_result
Convert to MCP ReadResourceResult. Args: uri: The URI of the resource (required by MCP types) Returns: MCP R
fastmcp_slim/fastmcp/resources/base.py:197
↓ 3 callersMethodto_mcp_template
Convert the resource template to an SDKResourceTemplate.
fastmcp_slim/fastmcp/resources/template.py:518
↓ 3 callersFunctiontool
(fn: F)
fastmcp_slim/fastmcp/tools/function_tool.py:512
↓ 3 callersMethodtool
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:1782
↓ 3 callersMethodtool
()
tests/server/mount/test_mount.py:26
↓ 3 callersMethodvalidate
Check all parameter values against the configured policy. String values (and lists of strings, from wildcard `{path*}` parameters tha
fastmcp_slim/fastmcp/resources/security.py:127
↓ 3 callersMethodvalidate
Validate an ID-JAG and return its claims. Args: assertion: The compact-serialized ID-JAG JWT. client_id: The authenti
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:327
↓ 3 callersFunctionvalidate_get_oidc_configuration
Validate get_oidc_configuration call.
tests/server/auth/test_oidc_proxy.py:361
↓ 3 callersFunctionverify_links
Return verified candidates plus counts of unsupported and unverified links.
examples/apps/media_picker/media_picker_server.py:133
↓ 3 callersMethodverify_token
Verify and decode a FastMCP token. Validates JWT signature, expiration, issuer, audience, and token type. Args: token: J
fastmcp_slim/fastmcp/server/auth/jwt_issuer.py:232
↓ 3 callersMethodverify_token
Verify token using the configured token verifier.
fastmcp_slim/fastmcp/server/auth/auth.py:598
↓ 3 callersFunctionversion_sort_key
Get a sort key for a component based on its version. Use with sorted() or max() to order components by version. The key is a `(VersionKey, r
fastmcp_slim/fastmcp/utilities/versions.py:209
↓ 3 callersMethodwrite_to_file
Write configuration to JSON file.
fastmcp_slim/fastmcp/mcp_config.py:345
↓ 2 callersFunctionTokenClaim
Get a specific claim from the access token. This dependency extracts a single claim value from the current access token. It's useful for gett
fastmcp_slim/fastmcp/server/dependencies.py:1420
↓ 2 callersMethod__aenter__
(self)
fastmcp_slim/fastmcp/client/client.py:950
↓ 2 callersMethod__aenter__
(self)
fastmcp_slim/fastmcp/client/group.py:99
↓ 2 callersMethod__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1296
↓ 2 callersMethod__anext__
(self)
tests/client/auth/test_oauth_client.py:395
↓ 2 callersMethod__del__
Ensure that we send a disconnection signal to the transport task if we are being garbage collected.
fastmcp_slim/fastmcp/client/transports/stdio.py:221
↓ 2 callersMethod__init__
(self, code: int, message: str, data: Any = None)
fastmcp_slim/fastmcp/exceptions.py:24
↓ 2 callersMethod__init__
Initialize a private_key_jwt OAuth provider. Args: mcp_url: Full URL to the MCP endpoint (e.g. "https://host/mcp").
fastmcp_slim/fastmcp/client/auth/client_credentials.py:321
↓ 2 callersMethod__init__
Create ResourceResult. Args: contents: String, bytes, or list of ResourceContent objects. meta: Optional metadata abo
fastmcp_slim/fastmcp/resources/base.py:155
↓ 2 callersMethod__init__
( self, client: httpx2.AsyncClient, route: HTTPRoute, director: RequestDirecto
fastmcp_slim/fastmcp/server/providers/openapi/components.py:170
↓ 2 callersMethod__init__
Initialize WorkOS OAuth provider. Args: client_id: WorkOS client ID client_secret: WorkOS client secret a
fastmcp_slim/fastmcp/server/auth/providers/workos.py:161
↓ 2 callersMethod__init__
Create Message with automatic serialization. Args: content: The message content. str passes through directly.
fastmcp_slim/fastmcp/prompts/base.py:63
↓ 2 callersMethod__init__
(self, name: str, calls: list[str])
tests/server/providers/test_fastmcp_provider.py:17
↓ 2 callersFunction_accepted
The accepted form content for one answered elicitation. ``ctx.input_responses`` values are the raw SDK union (``ElicitResult | CreateMessageR
tests/server/test_mrtr_guards.py:67
↓ 2 callersFunction_all_lists
Return state updates for all three status lists.
examples/apps/approvals/approvals_server.py:147
↓ 2 callersFunction_args_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:81
↓ 2 callersFunction_assert_backend_connection_meta
The backend request carries the backend connection's own envelope. On a handshake-era backend the reserved keys are absent. On a modern backe
tests/server/providers/proxy/test_proxy_request_meta.py:92
← previousnext →1,001–1,100 of 13,374, ranked by callers