MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

↓ 3 callersFunction_constant
(content: bytes)
tests/skills/test_read_skill.py:172
↓ 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:31
↓ 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:581
↓ 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:932
↓ 3 callersFunction_default_is_valid
( field_type: Any, default: Any, namespace: dict[str, Any] | None = None )
fastmcp_slim/fastmcp/utilities/json_schema_type.py:506
↓ 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 callersFunction_discriminator_target_name
Resolve a ``discriminator.mapping`` value to a local schema name. Mapping values hold "schema names or references", so a bare ``"Cat"`` means
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:416
↓ 3 callersMethod_doc
(self, scope: str | None)
tests/server/auth/oauth_proxy/test_oauth_proxy.py:738
↓ 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:632
↓ 3 callersFunction_event_param_headers
`Mcp-Param-*` headers for an event's annotated arguments, once listed.
fastmcp_events/fastmcp_events/subscription.py:503
↓ 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_meta_trace_context
Return the valid trace context sent in `_meta`, ignoring the current span.
fastmcp_slim/fastmcp/telemetry.py:280
↓ 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_events/fastmcp_events/cli.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 callersFunction_gateway_with_report_backend
(placement: str, gate: str)
tests/server/auth/test_resource_auth_shadowing.py:100
↓ 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:657
↓ 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:697
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:189
↓ 3 callersFunction_get_parent_trace_context
Return the SERVER span's parent and links. `_meta` trace context is the parent when present; a different current span (e.g. an HTTP request s
fastmcp_slim/fastmcp/server/telemetry.py:144
↓ 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:264
↓ 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_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_json_values_equal
Compare JSON values without treating booleans as numbers.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:773
↓ 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 callersFunction_list
(client: Client, kind: str)
tests/pbt/test_middleware.py:182
↓ 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 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 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:1061
↓ 3 callersMethod_make_tools
(self)
tests/cli/test_generate_cli.py:414
↓ 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
↓ 3 callersMethod_method_name
(body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:43
↓ 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:44
↓ 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:415
↓ 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:50
↓ 3 callersFunction_normalize_origin
(origin: str)
fastmcp_slim/fastmcp/server/http.py:197
↓ 3 callersFunction_object_schema_to_type
Convert an object schema to the appropriate Python type. Single source of truth for the four object-schema cases, used by both the top-level
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1039
↓ 3 callersMethod_on_read_resource
Handle MCP 'resources/read' requests.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:370
↓ 3 callersMethod_one_shot_server
(self)
tests/server/test_mrtr_guards.py:726
↓ 3 callersFunction_parse_mcp_servers
Parse an ``mcpServers``-style dict into discovered servers.
fastmcp_slim/fastmcp/cli/discovery.py:90
↓ 3 callersFunction_parse_resource_uri
(uri: str)
fastmcp_slim/fastmcp/skills/models.py:25
↓ 3 callersMethod_pick
(self, data, live: dict[str, str], dead: dict[str, str])
tests/pbt/test_oauth_proxy_machine.py:287
↓ 3 callersFunction_play_via_mcp
( source: Source, source_id: str, url: str, title: str, target: FastMCP | str, tool_na
examples/apps/media_picker/media_picker_server.py:165
↓ 3 callersMethod_post
POST one signed body to the address `url` resolves to now. The whole attempt, from resolving the host to reading the last byte of the
fastmcp_events/fastmcp_events/webhook_delivery.py:651
↓ 3 callersMethod_provider
(self, key_pair: RSAKeyPair)
tests/server/auth/providers/test_scalekit.py:145
↓ 3 callersMethod_proxy
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_oauth_proxy.py:724
↓ 3 callersMethod_prune_expired
Remove expired files while holding the default storage lock.
fastmcp_slim/fastmcp/apps/file_upload.py:217
↓ 3 callersMethod_publish_list_changed
( self, event: ToolsListChanged | PromptsListChanged | ResourcesListChanged, _seen: se
fastmcp_slim/fastmcp/server/server.py:2159
↓ 3 callersFunction_raise_for_status
Raise an OpenAPI-formatted error with concise upstream details.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:108
↓ 3 callersFunction_ranked_catalog
Build a catalog whose BM25 ranking is the reverse of its registration order. Every tool repeats the query token a different number of times, so n
tests/experimental/transforms/test_code_mode_search_limits.py:14
↓ 3 callersMethod_read_all
(self, path: str)
scripts/auto_close_duplicates.py:126
↓ 3 callersMethod_read_consent_state_cookies
Per-token consent-state cookies the browser sent, by cookie name. Returns {cookie_name: (txn_id, issued_at)} for every cookie whose s
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:236
↓ 3 callersFunction_read_map
(payload: dict[str, Any])
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:60
↓ 3 callersFunction_ref_is_mergeable_object
Whether *schema*'s ``$ref`` (if any) can be dropped by a property merge.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:404
↓ 3 callersMethod_register_and_store_code
( self, provider: AzureProvider, *, code: str, idp_tokens: dict, )
tests/server/auth/providers/test_azure.py:1460
↓ 3 callersMethod_register_provider_extensions
Register all bundled extensions, rolling back if any registration fails.
fastmcp_slim/fastmcp/server/mixins/extensions.py:156
← previousnext →1,201–1,300 of 17,519, ranked by callers