Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
↓ 4 callers
Method
call_tool
Call a tool by name with the given arguments. Use this to execute tools discovered via search_tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:364
↓ 4 callers
Method
call_tool_bulk
Call a single tool registered on this MCP server multiple times with a single request. Each call can include different arguments. Us
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:113
↓ 4 callers
Method
callback_handler
Handle OAuth callback and return the authorization code result.
fastmcp_slim/fastmcp/client/auth/oauth.py:458
↓ 4 callers
Method
clear_if_matches
Clear a key only while its Horizon origin and value are active.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:100
↓ 4 callers
Method
client_factory
(**kwargs: Any)
tests/cli/test_apps_dev_server.py:638
↓ 4 callers
Method
client_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` capability the client declared, read from
fastmcp_slim/fastmcp/server/context.py:680
↓ 4 callers
Function
coerce_task_arguments
Validate and coerce task arguments before any task state is created. Called by ``submit_to_docket`` up front, so invalid inputs raise before the
fastmcp_tasks/fastmcp_tasks/components.py:151
↓ 4 callers
Function
compare_versions
Compare two version strings. Args: a: First version string (or None). b: Second version string (or None). Returns: -
fastmcp_slim/fastmcp/utilities/versions.py:237
↓ 4 callers
Method
connect_session
( self, *, transport_options: TransportOptions | None = None, **session_kwargs
fastmcp_slim/fastmcp/client/transports/config.py:130
↓ 4 callers
Method
copy
(self, **kwargs: Any)
fastmcp_slim/fastmcp/server/middleware/middleware.py:109
↓ 4 callers
Function
count
(q: str, kinds: tuple[str, ...] = ("issue", "pr"))
scripts/triage_floor_feed.py:145
↓ 4 callers
Method
create_device_authorization
( self, metadata: DeviceMetadata | None = None, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:242
↓ 4 callers
Function
create_error_html
Create a styled HTML error page for OAuth errors. Args: error_title: The error title (e.g., "OAuth Error", "Authorization Failed")
fastmcp_slim/fastmcp/server/auth/oauth_proxy/ui.py:216
↓ 4 callers
Function
create_function_without_params
Create a new function with the same code but without the specified parameters in annotations. This is used to exclude parameters from type a
fastmcp_slim/fastmcp/utilities/types.py:190
↓ 4 callers
Function
create_log_callback
(handler: LogHandler | None = None)
fastmcp_slim/fastmcp/client/logging.py:47
↓ 4 callers
Function
create_logo
Create logo HTML. Args: icon_url: Optional custom icon URL. If not provided, uses the FastMCP logo. alt_text: Alt text for the lo
fastmcp_slim/fastmcp/utilities/ui.py:501
↓ 4 callers
Function
create_mcp_config_server
Create a FastMCP server from a MCPConfig.
fastmcp_slim/fastmcp/cli/run.py:115
↓ 4 callers
Function
create_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_end_to_end_compatibility.py:13
↓ 4 callers
Function
create_secure_html_response
Create an HTMLResponse with security headers. Adds X-Frame-Options: DENY to prevent clickjacking attacks per MCP security best practices.
fastmcp_slim/fastmcp/utilities/ui.py:609
↓ 4 callers
Function
dayLabel
(day)
status-site/app.js:42
↓ 4 callers
Method
delete
(self, key: CacheKey)
fastmcp_slim/fastmcp/client/caching.py:186
↓ 4 callers
Method
delete
(self, key: CacheKey)
tests/server/test_subscriptions.py:366
↓ 4 callers
Function
discover_servers
Run all scanners and return the combined results. Duplicate names across sources are preserved — callers can use :pyattr:`DiscoveredServer.qu
fastmcp_slim/fastmcp/cli/discovery.py:360
↓ 4 callers
Function
emit_identity
Show the authenticated user.
fastmcp_slim/fastmcp/cli/deploy/output.py:148
↓ 4 callers
Method
exchange_authorization_code
Exchange authorization code for FastMCP-issued tokens. Implements the token factory pattern: 1. Retrieves upstream tokens from stored
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1424
↓ 4 callers
Method
exchange_device_authorization
( self, device_code: str, )
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:262
↓ 4 callers
Function
fetch_prs
Fetch attribution metadata, over REST where GraphQL is unavailable. Some agent sandboxes refuse GraphQL. The REST path builds the same shape;
scripts/release_contributor_credit.py:60
↓ 4 callers
Method
format
(self, record: logging.LogRecord)
tests/server/test_logging.py:12
↓ 4 callers
Function
format_info
Format server information according to the specified format. Args: mcp: The FastMCP instance format: Output format ("fastmcp" or
fastmcp_slim/fastmcp/utilities/inspect.py:503
↓ 4 callers
Function
format_ip_for_url
Format IP address for use in URL (bracket IPv6 addresses). IPv6 addresses must be bracketed in URLs to distinguish the address from the port
fastmcp_slim/fastmcp/server/auth/ssrf.py:58
↓ 4 callers
Function
getAmplitude
()
docs/fastmcp-analytics.js:42
↓ 4 callers
Method
get_current_user
(self)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:287
↓ 4 callers
Function
get_latest_version
Get the latest version of FastMCP from PyPI, using cache when available. Args: include_prereleases: If True, include pre-release versions
fastmcp_slim/fastmcp/utilities/version_check.py:106
↓ 4 callers
Method
get_resource
Get resource by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastM
fastmcp_slim/fastmcp/server/providers/base.py:355
↓ 4 callers
Method
get_resource_template
( self, uri: str, call_next: GetResourceTemplateNext, *, version: Vers
tests/server/auth/test_authorization.py:1531
↓ 4 callers
Method
get_span_attributes
(self)
fastmcp_slim/fastmcp/tools/base.py:629
↓ 4 callers
Method
get_tasks
Return components eligible for background task execution. Returns components that have task_config.mode != 'forbidden'. This includes
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:438
↓ 4 callers
Function
gh
(*args: str)
scripts/draft_release.py:96
↓ 4 callers
Function
guard_client
A client that answers each round automatically.
tests/server/middleware/test_caching_guards.py:82
↓ 4 callers
Method
intersect
Return a spec that satisfies both this spec and other. Used by transforms to combine caller constraints with filter constraints. For
fastmcp_slim/fastmcp/utilities/versions.py:88
↓ 4 callers
Function
isPrefectDestination
(url)
docs/fastmcp-analytics.js:115
↓ 4 callers
Function
is_url
Check if a string is a URL.
fastmcp_slim/fastmcp/cli/run.py:84
↓ 4 callers
Method
items
(page: int = 1, size: int = 10)
tests/resources/test_resource_template_level3.py:65
↓ 4 callers
Function
link
(text, url)
status-site/operations.js:16
↓ 4 callers
Method
list_prompts
Retrieve all prompts available on the server. This method automatically fetches all pages if the server paginates results, returning
fastmcp_slim/fastmcp/client/mixins/prompts.py:72
↓ 4 callers
Method
list_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:73
↓ 4 callers
Method
list_skills_mcp
Send one `skills/list` request and return its protocol result. Args: cursor: Optional pagination cursor from a previous result.
fastmcp_slim/fastmcp/client/mixins/skills.py:78
↓ 4 callers
Method
list_tools
Apply transforms to matching tools.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:70
↓ 4 callers
Function
nested_items_schema
(title: str)
tests/utilities/json_schema_type/test_generated_classes.py:34
↓ 4 callers
Function
normalize_resource_url
Normalize a resource URL by removing query parameters and trailing slashes. RFC 8707 allows clients to include query parameters in resource URLs,
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:476
↓ 4 callers
Function
number
(n)
status-site/app.js:34
↓ 4 callers
Method
on_request
Implement retry logic for requests.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:209
↓ 4 callers
Function
parseUrl
(href)
docs/fastmcp-analytics.js:107
↓ 4 callers
Function
parse_elicit_response_type
Parse response_type into schema and handling configuration. A response type is required; ``None`` raises ``TypeError``. Supports multiple syn
fastmcp_slim/fastmcp/server/elicitation.py:185
↓ 4 callers
Function
parse_hashed_resource_uri
Extract the hash from a Prefab renderer URI, or None.
fastmcp_slim/fastmcp/server/providers/addressing.py:98
↓ 4 callers
Function
parse_version_key
Parse a version string into a sortable key. Args: version: The version string, or None for unversioned. Returns: A VersionKe
fastmcp_slim/fastmcp/utilities/versions.py:197
↓ 4 callers
Function
poll_device_authorization
Poll at the server interval until the device request completes.
fastmcp_slim/fastmcp/cli/deploy/authentication.py:32
↓ 4 callers
Method
read
()
tests/client/test_result_hydration.py:176
↓ 4 callers
Function
read_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:282
↓ 4 callers
Method
read_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:278
↓ 4 callers
Method
read_resource
Read a resource by its URI. For static resources, provide the exact URI. For templated resources, provide the URI with templa
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:143
↓ 4 callers
Function
register_component_with_docket
Register a component's callable with Docket for background execution. No-ops if ``task_config.mode`` is ``forbidden``. Function-backed components
fastmcp_tasks/fastmcp_tasks/components.py:55
↓ 4 callers
Function
replace_query_param
Replace the first occurrence of `key` in a URL's query string in place. Like `add_query_params`, this does not round-trip the query through `
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:57
↓ 4 callers
Method
reset
Clear all recorded calls.
tests/server/middleware/test_middleware.py:110
↓ 4 callers
Method
resolve_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:312
↓ 4 callers
Function
restore_dropped_attributes
Restore FastMCP attributes a non-forwarding sampler dropped entirely. `Tracer.start_span` builds the span from `SamplingResult.attributes`, not
fastmcp_slim/fastmcp/telemetry.py:226
↓ 4 callers
Function
rotate
(admin: Redis, path: Path, password: str)
tests/integration_tests/test_task_credentials.py:76
↓ 4 callers
Function
run_cli_command
Run a client CLI so that it receives each argument literally. On Windows, a `.cmd` or `.bat` file always runs through cmd.exe, which would ot
fastmcp_slim/fastmcp/cli/install/shared.py:142
↓ 4 callers
Function
save
()
tests/apps/test_tool_names.py:15
↓ 4 callers
Function
secret_visible
(client: Client)
tests/server/test_session_scope.py:57
↓ 4 callers
Function
server_url_has_query
Check if a URL has query parameters.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:489
↓ 4 callers
Method
set_mcp_path
Bind the default verifier's audience to this server's resource URL. AuthKit with Resource Indicators (RFC 8707) mints tokens whose ``aud``
fastmcp_slim/fastmcp/server/auth/providers/workos.py:426
↓ 4 callers
Method
settings
(self)
tests/server/test_provider_extensions.py:101
↓ 4 callers
Function
should_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
↓ 4 callers
Function
skill_server
(name: str)
tests/client/group/test_skills.py:8
↓ 4 callers
Function
skills_client
(server: FastMCP)
tests/client/group/test_skills.py:13
↓ 4 callers
Function
snapshot_codec
The codec for the configured key; the plaintext codec when none is set.
fastmcp_tasks/fastmcp_tasks/encryption.py:161
↓ 4 callers
Function
spec_with_responses
(responses: dict[str, Any])
tests/server/providers/openapi/test_bodiless_success_responses.py:29
↓ 4 callers
Function
state_lock
Lock related CLI state changes across processes.
fastmcp_slim/fastmcp/cli/deploy/state.py:97
↓ 4 callers
Method
stop
Stop the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:251
↓ 4 callers
Function
template_param_key
Normalize a template variable name into the key used for matched params. Regex group names must be valid Python identifiers, so every character a
fastmcp_slim/fastmcp/resources/template.py:171
↓ 4 callers
Function
test_server
()
tests/test_mcp_config.py:752
↓ 4 callers
Function
text_resource
(uri: str, text: str)
tests/utilities/test_skills.py:45
↓ 4 callers
Function
texts
(contents: Any)
tests/downstream/smoke_agent_framework.py:76
↓ 4 callers
Method
to_mcp_prompt
Convert the prompt to an MCP prompt.
fastmcp_slim/fastmcp/prompts/base.py:246
↓ 4 callers
Method
to_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:446
↓ 4 callers
Function
unscoped_tool
(fn: Callable[[], str], name: str)
tests/server/middleware/test_tool_injection.py:321
↓ 4 callers
Function
upload_tool_names
(client: Client)
tests/server/test_session_scope.py:44
↓ 4 callers
Function
use_token
(monkeypatch: pytest.MonkeyPatch, subject: str | None)
tests/server/middleware/test_usage.py:75
↓ 4 callers
Method
validate
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
↓ 4 callers
Method
validate_private_key_jwt
Validate JWT assertion for private_key_jwt auth. Args: assertion: JWT assertion string from client client: OAuth prox
fastmcp_slim/fastmcp/server/auth/cimd.py:848
↓ 4 callers
Function
validate_server_name
Validate that a server name is safe for use as a subprocess argument. Raises SystemExit if the name contains shell metacharacters.
fastmcp_slim/fastmcp/cli/install/shared.py:32
↓ 4 callers
Method
verify_token
Verify token using the configured token verifier.
fastmcp_slim/fastmcp/server/auth/auth.py:658
↓ 4 callers
Function
whoami
Show the current Prefect Horizon user.
fastmcp_slim/fastmcp/cli/deploy/command.py:303
↓ 4 callers
Function
write_invalid
(folder: Path)
tests/skills/test_deprecated_paths.py:22
↓ 4 callers
Function
x
(row)
status-site/app.js:167
↓ 4 callers
Function
xrpc
(pds: str, method: str, body: dict, token: str | None = None)
scripts/triage_floor_feed.py:240
↓ 3 callers
Function
CurrentSession
Inject the per-user `Session` for the current authenticated principal. Rarely written explicitly — a `session: UserSession` parameter is rewritte
fastmcp_slim/fastmcp/server/sessions.py:449
↓ 3 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies.py:28
↓ 3 callers
Method
__init__
( self, *, store: PydanticAdapter[StateValue], principal: str | None,
fastmcp_slim/fastmcp/server/sessions.py:190
← previous
next →
1,001–1,100 of 16,725, ranked by callers