Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,224 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,224
◇
Types & classes
2,249
↳
Endpoints
189
↓ 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
Method
load_refresh_token
( self, client: OAuthClientInformationFull, refresh_token: str )
tests/server/test_auth_integration.py:106
↓ 4 callers
Function
nested_items_schema
(title: str)
tests/utilities/json_schema_type/test_generated_classes.py:34
↓ 4 callers
Function
non_rotating_upstream
Upstream that keeps the same refresh token, like Cognito.
tests/server/auth/oauth_proxy/test_single_use.py:82
↓ 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:474
↓ 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:168
↓ 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:487
↓ 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:749
↓ 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
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:818
↓ 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
↓ 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
↓ 3 callers
Method
__init__
(self, *, enabled: bool = True)
tests/server/test_provider_extensions.py:96
↓ 3 callers
Function
_accepted
The accepted form content for one answered elicitation.
tests/server/test_mrtr_guards_components.py:49
↓ 3 callers
Function
_add_components
(mcp: FastMCP)
tests/contrib/test_component_manager.py:689
↓ 3 callers
Function
_answer
The accepted value for the question `_ask` poses.
tests/server/middleware/test_caching_guards.py:43
↓ 3 callers
Method
_append
(self, entry: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:71
↓ 3 callers
Function
_ask
( request: ElicitRequest, key: str, request_state: str | None )
tests/server/test_mrtr_guards_components.py:39
↓ 3 callers
Function
_ask
The single-question ask every guard in this module returns.
tests/server/middleware/test_caching_guards.py:26
↓ 3 callers
Method
_bind
Bind this provider to a specific MCP server URL. Called automatically when ``mcp_url`` is provided to ``__init__``, or by the transpo
fastmcp_slim/fastmcp/client/auth/client_credentials.py:240
↓ 3 callers
Method
_build_extension_kwargs
Session kwargs contributed by `extensions=` / `result_claims=`. Folds the user's `ClientExtension` instances into the capability ad, result
fastmcp_slim/fastmcp/client/client.py:1424
↓ 3 callers
Function
_build_resource_for_tool
Build a lazy renderer resource, identified by its effective configuration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:73
↓ 3 callers
Method
_build_upstream_authorize_url
Build Azure authorization URL with prefixed scopes. Overrides parent to prefix scopes with identifier_uri before sending to Azure, wh
fastmcp_slim/fastmcp/server/auth/providers/azure.py:494
↓ 3 callers
Method
_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:942
↓ 3 callers
Function
_by_status
(status: str)
examples/apps/approvals/approvals_server.py:129
↓ 3 callers
Method
_cache_key_prefix
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:118
↓ 3 callers
Function
_call_get_item
(server: FastMCP)
tests/server/providers/openapi/test_http_errors.py:61
↓ 3 callers
Function
_call_slow
(server: FastMCP)
tests/server/providers/openapi/test_transport_errors.py:37
↓ 3 callers
Function
_call_tool
( spec: dict[str, Any], arguments: dict[str, Any] )
tests/server/providers/openapi/test_undeclared_arguments.py:76
↓ 3 callers
Method
_call_tool
Helper method to call a tool with the provided arguments.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:140
↓ 3 callers
Method
_chain_shortfall
Widen this middleware's shortfall to cover the rest of the chain. Scope requirements are commonly split across several `AuthMiddleware`
fastmcp_slim/fastmcp/server/middleware/authorization.py:156
↓ 3 callers
Method
_chat_completion_to_create_message_result
( chat_completion: ChatCompletion, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:397
↓ 3 callers
Method
_check_task_request
Run both gates every `tasks/*` method shares.
fastmcp_tasks/fastmcp_tasks/extension.py:227
↓ 3 callers
Method
_clear_consent_binding_cookie
Expire this transaction's binding after its successful callback. The legacy shared cookie is left to its 15-minute expiry: rewriting it
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:399
↓ 3 callers
Function
_client
()
tests/server/providers/openapi/test_default_names.py:23
↓ 3 callers
Function
_client
(provider: AuthKitProvider, real_client)
tests/server/auth/providers/test_metadata_forwarding_cache.py:68
↓ 3 callers
Function
_client
( server: FastMCP, stateless: bool | None, **kwargs: Any )
tests/server/transforms/test_input_required.py:96
↓ 3 callers
Method
_connect
Establish or reuse a session connection. This method implements the reentrant context manager pattern: - First call: Creates
fastmcp_slim/fastmcp/client/client.py:1054
↓ 3 callers
Function
_consent_state_base_name
Base cookie name carrying a single issued CSRF token. The token is hashed rather than used directly so the raw token does not end up in a coo
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:68
↓ 3 callers
Function
_copy_schema
Return a deep copy of a JSON schema without recursing. `copy.deepcopy` consumes stack frames in proportion to nesting depth, so a deeply nest
fastmcp_slim/fastmcp/utilities/json_schema.py:17
↓ 3 callers
Function
_could_be_prefab
Cheaply reject ordinary values before importing Prefab UI.
fastmcp_slim/fastmcp/utilities/prefab.py:29
↓ 3 callers
Function
_count
Normalize a JSON Schema count such as minLength or maxItems for Pydantic. JSON allows writing a count as `2.0`. A count above `sys.maxsize` excee
fastmcp_slim/fastmcp/utilities/json_schema_type.py:555
↓ 3 callers
Method
_create_upstream_oauth_client
Create an OAuth2 client for communicating with the upstream IdP. This is the single point for constructing the client used in token e
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:884
↓ 3 callers
Function
_default_is_valid
( field_type: Any, default: Any, namespace: dict[str, Any] | None = None )
fastmcp_slim/fastmcp/utilities/json_schema_type.py:490
↓ 3 callers
Method
_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:111
↓ 3 callers
Method
_drain_cull
(self, proxy: OAuthProxy)
tests/server/auth/test_oauth_proxy_storage.py:260
↓ 3 callers
Method
_drive_input_required
Resolve a SEP-2322 `InputRequiredResult` to its terminal result. A 2026-era server may answer `tools/call` / `prompts/get` / `resources/read`
fastmcp_slim/fastmcp/client/client.py:1383
↓ 3 callers
Function
_elicit
A single-field form elicitation request keyed by ``key``.
tests/server/test_mrtr_guards_components.py:26
↓ 3 callers
Function
_ensure_async
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:48
↓ 3 callers
Method
_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:615
← previous
next →
1,001–1,100 of 16,224, ranked by callers