MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

↓ 3 callersMethod__init__
(self, *, enabled: bool = True)
tests/server/test_provider_extensions.py:96
↓ 3 callersFunction_accepted
The accepted form content for one answered elicitation.
tests/server/test_mrtr_guards_components.py:49
↓ 3 callersFunction_add_components
(mcp: FastMCP)
tests/contrib/test_component_manager.py:689
↓ 3 callersFunction_age_rotation
Pretend the rotation happened `seconds` ago.
tests/server/auth/oauth_proxy/test_refresh_reuse.py:46
↓ 3 callersFunction_answer
The accepted value for the question `_ask` poses.
tests/server/middleware/test_caching_guards.py:43
↓ 3 callersMethod_append
(self, entry: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:71
↓ 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_authorize_params
(self, scope: str)
tests/server/auth/oauth_proxy/test_oauth_proxy.py:729
↓ 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:240
↓ 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:1435
↓ 3 callersFunction_build_resource_for_tool
Build a lazy renderer resource, identified by its effective configuration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:73
↓ 3 callersMethod_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:508
↓ 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:991
↓ 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:118
↓ 3 callersFunction_call_get_item
(server: FastMCP)
tests/server/providers/openapi/test_http_errors.py:61
↓ 3 callersFunction_call_slow
(server: FastMCP)
tests/server/providers/openapi/test_transport_errors.py:37
↓ 3 callersFunction_call_tool
( spec: dict[str, Any], arguments: dict[str, Any] )
tests/server/providers/openapi/test_undeclared_arguments.py:76
↓ 3 callersMethod_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 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:156
↓ 3 callersMethod_chat_completion_to_create_message_result
( chat_completion: ChatCompletion, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:397
↓ 3 callersMethod_check_task_request
Run both gates every `tasks/*` method shares.
fastmcp_tasks/fastmcp_tasks/extension.py:227
↓ 3 callersMethod_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 callersFunction_client
()
tests/server/providers/openapi/test_default_names.py:23
↓ 3 callersFunction_client
(provider: AuthKitProvider, real_client)
tests/server/auth/providers/test_metadata_forwarding_cache.py:68
↓ 3 callersFunction_client
( server: FastMCP, stateless: bool | None, **kwargs: Any )
tests/server/transforms/test_input_required.py:96
↓ 3 callersMethod_close
(self, subscription_id: RequestId)
fastmcp_slim/fastmcp/experimental/events/client.py:132
↓ 3 callersMethod_connect
Establish or reuse a session connection. This method implements the reentrant context manager pattern: - First call: Creates
fastmcp_slim/fastmcp/client/client.py:1065
↓ 3 callersFunction_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 callersFunction_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 callersFunction_could_be_prefab
Cheaply reject ordinary values before importing Prefab UI.
fastmcp_slim/fastmcp/utilities/prefab.py:29
↓ 3 callersFunction_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:565
↓ 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:933
↓ 3 callersFunction_default_is_valid
( field_type: Any, default: Any, namespace: dict[str, Any] | None = None )
fastmcp_slim/fastmcp/utilities/json_schema_type.py:490
↓ 3 callersMethod_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:111
↓ 3 callersMethod_doc
(self, scope: str | None)
tests/server/auth/oauth_proxy/test_oauth_proxy.py:718
↓ 3 callersMethod_drain_cull
(self, proxy: OAuthProxy)
tests/server/auth/test_oauth_proxy_storage.py:260
↓ 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:48
↓ 3 callersMethod_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:615
↓ 3 callersMethod_expire_cookie
Expire one cookie by name, matching the attributes it was set with.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:329
↓ 3 callersFunction_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:43
↓ 3 callersMethod_extract_upstream_claims
Extract upstream claims to embed in FastMCP JWT. Override this method to decode upstream tokens, call userinfo endpoints, or otherwis
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1851
↓ 3 callersFunction_fail
(message: str)
fastmcp_slim/fastmcp/cli/events.py:58
↓ 3 callersFunction_fail
( command: CommandName, category: ErrorCategory, message: str, *, json_output: bool, d
fastmcp_slim/fastmcp/cli/deploy/command.py:104
↓ 3 callersFunction_fail_for_expected_error
( command: CommandName, error: Exception, *, json_output: bool, )
fastmcp_slim/fastmcp/cli/deploy/command.py:122
↓ 3 callersFunction_format_call_result_text
Pretty-print a tool call result to the console.
fastmcp_slim/fastmcp/cli/client.py:585
↓ 3 callersMethod_format_message
Format a message for logging.
fastmcp_slim/fastmcp/server/middleware/logging.py:49
↓ 3 callersMethod_forwarded
( self, server: FastMCP, tool: str = "status", mode: str = "auto" )
tests/server/providers/proxy/test_proxy_server.py:1465
↓ 3 callersFunction_fresh_upstream
A CountingUpstream subclass with its own call counter.
tests/server/auth/providers/test_metadata_forwarding_cache.py:57
↓ 3 callersMethod_gather
(self, operations: Iterable[Awaitable[_T]])
fastmcp_slim/fastmcp/skills/extension.py:139
↓ 3 callersFunction_get_arguments_str
Get a canonical string representation of the arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:651
↓ 3 callersMethod_get_client
(self)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:195
↓ 3 callersMethod_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:130
↓ 3 callersFunction_get_component_version_cache_key
Return a cache partition for the requested component version.
fastmcp_slim/fastmcp/server/middleware/caching.py:691
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:180
↓ 3 callersFunction_get_parent_trace_context
Get parent trace context from request meta for distributed tracing.
fastmcp_slim/fastmcp/server/telemetry.py:111
↓ 3 callersMethod_get_scope_key
Return the key used to partition file storage. Defaults to the MCP session on handshake-era connections. A 2026-07-28 connection has
fastmcp_slim/fastmcp/apps/file_upload.py:188
↓ 3 callersFunction_get_status
(server: ASGIServer, headers: dict[str, str])
tests/server/http/test_sse_host_origin_protection.py:46
↓ 3 callersMethod_get_token_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:127
↓ 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:478
↓ 3 callersMethod_get_tool
( self, name: str, version: VersionSpec | None = None )
tests/server/mount/test_mount.py:338
↓ 3 callersMethod_get_unique_name
Ensure the name is unique by appending numbers if needed.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:244
↓ 3 callersMethod_get_visible_tools
Get the auth-filtered tool catalog, excluding pinned tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:401
↓ 3 callersFunction_guide
(name: str)
tests/docs/test_upgrade_guide_api_claims.py:34
↓ 3 callersMethod_identities
Skill URIs before authorization, preserving duplicates across sources.
fastmcp_slim/fastmcp/skills/extension.py:155
↓ 3 callersFunction_ignoring_gc_noise
Drop ResourceWarnings from sockets other tests leaked. Garbage collection can finalize them at any allocation inside a `catch_warnings` block
tests/cli/test_client_commands.py:737
↓ 3 callersFunction_image_content_to_openai_part
Convert MCP ImageContent to OpenAI image_url content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:74
↓ 3 callersMethod_initialize
Load stored tokens and client info, properly setting token expiry.
fastmcp_slim/fastmcp/client/auth/oauth.py:371
↓ 3 callersFunction_inline_defs_schema
A media-type schema that declares its own ``$defs``.
tests/utilities/openapi/test_inline_defs.py:29
↓ 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:49
↓ 3 callersFunction_is_legacy_httpx_exception
Check a legacy-httpx exception without importing the legacy package.
fastmcp_slim/fastmcp/utilities/exceptions.py:11
↓ 3 callersMethod_is_modern_protocol
True when the negotiated MCP protocol era removed the back-channel. Reads the negotiated protocol version from the active request context.
fastmcp_slim/fastmcp/server/context.py:983
↓ 3 callersFunction_is_optional_string
Check if a schema is Pydantic's `anyOf` form of `str | None`. Such a parameter takes plain text, like a required string. Other unions, such a
fastmcp_slim/fastmcp/cli/generate.py:48
↓ 3 callersFunction_is_preserved_property_key
(key: str)
fastmcp_slim/fastmcp/tools/tool_transform.py:52
↓ 3 callersFunction_is_silent_approval
(response: httpx2.Response)
tests/server/auth/test_oauth_consent_remembered_key.py:119
↓ 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:99
↓ 3 callersMethod_list_tools
Return all available tools. Override to provide tools dynamically. Returns ALL versions of all tools. The server handles deduplicatio
fastmcp_slim/fastmcp/server/providers/base.py:470
↓ 3 callersMethod_list_tools
(self)
tests/server/test_providers.py:77
↓ 3 callersMethod_live_parents
The servers this one is attached to, in attach order, dropping any that have been collected.
fastmcp_slim/fastmcp/server/server.py:881
↓ 3 callersFunction_load_session_snapshot
( credentials: CredentialStore, )
fastmcp_slim/fastmcp/cli/deploy/command.py:83
↓ 3 callersFunction_locate
(uri: str, catalog: Mapping[str, _T])
fastmcp_slim/fastmcp/skills/provider.py:498
↓ 3 callersMethod_lookup_resource
Resolve a resource as `get_resource` does. Also reports whether a concrete resource exists at `uri` at all, so reads can tell a hidde
fastmcp_slim/fastmcp/server/server.py:1295
↓ 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:127
↓ 3 callersMethod_make_access_token
(self, aud: str)
tests/server/auth/providers/test_propelauth.py:199
↓ 3 callersFunction_make_greet_server
()
tests/test_mcp_config.py:1211
↓ 3 callersMethod_make_oauth_with_redirect
Build a HeadlessOAuth with a fake stored 302 response.
tests/utilities/test_tests.py:82
↓ 3 callersMethod_make_refresh_context
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:359
↓ 3 callersMethod_make_state_key
Create session-prefixed key for state storage.
fastmcp_slim/fastmcp/server/context.py:1146
↓ 3 callersMethod_make_token
(scopes: list[str])
tests/server/middleware/test_caching.py:1014
↓ 3 callersMethod_make_tools
(self)
tests/cli/test_generate_cli.py:409
↓ 3 callersMethod_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/http.py:141
↓ 3 callersFunction_may_read
(server: FastMCP, uri: str)
fastmcp_slim/fastmcp/skills/_routing.py:26
↓ 3 callersFunction_mcp_config
()
tests/cli/test_config_encoding.py:51
↓ 3 callersMethod_message_to_create_message_result
( message: Message, )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:345
↓ 3 callersMethod_message_to_result_with_tools
Convert Anthropic response to CreateMessageResultWithTools.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:417
↓ 3 callersMethod_metadata
(self, proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_identity_assertion.py:231
← previousnext →1,101–1,200 of 16,725, ranked by callers