MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

↓ 6 callersFunctionnode
(tag, text, className)
status-site/app.js:43
↓ 6 callersFunctionnormalize_api_origin
Validate and normalize a Horizon API origin.
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:129
↓ 6 callersFunctionnormalize_completion
Coerce a handler's return value into a wire ``Completion``. A returned ``str`` is rejected: it is almost always a mistake (the value would it
fastmcp_slim/fastmcp/server/completions.py:54
↓ 6 callersMethodobserve
()
tests/test_status_refresh.cjs:39
↓ 6 callersMethodon_request
Apply rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:265
↓ 6 callersMethodping
Send a ping request.
fastmcp_slim/fastmcp/client/client.py:1583
↓ 6 callersMethodprepare
Prepare environment and source for execution. When output_dir is provided, creates a persistent uv project. When output_dir is None,
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:372
↓ 6 callersFunctionprincipal_string
(token: SDKAccessToken)
tests/server/test_sessions.py:39
↓ 6 callersFunctionquiet
Silence loggers that report an interruption a check causes on purpose.
tests/downstream/_harness.py:136
↓ 6 callersFunctionredact_backend_url
Mask the password in a backend URL so it can be printed or logged. Redis URLs carry the password in the userinfo component (`redis://user:sec
fastmcp_tasks/fastmcp_tasks/worker_cli.py:55
↓ 6 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:126
↓ 6 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:302
↓ 6 callersFunctionreplaying_server
An upstream that replays its whole log on every check, as some do.
tests/experimental/events/test_push_lifecycle.py:34
↓ 6 callersFunctionrequire_docket
Raise ImportError with install instructions if docket not available. Args: feature: Description of what requires docket (e.g., "`task=Tru
fastmcp_tasks/fastmcp_tasks/dependencies.py:45
↓ 6 callersMethodrun
(self, coro)
tests/pbt/test_components_machine.py:135
↓ 6 callersMethodsave
(name: str)
tests/server/providers/test_prefab_roundtrip.py:707
↓ 6 callersFunctionsend
(message: Message)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:249
↓ 6 callersFunctionserve
Run server.py over `http`, `sse`, or `proxy` (HTTP) with bearer auth for the block.
tests/downstream/_harness.py:105
↓ 6 callersFunctionsession_id_parameter_names
Names of a function's parameters annotated with `SessionId`. Scans resolved type hints for `Annotated[str, _SessionIdMarker()]` metadata. Ret
fastmcp_slim/fastmcp/server/sessions.py:343
↓ 6 callersFunctionsession_storage_key
The single storage key holding a session's state dict. Keyed by `(principal, session_id)`: the principal is the isolation wall, the id organi
fastmcp_slim/fastmcp/server/sessions.py:164
↓ 6 callersFunctionstore_code
(proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_single_use.py:46
↓ 6 callersMethodto_audio_content
( self, mime_type: str | None = None, annotations: Annotations | None = None, )
fastmcp_slim/fastmcp/utilities/types.py:370
↓ 6 callersMethodto_transport
(self)
fastmcp_slim/fastmcp/mcp_config.py:223
↓ 6 callersFunctiontool_identity
Read a tool's stored identity hash, if it carries one.
fastmcp_slim/fastmcp/server/providers/addressing.py:53
↓ 6 callersFunctionwatch_command
Subscribe to an event type and print each event as it arrives. Arguments are key=value pairs, coerced with the event type's input schema. The
fastmcp_slim/fastmcp/cli/events.py:141
↓ 6 callersFunctionwrite_skill
(root: Path, name: str = "review")
tests/skills/test_skill.py:15
↓ 5 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:1095
↓ 5 callersMethod__init__
(self)
tests/server/middleware/test_initialization_middleware.py:120
↓ 5 callersMethod_apply_task_transforms
Apply this provider's transforms to components bound for Docket. Registration needs the names components are called by, so renaming t
fastmcp_slim/fastmcp/server/providers/base.py:629
↓ 5 callersMethod_backend
()
tests/server/providers/test_prefab_roundtrip.py:219
↓ 5 callersFunction_backfill_boolean_defaults
Fill in missing boolean fields with their model defaults. HTML checkboxes omit the field entirely when unchecked, so the submitted data dict
fastmcp_slim/fastmcp/apps/form.py:67
↓ 5 callersFunction_build_stdio_from_command
Shell-split a command string into a ``StdioTransport``.
fastmcp_slim/fastmcp/cli/client.py:145
↓ 5 callersMethod_collect_list_results
Collect successful list results, logging any exceptions. Emits a warning when the same MCP identity is returned by more than one prov
fastmcp_slim/fastmcp/server/providers/aggregate.py:206
↓ 5 callersMethod_construct_and_capture_timeout
Construct a provider with mocked discovery, returning the timeout used.
tests/server/auth/test_oidc_proxy.py:888
↓ 5 callersMethod_convert_tool_choice_to_anthropic
Convert MCP tool_choice to Anthropic format. Returns None for "none" mode, signaling that tools should be omitted from the request en
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:397
↓ 5 callersMethod_cookie_header
(parameters, arguments)
tests/server/providers/openapi/test_openapi_features.py:1695
↓ 5 callersMethod_create
Write the initial record so the session exists (called by `create_session`).
fastmcp_slim/fastmcp/server/sessions.py:247
↓ 5 callersMethod_create_test_auth_provider
Helper to create a test RemoteAuthProvider with StaticTokenVerifier.
tests/server/auth/test_remote_auth_provider.py:237
↓ 5 callersMethod_disconnect
Disconnect from session using reference counting. This method implements proper cleanup for reentrant context managers: - De
fastmcp_slim/fastmcp/client/client.py:1163
↓ 5 callersFunction_dump
(model: Any)
tests/tasks/server/test_wire_models.py:52
↓ 5 callersMethod_ensure_setup
Lazily register tools and resources on first access.
fastmcp_slim/fastmcp/apps/generative.py:99
↓ 5 callersMethod_extract_scopes
Extract scopes from JWT claims. Supports both 'scope' and 'scp' claims. Checks the `scope` claim first (standard OAuth2 clai
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:521
↓ 5 callersFunction_find_azure_provider
Extract an AzureProvider from an auth provider, unwrapping MultiAuth if needed.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:861
↓ 5 callersFunction_forwardable_request_meta
Frontend request metadata that may cross onto the backend connection. This is the proxy's one sanctioned read of the inbound request's `_meta`:
fastmcp_slim/fastmcp/server/providers/proxy.py:190
↓ 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:209
↓ 5 callersFunction_grant_alive
Whether the grant behind a FastMCP access token still exists.
tests/server/auth/oauth_proxy/test_refresh_reuse.py:35
↓ 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:675
↓ 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:196
↓ 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_rotate_once
(proxy)
tests/server/auth/oauth_proxy/test_refresh_reuse.py:22
↓ 5 callersFunction_run_call
(*argv: str)
tests/cli/test_client_commands.py:1013
↓ 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:1211
↓ 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:231
↓ 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:307
↓ 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:2287
↓ 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:417
↓ 5 callersFunctioncall
()
tests/client/test_stdio.py:119
↓ 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 callersMethodclient
(self, target: Any, **kwargs: Any)
tests/downstream/smoke_langchain_mcp.py:102
↓ 5 callersFunctioncreate_elicitation_callback
( elicitation_handler: ElicitationHandler, )
fastmcp_slim/fastmcp/client/elicitation.py:53
↓ 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:700
← previousnext →701–800 of 16,725, ranked by callers