MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,976 in github.com/PrefectHQ/fastmcp

↓ 5 callersFunction_forwardable_server_meta
Backend result metadata that may cross onto the frontend connection. Connection-owned keys never cross. The backend's ``serverInfo`` stamp is an
fastmcp_slim/fastmcp/server/providers/proxy.py:201
↓ 5 callersFunction_guard_status
( *, host: str, origin: str | None = None, server: tuple[str, int] | None = None, mode: Li
tests/server/http/test_http_auth_middleware.py:50
↓ 5 callersFunction_http_auth
Build the server's transport and return the auth it resolved to.
tests/client/transports/test_oauth_transport_reuse.py:39
↓ 5 callersFunction_input_required
( requests: dict[str, mcp_types.ElicitRequest], request_state: str | None = None, )
tests/tasks/server/test_guard_reentrant.py:55
↓ 5 callersFunction_is_loopback_host
(host: str)
fastmcp_slim/fastmcp/server/http.py:137
↓ 5 callersMethod_list_tools
(self)
fastmcp_slim/fastmcp/server/providers/filesystem.py:210
↓ 5 callersFunction_make_add_server
()
tests/test_mcp_config.py:672
↓ 5 callersFunction_make_dev_app
Build the authenticated Starlette development host.
fastmcp_slim/fastmcp/cli/apps_dev.py:1320
↓ 5 callersFunction_make_get_prompt_cache_key
Make a cache key for a prompt get using name, version, and arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:732
↓ 5 callersFunction_make_resolver
Create a CallTool resolver that addresses peer tools by identity. ``app_name`` is the FastMCPApp's name, known at serialization time from the
fastmcp_slim/fastmcp/apps/app.py:56
↓ 5 callersFunction_methods_server
()
tests/tasks/server/test_task_methods.py:31
↓ 5 callersMethod_raises_on_provider_error
Whether a failing provider fails the aggregate operation. The global setting is read on every call so it can be toggled at runtime.
fastmcp_slim/fastmcp/server/providers/aggregate.py:186
↓ 5 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
↓ 5 callersFunction_rebuild_transport
Evaluate a serialized transport expression together with its imports.
tests/cli/test_generate_cli_remote.py:37
↓ 5 callersMethod_request
( self, method: str, path: str, *, authenticated: bool = False,
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:191
↓ 5 callersMethod_request_manifests
(self)
fastmcp_slim/fastmcp/skills/provider.py:92
↓ 5 callersMethod_require_status
(response: httpx2.Response, expected: int)
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:235
↓ 5 callersMethod_resource_server
()
tests/server/test_mrtr_guards_components.py:127
↓ 5 callersFunction_response_to_create_message_result
Convert Google GenAI response to CreateMessageResult (no tools).
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:380
↓ 5 callersFunction_scan_cursor_workspace
Walk up from *start_dir* looking for ``.cursor/mcp.json``.
fastmcp_slim/fastmcp/cli/discovery.py:243
↓ 5 callersFunction_scan_gemini
Scan Gemini CLI settings for MCP servers. Checks both user-level ``~/.gemini/settings.json`` and project-level ``.gemini/settings.json``.
fastmcp_slim/fastmcp/cli/discovery.py:270
↓ 5 callersFunction_schema_title
(schema: Mapping[str, Any], default: str)
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1184
↓ 5 callersFunction_schema_type
(schema: Any)
fastmcp_slim/fastmcp/server/transforms/search/base.py:93
↓ 5 callersMethod_server
(self)
tests/tasks/server/test_task_config.py:150
↓ 5 callersFunction_session_request_meta
Adapt forwardable metadata for a direct backend-session call. Direct session calls bypass the high-level client mixins, so trace context is i
fastmcp_slim/fastmcp/server/providers/proxy.py:223
↓ 5 callersMethod_session_with_capabilities
Build a session over a 2026-07-28 request envelope.
tests/test_apps.py:459
↓ 5 callersMethod_sign_cookie
Sign a cookie payload with HMAC-SHA256. Returns: base64(payload).base64(signature)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:147
↓ 5 callersFunction_spec
(path: str, method: str, operation: dict[str, Any])
tests/server/providers/openapi/test_undeclared_arguments.py:47
↓ 5 callersFunction_stash_proxy_request_context
Stash the proxy's ``RequestContext`` on a ``ProxyClient`` before a backend call. Every proxy component (tool, resource, template, prompt) must ca
fastmcp_slim/fastmcp/server/providers/proxy.py:262
↓ 5 callersFunction_unwrap_type_alias
Resolve a PEP 695 ``type X = ...`` alias to its underlying value. ``get_origin()`` returns ``None`` for a ``TypeAliasType``, so an alias that
fastmcp_slim/fastmcp/tools/function_parsing.py:82
↓ 5 callersFunction_upstream
(status: int)
tests/server/providers/openapi/test_http_errors.py:51
↓ 5 callersFunction_upstream_client
(requests: list[httpx2.Request])
tests/server/providers/openapi/test_undeclared_arguments.py:63
↓ 5 callersFunction_validate_relative_path
(path: str)
fastmcp_slim/fastmcp/skills/skill.py:54
↓ 5 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:157
↓ 5 callersFunction_write_json
(payload: object, *, stderr: bool = False)
fastmcp_slim/fastmcp/cli/deploy/output.py:38
↓ 5 callersFunction_write_utf8_json
(path: Path, data: dict[str, Any])
tests/cli/test_config_encoding.py:47
↓ 5 callersMethodadd_exception
( self, exception: BaseException, *, url: str | re.Pattern[str] | httpx2.URL |
tests/utilities/httpx2_mock.py:127
↓ 5 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:2114
↓ 5 callersMethodainvoke
( self, messages: list[Any], *args: Any, **kwargs: Any )
tests/downstream/smoke_agno.py:75
↓ 5 callersFunctionarguments_received_through_batch_file
Return the batch file and the argv its program receives. Models `cmd /s /c`, then a batch file line such as npm's `"%_prog%" "%dp0%\\cli.js"
tests/cli/test_install_cli_arguments.py:177
↓ 5 callersFunctionassert_files_match
(client: Client, entry: MCPSkill)
tests/skills/test_composition.py:34
↓ 5 callersMethodauthorize
Start OAuth transaction and redirect to Azure AD. Override parent's authorize method to filter out the 'resource' parameter which is
fastmcp_slim/fastmcp/server/auth/providers/azure.py:403
↓ 5 callersFunctioncallback
()
tests/experimental/transforms/test_monty_callback_lifecycle.py:99
↓ 5 callersFunctioncheck_public_response_is_valid
The public response validates, an empty one is rejected, and the request still carries and requires `password`.
tests/server/providers/openapi/test_write_only_responses.py:194
↓ 5 callersFunctionclaude_project
(tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
tests/cli/test_claude_code_precedence.py:14
↓ 5 callersMethodclear
Clear all cached clients and force disconnect them.
fastmcp_slim/fastmcp/server/providers/proxy.py:2029
↓ 5 callersMethodclient
(self, target: Any, **kwargs: Any)
tests/downstream/smoke_langchain_mcp.py:102
↓ 5 callersFunctioncreate_launch
(client: TestClient, tool: str = "ping")
tests/cli/test_apps_dev_server.py:98
↓ 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:49
↓ 5 callersMethodcreate_proxy
(self, jwt_verifier, storage=None)
tests/server/auth/test_oauth_proxy_storage.py:247
↓ 5 callersMethodcreate_scoped_app
( required_scopes: list[str], scopes_supported: list[str], challenge_scopes: list[str]
tests/server/auth/test_enhanced_error_responses.py:672
↓ 5 callersFunctioncreate_server
()
tests/server/http/test_sse_host_origin_protection.py:28
↓ 5 callersFunctiondateLabel
(at, options = {})
status-site/app.js:35
↓ 5 callersFunctiondefault_log_handler
Default handler that properly routes server log messages to appropriate log levels.
fastmcp_slim/fastmcp/client/logging.py:17
↓ 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 callersFunctionforward_uri
Build the URI a forwarding layer (mount or proxy) sends to the server behind it. The path is expanded from `uri_template` with `params`, but the
fastmcp_slim/fastmcp/resources/template.py:405
↓ 5 callersMethodfrom_dict
(cls, data: dict[str, str])
fastmcp_slim/fastmcp/client/oauth_callback.py:92
↓ 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:446
↓ 5 callersFunctionget_auth_span_attributes
Get auth attributes for the current request, if authenticated.
fastmcp_slim/fastmcp/server/telemetry.py:59
↓ 5 callersMethodget_client_info
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:179
↓ 5 callersFunctionget_dataclass_field
(type: type, field_name: str)
tests/utilities/json_schema_type/test_advanced.py:18
↓ 5 callersMethodget_meta
(self)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:60
↓ 5 callersMethodget_notifications
Get all recorded notifications, optionally filtered by method.
tests/server/test_session_visibility.py:37
↓ 5 callersMethodget_prompt_mcp
Send a prompts/get request and return the complete MCP protocol result. Args: name (str): The name of the prompt to retrieve.
fastmcp_slim/fastmcp/client/mixins/prompts.py:120
↓ 5 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:386
↓ 5 callersMethodget_routes
Delegate route creation to the server.
fastmcp_slim/fastmcp/server/auth/auth.py:1038
↓ 5 callersMethodget_since
(self, since_id: int = 0)
fastmcp_slim/fastmcp/cli/apps_dev_log.py:169
↓ 5 callersMethodget_tool_by_hash
Get an app-visible tool by its identity hash, through `get_tool()`. The identity hash survives renaming, so `_get_tool_by_hash()` finds
fastmcp_slim/fastmcp/server/providers/base.py:261
↓ 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 callersFunctioninstall_claude_desktop
Install FastMCP server in Claude Desktop. Args: file: Path to the server file server_object: Optional server object name (for :ob
fastmcp_slim/fastmcp/cli/install/claude_desktop.py:49
↓ 5 callersMethodis_allowed
Check if a request is allowed.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:147
↓ 5 callersMethodis_fresh
(self, ttl: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:935
↓ 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:223
↓ 5 callersFunctionjson_schema_to_type_adapter
Return a cached `TypeAdapter` for `json_schema_to_type(schema)`. Adapters are cached by schema content in a bounded cache, so the classes the
fastmcp_slim/fastmcp/utilities/json_schema_type.py:501
↓ 5 callersFunctionlisted
(provider: SkillsDirectoryProvider)
tests/skills/test_directory_provider.py:29
↓ 5 callersMethodload
(self)
fastmcp_slim/fastmcp/cli/deploy/configuration.py:40
↓ 5 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:2245
↓ 5 callersFunctionmake_app_server
A server whose ``contacts`` app backend tool ``save`` records its calls.
tests/server/auth/test_authorization.py:1671
↓ 5 callersFunctionmanifest_for
(files: dict[str, bytes])
tests/skills/test_read_skill.py:179
↓ 5 callersFunctionmanifest_server
(files: dict[str, bytes], manifest: dict[str, Any])
tests/skills/test_read_skill.py:160
↓ 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 callersMethodobserve
()
tests/test_status_refresh.cjs:39
↓ 5 callersMethodon_message
Handle errors for all messages.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:120
↓ 5 callersMethodon_message
Start ping task on first message from a connection.
fastmcp_slim/fastmcp/server/middleware/ping.py:45
↓ 5 callersFunctionparse_header
(value: str)
fastmcp_remote/fastmcp_remote/cli.py:78
↓ 5 callersFunctionpet_spec
(openapi_version: str)
tests/server/providers/openapi/test_read_only_requests.py:12
↓ 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:1025
↓ 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 callersMethodquery
(search: str)
tests/test_fastmcp_app.py:139
↓ 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:306
↓ 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:272
↓ 5 callersMethodregister_tools
Register the tools provided by this class with the given MCP server.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:72
↓ 5 callersMethodremove_tool
(self, name: str, version: str | None = None)
fastmcp_slim/fastmcp/server/server.py:408
↓ 5 callersMethodreset
Clear all recorded notifications.
tests/server/test_session_visibility.py:45
↓ 5 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:1315
↓ 5 callersFunctionresolve
(items: dict[str, Any], target: str)
examples/smart_home/src/smart_home/lights/server.py:25
← previousnext →701–800 of 15,976, ranked by callers