MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

↓ 3 callersFunctioncreate_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider_bearer.py:35
↓ 3 callersFunctioncreate_okp_key_pair
Serialize an EdDSA key pair as PEM strings.
tests/server/auth/test_jwt_provider.py:87
↓ 3 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_parameter_collisions.py:11
↓ 3 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_performance_comparison.py:13
↓ 3 callersFunctioncreate_sampling_callback
( sampling_handler: SamplingHandler, )
fastmcp_slim/fastmcp/client/sampling/__init__.py:44
↓ 3 callersFunctioncreate_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_sse.py:17
↓ 3 callersFunctioncreate_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_streamable_http.py:22
↓ 3 callersFunctioncreate_unregistered_client_html
Create styled HTML error page for unregistered client attempts. Args: client_id: The unregistered client ID that was provided reg
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:46
↓ 3 callersFunctioncustom_verifier
()
tests/server/auth/test_remote_auth_required_scopes.py:24
↓ 3 callersFunctiondefault_serializer
(data: Any)
fastmcp_slim/fastmcp/tools/base.py:77
↓ 3 callersFunctiondrive_until_metadata
Run the flow through resource metadata discovery; return requested URLs.
tests/client/auth/test_oauth_static_client_issuer.py:29
↓ 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 callersFunctionentries
(changelog: str)
scripts/draft_release.py:53
↓ 3 callersMethodenum_schema
Generate inline enum schema. Always generates enum pattern: `{"enum": [value, ...]}` Titled enums are handled separately via dict-bas
fastmcp_slim/fastmcp/server/elicitation.py:135
↓ 3 callersMethodevent
Register a check function as an event type. Args: name: Event type name clients subscribe to. description: What the e
fastmcp_slim/fastmcp/experimental/events/extension.py:165
↓ 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:95
↓ 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:2764
↓ 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 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:48
↓ 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:104
↓ 3 callersFunctiongh_json
(*args: str)
scripts/maintenance_status.py:139
↓ 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 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:135
↓ 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:36
↓ 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 divergence already recorded in FINDINGS.md, so the run still stops on anything new.
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:399
↓ 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 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:2091
↓ 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:2084
↓ 3 callersFunctionnow_us
()
examples/events/jetstream.py:65
↓ 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:24
↓ 3 callersMethodping
()
tests/server/middleware/test_dereference.py:165
↓ 3 callersFunctionpost
(event: str, payload: dict, secret="s3cret", delivery="d-1")
tests/test_floor_receiver.py:66
↓ 3 callersFunctionpost_poll
( http: TestClient, name: str, mcp_name: str | None, method: str = "events/poll" )
tests/experimental/events/test_extension.py:634
↓ 3 callersFunctionprovider
()
tests/server/auth/providers/test_metadata_forwarding_cache.py:53
↓ 3 callersMethodputs
(self)
tests/test_floor_receiver.py:48
↓ 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:177
↓ 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:460
↓ 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 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
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: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:1260
↓ 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:186
↓ 3 callersMethodsend
( kind: str, *, event_meta: dict[str, Any] | None = None, **fields: Any )
fastmcp_slim/fastmcp/experimental/events/extension.py:365
← previousnext →1,301–1,400 of 16,725, ranked by callers