MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,312 in github.com/PrefectHQ/fastmcp

↓ 5 callersMethodtool
()
tests/server/mount/test_mount.py:25
↓ 5 callersFunctionvalidate_command
Validate a hosted CIMD document. Fetches the document from the given URL and validates: - URL is valid CIMD URL (HTTPS, non-root path) -
fastmcp_slim/fastmcp/cli/cimd.py:144
↓ 5 callersMethodverify_token
Verify token using the configured token verifier.
fastmcp_slim/fastmcp/server/auth/auth.py:468
↓ 5 callersMethodwrap
(cls, value: ToolResult)
fastmcp_slim/fastmcp/server/middleware/caching.py:88
↓ 4 callersFunctionCurrentContext
Get the current FastMCP Context instance. This dependency provides access to the active FastMCP Context for the current MCP operation (tool/r
fastmcp_slim/fastmcp/server/dependencies.py:843
↓ 4 callersMethod__init__
Create a Task wrapper. Args: client: The FastMCP client task_id: The task identifier immediate_r
fastmcp_slim/fastmcp/client/tasks.py:61
↓ 4 callersMethod__init__
Initialize a FastMCPProvider. Args: server: The FastMCP server to wrap.
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:517
↓ 4 callersFunction_apply_pagination
Apply pagination to items, raising McpError for invalid cursors. If page_size is None, returns all items without pagination.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:27
↓ 4 callersMethod_build_discovery_tools
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:533
↓ 4 callersFunction_convert_set_default_none
Convert a sequence to a set, defaulting to an empty set if None.
fastmcp_slim/fastmcp/utilities/components.py:43
↓ 4 callersMethod_cookie_name
Return secure cookie name for HTTPS, fallback for HTTP development.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:63
↓ 4 callersMethod_create_default_client
Create a default httpx client from the OpenAPI spec's server URL.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:169
↓ 4 callersMethod_ensure_discovered
Ensure skills are discovered, rediscovering if reload is enabled.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:122
↓ 4 callersFunction_extract_csrf
Extract CSRF token from HTML form.
tests/server/auth/test_oauth_consent_page.py:97
↓ 4 callersFunction_extract_result
Extract the list of names from a call_tool ToolResult.
tests/server/transforms/test_catalog.py:253
↓ 4 callersMethod_extract_schema_dependencies
Extract all schema names referenced by a schema (including transitive dependencies). Args: schema: The schema to analyze
fastmcp_slim/fastmcp/utilities/openapi/parser.py:535
↓ 4 callersFunction_find_request
(request_id: str)
examples/apps/approvals/approvals_server.py:133
↓ 4 callersFunction_format_size
(size: int)
fastmcp_slim/fastmcp/apps/file_upload.py:83
↓ 4 callersFunction_get
(d: dict[str, Any], snake: str, camel: str)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:101
↓ 4 callersFunction_get_cache_path
Get the path to the version cache file.
fastmcp_slim/fastmcp/utilities/version_check.py:21
↓ 4 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:627
↓ 4 callersMethod_get_highest_version_result
Get the highest version from successful non-None results. Used for versioned components where we want the highest version across all
fastmcp_slim/fastmcp/server/providers/aggregate.py:156
↓ 4 callersMethod_get_jwks_key
Fetch key from JWKS with simple caching and SSRF protection.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:331
↓ 4 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/search/client_regex.py:23
↓ 4 callersFunction_get_tool_hash
Read the stored hash from tool meta, or compute from app name + tool name.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:46
↓ 4 callersMethod_get_verification_token
Get the token string to pass to the token verifier. Returns the upstream access token by default. Subclasses can override to verify a
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1653
↓ 4 callersFunction_hash_cache_key
Build a fixed-length SHA-256 cache key from request-derived input.
fastmcp_slim/fastmcp/server/middleware/caching.py:551
↓ 4 callersFunction_image_content_to_anthropic_block
Convert MCP ImageContent to Anthropic ImageBlockParam.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:55
↓ 4 callersFunction_image_content_to_openai_part
Convert MCP ImageContent to OpenAI image_url content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:63
↓ 4 callersMethod_list_resources_mcp
List all available resources, in the format expected by the low-level MCP server. Supports pagination when list_page_size is configur
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:120
↓ 4 callersMethod_list_tools
List all tools from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:638
↓ 4 callersMethod_make_provider
(self, resource: str | None = None)
tests/server/auth/providers/test_propelauth.py:189
↓ 4 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:580
↓ 4 callersMethod_make_template
(self)
tests/resources/test_resource_template_query_params.py:269
↓ 4 callersMethod_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/http.py:124
↓ 4 callersFunction_merge_domain_lists
( base: list[str] | None, extra: list[str] | None )
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:62
↓ 4 callersFunction_parse_key_version
Parse a key suffix into (name_or_uri, version). Keys always contain @ as a version delimiter (sentinel pattern): - "add@1.0" → ("add", "1.0")
fastmcp_slim/fastmcp/server/tasks/requests.py:53
↓ 4 callersFunction_parse_mcp_servers
Parse an ``mcpServers``-style dict into discovered servers.
fastmcp_slim/fastmcp/cli/discovery.py:90
↓ 4 callersFunction_read_cache
Read cached version info. Returns: Tuple of (cached_version, cache_timestamp) or (None, 0) if no cache.
fastmcp_slim/fastmcp/utilities/version_check.py:29
↓ 4 callersFunction_record_failure
( bucket: str, schema_name: str, schema_obj: dict, exc: BaseException )
tests/utilities/json_schema_type/test_real_world_schemas.py:278
↓ 4 callersFunction_redact_headers
(headers: httpx.Headers)
fastmcp_slim/fastmcp/server/providers/openapi/components.py:48
↓ 4 callersFunction_remember_snapshot
Bind a snapshot to the current asyncio context under ``task_id``. Nothing outside this task's context sees it; stale entries left in a reused
fastmcp_slim/fastmcp/server/tasks/context.py:197
↓ 4 callersFunction_response_to_create_message_result
Convert Google GenAI response to CreateMessageResult (no tools).
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:318
↓ 4 callersFunction_restore_request_context
Set the ``request_ctx``, ``_current_context`` and ``_current_server`` ContextVars from stashed values. Called at the start of proxy handler i
fastmcp_slim/fastmcp/server/providers/proxy.py:1017
↓ 4 callersFunction_scan_goose
Scan Goose config for MCP server extensions. Goose uses YAML (``~/.config/goose/config.yaml``) with a different schema — MCP servers are defi
fastmcp_slim/fastmcp/cli/discovery.py:251
↓ 4 callersFunction_schema_section
(schema: dict[str, Any] | None, title: str)
fastmcp_slim/fastmcp/server/transforms/search/base.py:114
↓ 4 callersFunction_suppress_user_scanners
Suppress all scanners that read real user config files.
tests/cli/test_discovery.py:505
↓ 4 callersMethod_upstream_oauth_client
(self)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:723
↓ 4 callersMethod_verify_cookie
Verify and extract payload from signed cookie. Returns: payload if signature valid, None otherwise
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:90
↓ 4 callersFunction_wait_for_process_exit
Poll until a process has exited, raising if it's still alive after timeout.
tests/test_mcp_config.py:400
↓ 4 callersMethodadd_prompts
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:172
↓ 4 callersMethodadd_template
Add a resource template to the server. Args: template: A ResourceTemplate instance to add Returns: The templ
fastmcp_slim/fastmcp/server/server.py:1800
↓ 4 callersMethodassert_notification_sent
Assert that a notification was sent a specific number of times.
tests/client/test_notifications.py:43
↓ 4 callersMethodcall_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:227
↓ 4 callersMethodcall_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:93
↓ 4 callersMethodcancel
Send a cancellation notification for an in-progress request.
fastmcp_slim/fastmcp/client/client.py:809
↓ 4 callersMethodclear
Clear all cached clients and force disconnect them.
fastmcp_slim/fastmcp/server/providers/proxy.py:1213
↓ 4 callersMethodconnect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
fastmcp_slim/fastmcp/client/transports/config.py:92
↓ 4 callersFunctioncreate_log_callback
(handler: LogHandler | None = None)
fastmcp_slim/fastmcp/client/logging.py:47
↓ 4 callersFunctioncreate_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 callersFunctioncreate_oauth_callback_server
Create an OAuth callback server. Args: port: The port to run the server on callback_path: The path to listen for OAuth redir
fastmcp_slim/fastmcp/client/oauth_callback.py:103
↓ 4 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_end_to_end_compatibility.py:11
↓ 4 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_openapi_features.py:20
↓ 4 callersFunctiondelegate_span
Create an INTERNAL span for provider delegation. Used by FastMCPProvider when delegating to mounted servers. Automatically records any except
fastmcp_slim/fastmcp/server/telemetry.py:109
↓ 4 callersFunctiondiscover_and_import
Discover files, import modules, and extract components. This is the main entry point for filesystem-based discovery. Args: root: Roo
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:361
↓ 4 callersFunctiondiscover_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:314
↓ 4 callersMethodexchange_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:1052
↓ 4 callersMethodfail
()
tests/utilities/test_async_utils.py:61
↓ 4 callersMethodfn
()
tests/prompts/test_prompt.py:14
↓ 4 callersMethodfrom_bool
Convert a boolean task flag to a TaskConfig.
fastmcp_slim/fastmcp/utilities/tasks.py:49
↓ 4 callersMethodfrom_dict
(cls, data: dict[str, str])
fastmcp_slim/fastmcp/client/oauth_callback.py:87
↓ 4 callersFunctionfunc
(x: int, y: int)
tests/tools/tool_transform/test_args.py:334
↓ 4 callersFunctiongetAmplitude
()
docs/fastmcp-analytics.js:42
↓ 4 callersFunctionget_dataclass_field
(type: type, field_name: str)
tests/utilities/json_schema_type/test_advanced.py:16
↓ 4 callersFunctionget_http_headers
Extract headers from the current HTTP request if available. Never raises an exception, even if there is no active HTTP request (in which case
fastmcp_slim/fastmcp/server/dependencies.py:410
↓ 4 callersFunctionget_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:98
↓ 4 callersMethodget_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:246
↓ 4 callersMethodget_resource_template
Get resource template by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server
fastmcp_slim/fastmcp/server/providers/base.py:286
↓ 4 callersMethodget_span_attributes
(self)
fastmcp_slim/fastmcp/tools/base.py:472
↓ 4 callersFunctionget_subscriber_count
Get number of active subscribers (for monitoring).
fastmcp_slim/fastmcp/server/tasks/notifications.py:306
↓ 4 callersMethodget_tasks
Get task-eligible components with all transforms applied. Overrides AggregateProvider.get_tasks() to apply server-level transforms af
fastmcp_slim/fastmcp/server/server.py:542
↓ 4 callersMethodget_tool
Get tool by transformed name with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMCP)
fastmcp_slim/fastmcp/server/providers/base.py:158
↓ 4 callersMethodget_tool
Get tool by transformed name.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:75
↓ 4 callersMethodget_tool
(name: str, version=None)
tests/server/providers/test_local_provider.py:633
↓ 4 callersMethodget_tool_catalog
Fetch the real tool catalog, bypassing this transform. The result is deduplicated by name so that only the highest version of each to
fastmcp_slim/fastmcp/server/transforms/catalog.py:171
↓ 4 callersMethodintersect
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 callersFunctionisPrefectDestination
(url)
docs/fastmcp-analytics.js:115
↓ 4 callersMethodis_fresh
(self, ttl: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:562
↓ 4 callersFunctionlist_command
List tools available on an MCP server. Examples: fastmcp list http://localhost:8000/mcp fastmcp list server.py fastmcp li
fastmcp_slim/fastmcp/cli/client.py:641
↓ 4 callersMethodlist_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:64
↓ 4 callersMethodlist_tools
Apply transforms to matching tools.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:64
↓ 4 callersMethodload_access_token
Validate FastMCP JWT by swapping for upstream token. This implements the token swap pattern: 1. Verify FastMCP JWT signature (proves
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1774
↓ 4 callersFunctionload_and_merge_config
Load config from server_spec and apply CLI overrides. This consolidates the config parsing logic that was duplicated across run, inspect, and
fastmcp_slim/fastmcp/utilities/cli.py:33
↓ 4 callersMethodlog_response
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev.py:89
↓ 4 callersMethodon_request
Implement retry logic for requests.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:202
↓ 4 callersFunctionparseUrl
(href)
docs/fastmcp-analytics.js:107
↓ 4 callersFunctionparse_hashed_resource_uri
Extract the hash from a Prefab renderer URI, or None.
fastmcp_slim/fastmcp/server/providers/addressing.py:60
↓ 4 callersMethodremove_label
Remove a label from an issue.
scripts/auto_close_duplicates.py:177
↓ 4 callersMethodremove_tool
Remove tool(s) from the server. .. deprecated:: Use ``mcp.local_provider.remove_tool(name)`` instead. Args:
fastmcp_slim/fastmcp/server/server.py:1613
↓ 4 callersMethodreset
Clear all recorded notifications.
tests/server/test_session_visibility.py:44
← previousnext →501–600 of 10,312, ranked by callers