MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions11,669 in github.com/PrefectHQ/fastmcp

↓ 4 callersFunctiontest_server
()
tests/test_mcp_config.py:485
↓ 4 callersMethodto_image_content
Convert to MCP ImageContent.
fastmcp_slim/fastmcp/utilities/types.py:294
↓ 4 callersMethodto_mcp_prompt_message
Convert to MCP PromptMessage.
fastmcp_slim/fastmcp/prompts/base.py:93
↓ 4 callersMethodto_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:457
↓ 4 callersMethodvalidate_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:775
↓ 4 callersFunctionvalidate_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:28
↓ 3 callersMethod__aenter__
(self)
tests/server/test_dependencies.py:35
↓ 3 callersMethod__init__
( self, *, store: PydanticAdapter[StateValue], principal: str | None,
fastmcp_slim/fastmcp/server/sessions.py:190
↓ 3 callersFunction_accepted
The accepted form content for one answered elicitation.
tests/server/test_mrtr_guards_components.py:49
↓ 3 callersFunction_answer
The accepted value for the question `_ask` poses.
tests/server/middleware/test_caching_guards.py:43
↓ 3 callersFunction_apply_snapshot_to_context
Populate the ambient request context a worker's tool body reads. A Docket worker has no live request or SDK auth context — especially a Redis
fastmcp_tasks/fastmcp_tasks/context.py:468
↓ 3 callersFunction_ask
( request: ElicitRequest, key: str, request_state: str | None )
tests/server/test_mrtr_guards_components.py:39
↓ 3 callersFunction_ask
The single-question ask every guard in this module returns.
tests/server/middleware/test_caching_guards.py:26
↓ 3 callersMethod_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:230
↓ 3 callersMethod_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:1260
↓ 3 callersMethod_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:864
↓ 3 callersFunction_by_status
(status: str)
examples/apps/approvals/approvals_server.py:129
↓ 3 callersMethod_cache_key_prefix
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:117
↓ 3 callersMethod_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:116
↓ 3 callersMethod_check_task_request
Run both gates every `tasks/*` method shares.
fastmcp_tasks/fastmcp_tasks/extension.py:188
↓ 3 callersFunction_claiming_server
An SDK MCPServer whose `claimed_tool` returns a claimed extension result.
tests/client/test_client_extensions.py:117
↓ 3 callersMethod_config
Two entries so the transport takes its multi-server composite path.
tests/server/test_mrtr_guards.py:635
↓ 3 callersMethod_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:806
↓ 3 callersMethod_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:76
↓ 3 callersMethod_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:1219
↓ 3 callersFunction_elicit
A single-field form elicitation request keyed by ``key``.
tests/server/test_mrtr_guards_components.py:26
↓ 3 callersFunction_ensure_async
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:44
↓ 3 callersMethod_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:457
↓ 3 callersFunction_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:42
↓ 3 callersFunction_format_call_result_text
Pretty-print a tool call result to the console.
fastmcp_slim/fastmcp/cli/client.py:420
↓ 3 callersMethod_format_message
Format a message for logging.
fastmcp_slim/fastmcp/server/middleware/logging.py:49
↓ 3 callersFunction_format_size
(size: int)
fastmcp_slim/fastmcp/apps/file_upload.py:83
↓ 3 callersMethod_forwarded
( self, server: FastMCP, tool: str = "status", mode: str = "auto" )
tests/server/providers/proxy/test_proxy_server.py:1423
↓ 3 callersMethod_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:129
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:179
↓ 3 callersFunction_get_parent_trace_context
Get parent trace context from request meta for distributed tracing.
fastmcp_slim/fastmcp/server/telemetry.py:89
↓ 3 callersMethod_get_scope_key
Return the key used to partition file storage. Defaults to ``ctx.session_id``, which is stable for stdio, SSE, and stateful HTTP. The
fastmcp_slim/fastmcp/apps/file_upload.py:166
↓ 3 callersMethod_get_token_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:126
↓ 3 callersMethod_get_token_expiry_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:132
↓ 3 callersMethod_get_tool
Get a specific tool by name. Default implementation filters _list_tools() and picks the highest version that matches the spec.
fastmcp_slim/fastmcp/server/providers/base.py:371
↓ 3 callersMethod_get_unique_name
Ensure the name is unique by appending numbers if needed.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:213
↓ 3 callersFunction_guide
(name: str)
tests/docs/test_upgrade_guide_api_claims.py:34
↓ 3 callersFunction_image_content_to_anthropic_block
Convert MCP ImageContent to Anthropic ImageBlockParam.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:55
↓ 3 callersFunction_image_content_to_openai_part
Convert MCP ImageContent to OpenAI image_url content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:64
↓ 3 callersMethod_initialize
Load stored tokens and client info, properly setting token expiry.
fastmcp_slim/fastmcp/client/auth/oauth.py:352
↓ 3 callersFunction_input_responses_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:97
↓ 3 callersFunction_is_continuation_leg
Whether this request is answering a previous round's ask (SEP-2322). A continuation must bypass the cache entirely. Cache keys are built from the
fastmcp_slim/fastmcp/server/middleware/caching.py:42
↓ 3 callersFunction_is_prefab_tool
True if *tool* was marked as needing a Prefab renderer at registration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:36
↓ 3 callersFunction_leg_number_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:89
↓ 3 callersFunction_lift_meta
Lift the raw ``_meta`` block from the request params. ``ctx.params`` is the raw params mapping (or None); its ``_meta`` key holds the full me
fastmcp_slim/fastmcp/server/dependencies.py:88
↓ 3 callersMethod_list_tools
(self)
tests/server/providers/test_base_provider.py:31
↓ 3 callersFunction_lookup_task
Resolve a task's current-leg execution and metadata within the scope. Returns ``(execution, base_task_key, leg_number, created_at, poll_inter
fastmcp_tasks/fastmcp_tasks/handlers.py:126
↓ 3 callersMethod_make_access_token
(self, aud: str)
tests/server/auth/providers/test_propelauth.py:199
↓ 3 callersFunction_make_call_tool_cache_key
Make a cache key for a tool call using a stable hash of name and arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:629
↓ 3 callersFunction_make_get_prompt_cache_key
Make a cache key for a prompt get using a stable hash of name and arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:645
↓ 3 callersMethod_make_oauth_with_redirect
Build a HeadlessOAuth with a fake stored 302 response.
tests/utilities/test_tests.py:55
↓ 3 callersFunction_make_read_resource_cache_key
Make a cache key for a resource read using a stable hash of URI.
fastmcp_slim/fastmcp/server/middleware/caching.py:637
↓ 3 callersMethod_make_state_key
Create session-prefixed key for state storage.
fastmcp_slim/fastmcp/server/context.py:1116
↓ 3 callersMethod_make_token
(scopes: list[str])
tests/server/middleware/test_caching.py:776
↓ 3 callersMethod_make_tools
(self)
tests/cli/test_generate_cli.py:412
↓ 3 callersMethod_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/http.py:130
↓ 3 callersMethod_metadata
(self, proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_identity_assertion.py:230
↓ 3 callersMethod_mock_session
Build a mock session with a stable per-connection Connection. SDK v2 constructs a ServerSession per request; PingMiddleware keys the
tests/server/middleware/test_ping.py:41
↓ 3 callersFunction_modern_proxy
A FastMCPProxy whose backend client negotiates the modern era, so the backend can emit an `InputRequiredResult` (SEP-2322) for the proxy to ro
tests/server/test_mrtr_guards.py:416
↓ 3 callersFunction_normalize
Compare schemas by their full structure, modulo generated titles. "required" is sorted because the SDK and FastMCP may build it in a different
tests/docs/test_upgrade_guide_equivalence.py:66
↓ 3 callersFunction_normalize_google_scope
Normalize a Google scope shorthand to its canonical full URI. Google accepts shorthand scopes like "email" and "profile" in authorization req
fastmcp_slim/fastmcp/server/auth/providers/google.py:47
↓ 3 callersFunction_normalize_origin
(origin: str)
fastmcp_slim/fastmcp/server/http.py:190
↓ 3 callersMethod_on_read_resource
Handle MCP 'resources/read' requests.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:296
↓ 3 callersMethod_one_shot_server
(self)
tests/server/test_mrtr_guards.py:711
↓ 3 callersFunction_parse_mcp_servers
Parse an ``mcpServers``-style dict into discovered servers.
fastmcp_slim/fastmcp/cli/discovery.py:90
↓ 3 callersMethod_ping_loop
Send periodic pings until the connection ends.
fastmcp_slim/fastmcp/server/middleware/ping.py:88
↓ 3 callersFunction_raw_request
Send a bare JSON-RPC request through the dispatcher, bypassing the typed `send_request` that normally stamps the outgoing envelope. The moder
tests/server/middleware/test_message_visibility.py:69
↓ 3 callersMethod_read_consent_bindings
Read the consent binding map from the signed cookie. Returns a dict of {txn_id: consent_token} for all pending flows.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:182
↓ 3 callersFunction_read_map
(payload: dict[str, Any])
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:60
↓ 3 callersMethod_register_and_store_code
( self, provider: AzureProvider, *, code: str, idp_tokens: dict, )
tests/server/auth/providers/test_azure.py:1228
↓ 3 callersFunction_render_tools
Render tools at the requested detail level. The same detail value produces the same output format regardless of which discovery tool calls th
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:215
↓ 3 callersFunction_requested_version
(meta: Mapping[str, Any] | None)
fastmcp_slim/fastmcp/server/middleware/authorization.py:55
↓ 3 callersFunction_resolve_owning_server
Re-resolve a mounted task's owning child server from the root (remote worker). A separate worker process cannot reach the submitting process's se
fastmcp_tasks/fastmcp_tasks/context.py:432
↓ 3 callersMethod_run_in_child_context
(self, fn)
tests/server/providers/proxy/test_stateful_proxy_client.py:245
↓ 3 callersMethod_run_middleware
Builds and executes the middleware chain for a single dispatch phase. ``phase`` selects whether a pass runs only the method-agnostic hooks
fastmcp_slim/fastmcp/server/server.py:538
↓ 3 callersFunction_sampling_request
A one-message sampling request.
tests/conformance/server.py:412
↓ 3 callersFunction_scan_claude_desktop
Scan the Claude Desktop config file.
fastmcp_slim/fastmcp/cli/discovery.py:140
↓ 3 callersFunction_scan_project_mcp_json
Check for ``mcp.json`` in *start_dir*.
fastmcp_slim/fastmcp/cli/discovery.py:223
↓ 3 callersFunction_schema_section
(schema: dict[str, Any] | None, title: str)
fastmcp_slim/fastmcp/server/transforms/search/base.py:116
↓ 3 callersFunction_send_get
Send `tasks/get` and parse the detailed task response.
fastmcp_tasks/fastmcp_tasks/client.py:84
↓ 3 callersFunction_server
(client)
tests/server/providers/openapi/test_legacy_client_compat.py:59
↓ 3 callersMethod_set_token
(token)
tests/server/middleware/test_caching.py:788
↓ 3 callersMethod_sign_cookie
Sign a cookie payload with HMAC-SHA256. Returns: base64(payload).base64(signature)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:93
↓ 3 callersMethod_state_of
The user-state sub-dict of a raw stored dict (empty when absent).
fastmcp_slim/fastmcp/server/sessions.py:230
↓ 3 callersFunction_strict_input_validation
Whether the running server enforces strict argument validation. Reads ``strict_input_validation`` off the active request's ``FastMCP`` instan
fastmcp_slim/fastmcp/tools/function_tool.py:124
↓ 3 callersFunction_strip_input_required
Remove `InputRequiredResult` arms from a union return annotation. A guard tool typically annotates its return as ``X | InputRequiredResult``;
fastmcp_slim/fastmcp/tools/function_parsing.py:123
↓ 3 callersFunction_text
(result: mcp_types.CallToolResult)
tests/server/test_extensions.py:48
↓ 3 callersFunction_text
(result)
examples/tasks/client.py:37
↓ 3 callersFunction_to_base_model
Validate a component's public base fields without serializing its subclass.
fastmcp_slim/fastmcp/server/middleware/caching.py:74
↓ 3 callersFunction_tool
Build a real Tool component (a FastMCPComponent) with a version.
tests/server/versioning/test_versioning.py:89
↓ 3 callersFunction_tool_server
()
tests/tasks/server/test_task_tools.py:46
↓ 3 callersFunction_trace_meta
Trace context for a task management request, for the current client span. Task management calls (`tasks/get`/`update`/`cancel`) use ordinary
fastmcp_tasks/fastmcp_tasks/client.py:74
↓ 3 callersMethod_transform_uri
Apply namespace to a URI: protocol://path → protocol://namespace/path.
fastmcp_slim/fastmcp/server/transforms/namespace.py:74
↓ 3 callersMethod_translate_scopes_from_idp
Translate IdP-returned scopes into the client-facing form. Some IdPs (notably Azure) require scopes on the wire in a form that differ
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1641
↓ 3 callersMethod_uses_alternate_verification
Return True when id_token verification is enabled. This ensures ``load_access_token`` always patches the validated result with upstre
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:497
← previousnext →701–800 of 11,669, ranked by callers