MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions11,669 in github.com/PrefectHQ/fastmcp

↓ 5 callersFunction_schema_to_type
Convert schema to appropriate Python type.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:447
↓ 5 callersMethod_server
(self)
tests/tasks/server/test_task_config.py:150
↓ 5 callersMethodasend
(self, value)
tests/client/auth/test_oauth_client.py:399
↓ 5 callersFunctionconfigure_logging
Configure logging for FastMCP. Args: logger: the logger to configure level: the log level to use rich_kwargs: the pa
fastmcp_slim/fastmcp/utilities/logging.py:29
↓ 5 callersMethodconsume
Try to consume tokens from the bucket. Args: tokens: Number of tokens to consume Returns: True if tokens wer
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:38
↓ 5 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_deepobject_style.py:11
↓ 5 callersFunctioncreate_page
Create a complete HTML page with FastMCP styling. Args: content: HTML content to place inside the page title: Page title
fastmcp_slim/fastmcp/utilities/ui.py:453
↓ 5 callersMethodcreate_proxy
Create an OAuth proxy with specified storage.
tests/server/auth/test_oauth_proxy_storage.py:45
↓ 5 callersMethodcreate_scoped_app
( required_scopes: list[str], scopes_supported: list[str], challenge_scopes: list[str]
tests/server/auth/test_enhanced_error_responses.py:635
↓ 5 callersFunctioncreate_sse_app
Return an instance of the SSE server app. Args: server: The FastMCP server instance message_path: Path for SSE messages s
fastmcp_slim/fastmcp/server/http.py:416
↓ 5 callersFunctiondedupe_with_versions
Deduplicate components by key, keeping highest version. Groups components by key, selects the highest version from each group, and injects av
fastmcp_slim/fastmcp/utilities/versions.py:306
↓ 5 callersFunctiondefault_log_handler
Default handler that properly routes server log messages to appropriate log levels.
fastmcp_slim/fastmcp/client/logging.py:17
↓ 5 callersFunctionextract_output_schema_from_responses
Extract output schema from OpenAPI responses for use as MCP tool output schema. This function finds the first successful response (200, 201,
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:643
↓ 5 callersMethodfail
()
tests/utilities/test_async_utils.py:72
↓ 5 callersFunctionformat_fastmcp_info
Format FastMCPInfo as FastMCP-specific JSON. This includes FastMCP-specific fields like tags, enabled, annotations, etc.
fastmcp_slim/fastmcp/utilities/inspect.py:438
↓ 5 callersMethodfrom_openapi
Create a FastMCP server from an OpenAPI specification. Args: openapi_spec: OpenAPI schema as a dictionary cl
fastmcp_slim/fastmcp/server/server.py:2384
↓ 5 callersMethodgenerate
Generate an RSA key pair for testing. Returns: RSAKeyPair: Generated key pair
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:93
↓ 5 callersFunctiongenerate_schema
Generate JSON schema for fastmcp.json files. This is used to create the schema file that IDEs can use for validation and auto-completion.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:416
↓ 5 callersMethodget_meta
(self)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:43
↓ 5 callersMethodget_prompt
Get prompt by transformed name with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMC
fastmcp_slim/fastmcp/server/providers/base.py:331
↓ 5 callersFunctionget_task_scope
Get the authorization scope for task isolation. Returns the raw scope identifier for the current access token, or ``None`` when no auth conte
fastmcp_tasks/fastmcp_tasks/context.py:47
↓ 5 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:172
↓ 5 callersMethodgetsockname
(self)
tests/client/auth/test_oauth_client.py:362
↓ 5 callersFunctionhandle_phue_error
Creates a standardized error response for phue operations.
examples/smart_home/src/smart_home/lights/hue_utils.py:23
↓ 5 callersMethodis_fresh
(self, ttl: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:757
↓ 5 callersFunctionis_loopback_host
Check if a host is a loopback address. Per RFC 8252 §7.3, loopback covers the whole reserved loopback range, not just the two familiar litera
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:174
↓ 5 callersFunctionmake_access_token
A minimal FastMCP access token for auth-scoped task tests.
tests/tasks/task_helpers.py:60
↓ 5 callersFunctionmock_cognito_oidc_discovery
Context manager to mock AWS Cognito OIDC discovery endpoint.
tests/server/auth/providers/test_aws.py:12
↓ 5 callersFunctionnew_mock_context
Create a new mock middleware context.
tests/server/middleware/test_logging.py:38
↓ 5 callersFunctionnormalize_timeout_to_timedelta
Normalize a timeout value to a timedelta. Args: value: Timeout value as int/float (seconds), timedelta, or None Returns: tim
fastmcp_slim/fastmcp/utilities/timeout.py:8
↓ 5 callersMethodon_message
Start ping task on first message from a connection.
fastmcp_slim/fastmcp/server/middleware/ping.py:44
↓ 5 callersFunctionparse_frontmatter
Parse YAML frontmatter from markdown content. Args: content: Markdown content potentially starting with --- Returns: Tuple o
fastmcp_slim/fastmcp/server/providers/skills/_common.py:33
↓ 5 callersFunctionparse_header
(value: str)
fastmcp_remote/fastmcp_remote/cli.py:73
↓ 5 callersFunctionprepare
Prepare a FastMCP project by creating a persistent uv environment. This command creates a persistent uv project with all dependencies installed:
fastmcp_slim/fastmcp/cli/cli.py:1032
↓ 5 callersMethodprepare
Prepare the Python environment using uv. Args: output_dir: Directory where the persistent uv project will be created.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:109
↓ 5 callersFunctionread_client_extension_settings
Read a client's per-request extension opt-in from the request `_meta`. SEP-2133 extensions negotiate per request: the client repeats its extensio
fastmcp_slim/fastmcp/server/extensions.py:235
↓ 5 callersMethodrefresh_token
Fetch a new access token using a refresh token. If the server does not rotate the refresh token, the previous one is injected into th
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:127
↓ 5 callersMethodregister_prompts
Registers all methods marked with @mcp_prompt with the FastMCP server. Args: mcp_server: The FastMCP server instance to register
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:256
↓ 5 callersMethodregister_resources
Registers all methods marked with @mcp_resource with the FastMCP server. Args: mcp_server: The FastMCP server instance to registe
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:221
↓ 5 callersFunctionresolve_serialize_by_alias
Resolve the effective ``by_alias`` setting for serializing *value*. Pydantic's low-level serialization helpers (``to_json``, ``to_jsonable_py
fastmcp_slim/fastmcp/tools/base.py:55
↓ 5 callersFunctionrun
Run an MCP server or connect to a remote one. The server can be specified in several ways: 1. Module approach: "server.py" - runs the module
fastmcp_slim/fastmcp/cli/cli.py:409
↓ 5 callersMethodrun
(self)
tests/client/minimal_stdio_server.py:171
↓ 5 callersFunctionrun_asgi_lifespan
Run an ASGI application's lifespan, driving the protocol as a real server does. The application's lifespan runs inside a dedicated task for the w
fastmcp_slim/fastmcp/utilities/asgi_transport.py:224
↓ 5 callersFunctionrun_module_command
Run a Python module directly using ``python -m <module>``. When ``-m`` is used, the module manages its own server startup. No server-object d
fastmcp_slim/fastmcp/cli/run.py:277
↓ 5 callersMethodsave
(self, deps: Deps)
examples/memory.py:102
↓ 5 callersMethodset_mcp_path
Bind the default verifier's audience to this server's resource URL.
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:281
↓ 5 callersFunctionset_up_component_manager
Set up HTTP routes for enabling/disabling tools, resources, and prompts. Args: server: The FastMCP server instance. path: Base pa
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:17
↓ 5 callersFunctionsync_skills
Download all available skills from a server. Args: client: Connected FastMCP client target_dir: Directory where skill folders wil
fastmcp_slim/fastmcp/utilities/skills.py:218
↓ 5 callersMethodto_audio_content
( self, mime_type: str | None = None, annotations: Annotations | None = None, )
fastmcp_slim/fastmcp/utilities/types.py:355
↓ 5 callersMethodto_transport
(self)
fastmcp_slim/fastmcp/mcp_config.py:212
↓ 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 callersMethodwrap
(cls, value: ToolResult)
fastmcp_slim/fastmcp/server/middleware/caching.py:132
↓ 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:945
↓ 4 callersFunctionCurrentFastMCP
Get the current FastMCP server instance. This dependency provides access to the active FastMCP server. Returns: A dependency that re
fastmcp_slim/fastmcp/server/dependencies.py:990
↓ 4 callersMethod__init__
Initialize a FastMCPProvider. Args: server: The FastMCP server to wrap.
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:394
↓ 4 callersMethod__init__
Initialize the multi-auth provider. Args: server: Optional auth provider (e.g., OAuthProxy) that owns routes and
fastmcp_slim/fastmcp/server/auth/auth.py:671
↓ 4 callersFunction_answer
Read the string value a client accepted for `key` (test helper).
tests/tasks/server/test_guard_reentrant.py:47
↓ 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:52
↓ 4 callersFunction_audio_content_to_openai_part
Convert MCP AudioContent to OpenAI input_audio content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:80
↓ 4 callersFunction_backend_list_roots
Issue a handshake-era `roots/list` from a backend server. `Context` has no `list_roots()`: server-initiated requests are not part of FastMCP'
tests/server/providers/proxy/test_proxy_client.py:62
↓ 4 callersMethod_build_discovery_tools
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:533
↓ 4 callersMethod_cached_fetch
Serve one of the cacheable list verbs through the response cache. Mirrors the SDK Client's `_cached_fetch`: cursorless `use` calls are served
fastmcp_slim/fastmcp/client/client.py:1177
↓ 4 callersMethod_context_prompt_server
()
tests/server/test_mrtr_guards_components.py:70
↓ 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:39
↓ 4 callersMethod_cookie_name
Return secure cookie name for HTTPS, fallback for HTTP development.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:76
↓ 4 callersFunction_create_client_factory
Create a client factory from the given target. Internal helper that handles the session strategy based on the target type: - Connected Client
fastmcp_slim/fastmcp/server/providers/proxy.py:1086
↓ 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 callersFunction_ctx_with_meta
(meta: dict[str, Any] | None)
tests/server/test_extensions.py:411
↓ 4 callersFunction_current_leg_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:85
↓ 4 callersFunction_dump
(model: Any)
tests/tasks/server/test_wire_models.py:52
↓ 4 callersFunction_echo_server
()
tests/server/http/test_routable_headers.py:20
↓ 4 callersFunction_elicit_request
(message: str)
tests/tasks/server/test_guard_reentrant.py:35
↓ 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_as_dict
Resolves a schema and returns it as a dictionary.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:215
↓ 4 callersFunction_find_request
(request_id: str)
examples/apps/approvals/approvals_server.py:133
↓ 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:822
↓ 4 callersMethod_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:149
↓ 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 callersMethod_get_refresh_lock
Get or create a per-token refresh lock, evicting LRU entries when at capacity.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:833
↓ 4 callersMethod_get_scopes_supported
Return the advertised scopes, discovering them lazily if enabled. The result of a successful discovery is cached for the provider's l
fastmcp_slim/fastmcp/server/auth/providers/descope.py:215
↓ 4 callersMethod_get_tool
( self, name: str, version: VersionSpec | None = None )
fastmcp_slim/fastmcp/server/providers/proxy.py:852
↓ 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:47
↓ 4 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:2571
↓ 4 callersFunction_hash_cache_key
Build a fixed-length SHA-256 cache key from request-derived input.
fastmcp_slim/fastmcp/server/middleware/caching.py:608
↓ 4 callersFunction_legacy_client
(handler)
tests/server/providers/openapi/test_legacy_client_compat.py:54
↓ 4 callersMethod_list_tools
List all tools from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:833
↓ 4 callersFunction_make_add_server
()
tests/test_mcp_config.py:408
↓ 4 callersFunction_make_ctx
(request: Request | None)
tests/server/http/test_stale_access_token.py:25
↓ 4 callersMethod_make_provider
(self, resource: str | None = None)
tests/server/auth/providers/test_propelauth.py:190
↓ 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/sse.py:106
↓ 4 callersFunction_make_versioned_tool
Create a tool with a specific version for testing.
tests/server/transforms/test_catalog.py:23
↓ 4 callersFunction_map_key
Redis hash mapping a leg's surfaced keys back to the tool's own keys.
fastmcp_tasks/fastmcp_tasks/input_store.py:112
↓ 4 callersFunction_methods_server
()
tests/tasks/server/test_task_methods.py:30
↓ 4 callersFunction_mock_github_success
Configure *mock_client* to return a successful GitHub user + scopes response.
tests/server/auth/providers/test_github.py:159
↓ 4 callersFunction_next_poll_delay
Delay before the next poll, plus the backoff for the round after. With no status notifications on the modern protocol, polling is the only si
fastmcp_tasks/fastmcp_tasks/client.py:152
← previousnext →501–600 of 11,669, ranked by callers