MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 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:21
↓ 4 callersFunctioncreate_secure_html_response
Create an HTMLResponse with security headers. Adds X-Frame-Options: DENY to prevent clickjacking attacks per MCP security best practices.
fastmcp_slim/fastmcp/utilities/ui.py:609
↓ 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:411
↓ 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:1069
↓ 4 callersMethodfail
()
tests/utilities/test_async_utils.py:61
↓ 4 callersMethodfn
()
tests/prompts/test_prompt.py:14
↓ 4 callersMethodformat
(self, record: logging.LogRecord)
tests/server/test_logging.py:12
↓ 4 callersFunctionformat_info
Format server information according to the specified format. Args: mcp: The FastMCP instance format: Output format ("fastmcp" or
fastmcp_slim/fastmcp/utilities/inspect.py:465
↓ 4 callersFunctionformat_ip_for_url
Format IP address for use in URL (bracket IPv6 addresses). IPv6 addresses must be bracketed in URLs to distinguish the address from the port
fastmcp_slim/fastmcp/server/auth/ssrf.py:44
↓ 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 callersFunctiongetAmplitude
()
docs/fastmcp-analytics.js:42
↓ 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_notifications
Get all recorded notifications, optionally filtered by method.
tests/server/test_session_visibility.py:36
↓ 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
(uri: str, version=None)
tests/server/providers/test_transforming_provider.py:189
↓ 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:501
↓ 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:570
↓ 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
(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_allowed
Check if a request is allowed.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:77
↓ 4 callersMethodis_fresh
(self, ttl: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:553
↓ 4 callersFunctionis_url
Check if a string is a URL.
fastmcp_slim/fastmcp/cli/run.py:84
↓ 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_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:65
↓ 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:1791
↓ 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 callersMethodon_request
Implement retry logic for requests.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:202
↓ 4 callersMethodon_request
Apply rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:159
↓ 4 callersMethodparse
Parse the OpenAPI schema into HTTP routes.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:663
↓ 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 callersMethodregister_all
Registers all marked tools, resources, and prompts with the server. This method calls ``register_tools``, ``register_resources``, and
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:298
↓ 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:1664
↓ 4 callersMethodreset
Clear all recorded notifications.
tests/server/test_session_visibility.py:44
↓ 4 callersMethodreset_visibility
Clear all session visibility rules. Use this to reset session visibility back to global defaults. Sends notifications to this sessio
fastmcp_slim/fastmcp/server/context.py:1402
↓ 4 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:143
↓ 4 callersMethodset_logging_level
Send a logging/setLevel request.
fastmcp_slim/fastmcp/client/client.py:838
↓ 4 callersMethodset_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:394
↓ 4 callersFunctionshould_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
↓ 4 callersFunctiontest_server
()
tests/test_mcp_config.py:424
↓ 4 callersMethodto_image_content
Convert to MCP ImageContent.
fastmcp_slim/fastmcp/utilities/types.py:289
↓ 4 callersMethodto_mcp_prompt_message
Convert to MCP PromptMessage.
fastmcp_slim/fastmcp/prompts/base.py:99
↓ 4 callersMethodto_mcp_prompt_result
Convert to MCP GetPromptResult.
fastmcp_slim/fastmcp/prompts/base.py:188
↓ 4 callersMethodto_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:405
↓ 4 callersMethodto_mcp_result
( self, )
fastmcp_slim/fastmcp/tools/base.py:161
↓ 4 callersMethodvalidate_function
Validate that a function is compatible with this task config.
fastmcp_slim/fastmcp/utilities/tasks.py:57
↓ 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_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:277
↓ 3 callersFunction_by_status
(status: str)
examples/apps/approvals/approvals_server.py:129
↓ 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:706
↓ 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 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:487
↓ 3 callersFunction_exception_events
(span)
tests/server/telemetry/test_sampling_tracing.py:24
↓ 3 callersFunction_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:41
↓ 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_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:108
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:191
↓ 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:105
↓ 3 callersMethod_get_token_expiry_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:111
↓ 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:369
↓ 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 callersMethod_handle_idp_callback
Handle callback from upstream IdP and forward to client. This implements the DCR-compliant callback forwarding: 1. Receive IdP callba
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2140
↓ 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:63
↓ 3 callersMethod_initialize
Load stored tokens and client info, properly setting token expiry.
fastmcp_slim/fastmcp/client/auth/oauth.py:327
↓ 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:35
↓ 3 callersMethod_list_prompts
Return all available prompts. Override to provide prompts dynamically. Returns ALL versions of all prompts. The server handles dedupl
fastmcp_slim/fastmcp/server/providers/base.py:455
↓ 3 callersMethod_list_resource_templates
Return all available resource templates. Override to provide resource templates dynamically. Returns ALL versions. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:424
↓ 3 callersMethod_list_resources
Return all available resources. Override to provide resources dynamically. Returns ALL versions of all resources. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:393
↓ 3 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
↓ 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:361
↓ 3 callersMethod_list_tools
List all tools from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:629
↓ 3 callersMethod_make_access_token
(self, aud: str)
tests/server/auth/providers/test_propelauth.py:198
↓ 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:572
↓ 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:588
↓ 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:580
↓ 3 callersMethod_make_state_key
Create session-prefixed key for state storage.
fastmcp_slim/fastmcp/server/context.py:1245
↓ 3 callersMethod_make_token
(scopes: list[str])
tests/server/middleware/test_caching.py:720
↓ 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:124
↓ 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
← previousnext →501–600 of 10,524, ranked by callers