Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
↓ 2 callers
Method
_set_auth
(self, auth: httpx2.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/sse.py:79
↓ 2 callers
Method
_set_list_cookie
( self: OAuthProxy, response: HTMLResponse | RedirectResponse, base_name: str,
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:218
↓ 2 callers
Method
_setup_session_with_claims
Set up a proxy JWT pointing at a valid upstream token, with optional upstream_claims.
tests/server/auth/oauth_proxy/test_tokens.py:1701
↓ 2 callers
Function
_skill_md_uri
(path: str)
fastmcp_slim/fastmcp/skills/provider.py:494
↓ 2 callers
Function
_spans
(exporter: InMemorySpanExporter)
tests/tasks/server/test_task_tracing.py:33
↓ 2 callers
Function
_split_declared_strictness
Pop `"additionalProperties": false` from every migrated schema, asserting it's there. FastMCP's generated tool schemas declare `"additionalProper
tests/docs/test_upgrade_guide_equivalence.py:81
↓ 2 callers
Function
_sse_session
Open an SSE stream and yield the session's message endpoint URL.
tests/server/http/test_sse_host_origin_protection.py:57
↓ 2 callers
Function
_stop_reason
Map Gemini's finish reason to MCP's stop reason, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:364
↓ 2 callers
Function
_stop_reason
Map OpenAI's finish reason to MCP's stop reason, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:64
↓ 2 callers
Function
_stop_reason
Map Anthropic's stop reason to MCP's, so a caller can tell a reply cut off at max_tokens from a finished one.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:55
↓ 2 callers
Function
_strip_structural_schema_keys
(schema: dict[str, Any])
fastmcp_slim/fastmcp/tools/tool_transform.py:57
↓ 2 callers
Function
_tally
(t: DrawnTemplate)
tests/pbt/test_uri_template.py:26
↓ 2 callers
Function
_task_key_ttl_seconds
Wall-clock TTL for a task's Redis metadata keys. Docket's ``execution_ttl`` plus a buffer (matching task creation), so a key written or refre
fastmcp_tasks/fastmcp_tasks/handlers.py:117
↓ 2 callers
Function
_task_server
()
tests/tasks/server/test_task_protocol.py:20
↓ 2 callers
Method
_template
(self)
tests/resources/test_resource_template_meta.py:39
↓ 2 callers
Function
_terminal_elicitation_handler
Prompt the user on the terminal for elicitation responses. Prints the server's message and prompts for each field in the schema. The user can
fastmcp_slim/fastmcp/cli/client.py:199
↓ 2 callers
Function
_terminal_error_message
The best available error message for a failed task.
fastmcp_tasks/fastmcp_tasks/client.py:308
↓ 2 callers
Function
_text
One table-safe line: no pipes or line breaks from another publisher.
scripts/maintenance_status.py:387
↓ 2 callers
Function
_text
Content is objects on the sync path and plain dicts on the task path.
tests/tasks/server/test_task_async_generator_tools.py:28
↓ 2 callers
Method
_to_parent
(self, uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:61
↓ 2 callers
Method
_to_server_and_underlying_transport
Turn the transforming server into a FastMCP proxy and return its transport.
fastmcp_slim/fastmcp/mcp_config.py:124
↓ 2 callers
Function
_tokenize
Normalize and extract Unicode alphanumeric tokens.
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:20
↓ 2 callers
Method
_transform_name
Apply namespace prefix to a name.
fastmcp_slim/fastmcp/server/transforms/namespace.py:60
↓ 2 callers
Method
_transport_answering
An in-memory transport whose ``server/discover`` returns ``body`` verbatim.
tests/client/client/test_mode_negotiation.py:184
↓ 2 callers
Method
_truncate_to_result
Truncate text to fit within max_size and wrap in ToolResult.
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:75
↓ 2 callers
Method
_try_transparent_refresh
Refresh the upstream token transparently and update storage. Called during load_access_token when the upstream token has expired but
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2136
↓ 2 callers
Function
_unclamp_logger
Remove all clamped log filters from the logger.
fastmcp_slim/fastmcp/utilities/logging.py:260
↓ 2 callers
Method
_update
(self, result: ResultT)
tests/server/providers/proxy/test_server_metadata.py:108
↓ 2 callers
Function
_update_lock_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:474
↓ 2 callers
Method
_updates
( self, result: mcp_types.InitializeResult | mcp_types.DiscoverResult, upstream: _Upst
fastmcp_slim/fastmcp/server/providers/proxy.py:1383
↓ 2 callers
Method
_updates
(self, result: mcp_types.Result)
tests/server/providers/proxy/test_server_metadata.py:47
↓ 2 callers
Function
_validate_app_tool_name
Keep registered app names distinct from generated call addresses.
fastmcp_slim/fastmcp/apps/app.py:113
↓ 2 callers
Method
_validate_configuration
( self, server: FastMCP, providers: Sequence[Provider] )
fastmcp_slim/fastmcp/skills/extension.py:71
↓ 2 callers
Function
_validate_files
(sizes: Mapping[str, int])
fastmcp_slim/fastmcp/skills/skill.py:70
↓ 2 callers
Function
_validate_input
Validate tool input with *type_adapter*, honoring ``strict``. Tool arguments are JSON, but pydantic's strict mode on Python input only accept
fastmcp_slim/fastmcp/tools/function_tool.py:177
↓ 2 callers
Function
_validate_skill_paths
Check that each path ends with its skill's name and holds no other skill.
fastmcp_slim/fastmcp/skills/provider.py:458
↓ 2 callers
Function
_visibility_rules_key
State-store key for this client's visibility rules. None when the request carries no client identity to scope rules to (an unauthenticated MC
fastmcp_slim/fastmcp/server/transforms/visibility.py:314
↓ 2 callers
Function
_wait_for_process_exit
Poll until a process has exited, raising if it's still alive after timeout.
tests/test_mcp_config.py:724
↓ 2 callers
Function
_walk_tool_calls
Collect every ``toolCall`` action object in a payload tree.
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:44
↓ 2 callers
Function
_worker_snapshot_headers
Read the HTTP headers snapshotted at task submission from inside a worker.
tests/server/http/test_http_dependencies.py:229
↓ 2 callers
Function
_wrap_body_errors
Wrap ``fn`` so a ``pydantic.ValidationError`` raised by its body is re-raised as ``_ToolBodyError``. The wrapper preserves ``fn``'s signature
fastmcp_slim/fastmcp/tools/function_tool.py:85
↓ 2 callers
Function
_write_cache
Write version info to cache.
fastmcp_slim/fastmcp/utilities/version_check.py:54
↓ 2 callers
Function
_write_map
(payload: dict[str, Any], names: dict[str, str])
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:73
↓ 2 callers
Function
_write_tool
(path: Path, name: str)
tests/fs/test_extraction_failures.py:45
↓ 2 callers
Function
accept
(admin: redis.Redis, password: str)
tests/downstream/smoke_redis_credentials.py:122
↓ 2 callers
Function
acquire_update_lock
Take the per-task update lock, or return False if one is already held. Serializes concurrent ``tasks/update`` calls for a task so two racing
fastmcp_tasks/fastmcp_tasks/input_store.py:478
↓ 2 callers
Function
acquire_update_lock_blocking
Wait for the per-task update lock, up to ``timeout`` seconds. ``tasks/cancel`` uses this to serialize with an in-flight ``tasks/update``: it
fastmcp_tasks/fastmcp_tasks/input_store.py:498
↓ 2 callers
Function
actor
(login: str, kind: str = "User")
tests/scripts/test_release_contributor_credit.py:9
↓ 2 callers
Method
adb_close
(self)
examples/smart_home/src/smart_home/fire_tv/client.py:39
↓ 2 callers
Method
adb_shell
(self, command: str)
examples/smart_home/src/smart_home/fire_tv/client.py:35
↓ 2 callers
Method
add
(self, kind, owner, data, version, tags)
tests/pbt/test_components_machine.py:196
↓ 2 callers
Function
addDropdown
()
docs/language-dropdown.js:54
↓ 2 callers
Method
add_prompt
Add a prompt to this provider's storage. Accepts either a Prompt object or a decorated function with __fastmcp__ metadata.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/prompts.py:35
↓ 2 callers
Method
add_resource
Add a resource to this provider's storage. Accepts either a Resource/ResourceTemplate object or a decorated function with __fastmcp__ metadat
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/resources.py:41
↓ 2 callers
Method
add_server
Add or update a server in the configuration.
fastmcp_slim/fastmcp/mcp_config.py:383
↓ 2 callers
Method
add_tool
Add a tool to this provider's storage. Accepts either a Tool object or a decorated function with __fastmcp__ metadata.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:111
↓ 2 callers
Method
analyze
(content: str)
tests/utilities/test_inspect.py:200
↓ 2 callers
Method
anchor_paths
Make relative file paths absolute against the config file's directory. Anchors `source.path` and `environment.requirements`, so a config
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:250
↓ 2 callers
Function
api
(*args: str)
scripts/release_contributor_credit.py:33
↓ 2 callers
Function
apps
Preview a FastMCPApp UI in the browser. Starts the MCP server from SERVER_SPEC on --mcp-port, launches a local dev UI on --dev-port with a to
fastmcp_slim/fastmcp/cli/cli.py:325
↓ 2 callers
Method
assert_notification_sent
Assert that a notification was sent a specific number of times.
tests/client/test_notifications.py:44
↓ 2 callers
Function
assessment_digest
(issue: Issue, config: Config)
scripts/rank_issues.py:995
↓ 2 callers
Method
async_auth_flow
( self, request: httpx2.Request )
fastmcp_slim/fastmcp/client/auth/client_credentials.py:412
↓ 2 callers
Function
authorization
()
tests/cli/deploy/test_output.py:15
↓ 2 callers
Function
backlog
()
status-site/app.js:145
↓ 2 callers
Function
block_server_imports
()
tests/client/test_slim_package_boundaries.py:16
↓ 2 callers
Function
build_app
The ASGI app the conformance suite is run against. Shared by the pytest fixture and the `__main__` entry point so both exercise the same conf
tests/conformance/server.py:867
↓ 2 callers
Function
call
(token: str, name: str, args: dict[str, Any])
tests/server/auth/test_auth_source_identities.py:226
↓ 2 callers
Method
call
(self, arguments: dict[str, Any])
tests/server/providers/openapi/test_write_only_responses.py:189
↓ 2 callers
Method
call_log_tool
Call a tool that logs "hello" with `ctx.<method>`. Returns the levels of the log messages the client received.
tests/server/test_context.py:650
↓ 2 callers
Function
call_tool_with_optin
Run a `tools/call` with the tasks opt-in bound into the request context.
tests/tasks/server/test_task_proxy.py:26
↓ 2 callers
Method
calls
(client: Client)
tests/client/client/test_session.py:91
↓ 2 callers
Method
cancel
Request cooperative cancellation of the task via `tasks/cancel`.
fastmcp_tasks/fastmcp_tasks/client.py:517
↓ 2 callers
Function
chartFrame
(id, label, height = 250)
status-site/app.js:61
↓ 2 callers
Method
check_resource_access
Authorize resource access without reading content. Raise AuthorizationError to deny access. Resource authorization policies should li
fastmcp_slim/fastmcp/server/middleware/middleware.py:246
↓ 2 callers
Method
clear
Clear this adapter's collection only. Prefers deleting each enumerated key (which leaves the collection usable), and falls back to wh
fastmcp_slim/fastmcp/client/caching.py:189
↓ 2 callers
Method
clear
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:136
↓ 2 callers
Function
clear_outstanding
Drop a leg's outstanding requests and mapping once it has been answered. The answered surfaced keys are never reused (a later leg mints its own),
fastmcp_tasks/fastmcp_tasks/input_store.py:428
↓ 2 callers
Method
clone
Return an unbound copy sharing the configured credential provider. Providers may own locks or token-refresh clients that cannot be copied.
fastmcp_tasks/fastmcp_tasks/extension.py:143
↓ 2 callers
Function
collect
( node: dict[str, Any], refs: set[str] )
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:278
↓ 2 callers
Function
commit_authors
(pr: dict[str, Any])
scripts/release_contributor_credit.py:121
↓ 2 callers
Function
configured
(endpoint: str, source_id: str | None = None)
tests/server/auth/test_auth_source_identities.py:480
↓ 2 callers
Method
connect
( self, *, transport_options: TransportOptions | None = None, **session_kwargs
fastmcp_slim/fastmcp/client/transports/stdio.py:103
↓ 2 callers
Method
connect_session
( self, **session_kwargs: Any )
tests/client/client/test_client.py:1076
↓ 2 callers
Method
connect_session
(self, **session_kwargs: Any)
tests/client/transports/test_transports.py:23
↓ 2 callers
Function
convert_raw_to_resource_result
Wrap a user function's return value in a ResourceResult. Shared by `Resource` and `ResourceTemplate` so both honor the MIME type the componen
fastmcp_slim/fastmcp/resources/base.py:243
↓ 2 callers
Method
convert_result
Convert a raw result to ResourceResult. This is used in two contexts: 1. In _read() to convert user function return values to Resourc
fastmcp_slim/fastmcp/resources/template.py:548
↓ 2 callers
Method
convert_result
Convert a raw return value to PromptResult. Accepts: - PromptResult: passed through - str: wrapped as single Message
fastmcp_slim/fastmcp/prompts/base.py:320
↓ 2 callers
Function
convert_roots_list
(roots: RootsList)
fastmcp_slim/fastmcp/client/roots.py:20
↓ 2 callers
Function
create_base_app
Create a base Starlette app with common middleware and routes. Args: routes: List of routes to include in the app middleware: Lis
fastmcp_slim/fastmcp/server/http.py:419
↓ 2 callers
Function
create_consent_html
Create a styled HTML consent page for OAuth authorization requests. Args: csp_policy: Content Security Policy override. If No
fastmcp_slim/fastmcp/server/auth/oauth_proxy/ui.py:20
↓ 2 callers
Function
create_fastmcp_server_for_headers
Create a FastMCP server from FastAPI app with experimental parser.
tests/client/test_openapi.py:14
↓ 2 callers
Function
create_info_box
Create an info box. Args: content: HTML content for the info box is_error: True for error styling, False for normal
fastmcp_slim/fastmcp/utilities/ui.py:539
↓ 2 callers
Method
create_oauth_app
()
tests/server/auth/test_enhanced_error_responses.py:687
↓ 2 callers
Function
create_okp_token
Create a JWT signed by an OKP key.
tests/server/auth/test_jwt_provider.py:107
↓ 2 callers
Function
create_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_openapi_discriminator.py:14
↓ 2 callers
Function
create_roots_callback
( handler: RootsList | RootsHandler, )
fastmcp_slim/fastmcp/client/roots.py:34
↓ 2 callers
Function
create_status_message
Create a status message with icon. Args: message: Status message text is_success: True for success (✓), False for error (✕)
fastmcp_slim/fastmcp/utilities/ui.py:516
↓ 2 callers
Function
cursor_command
Install an MCP server in Cursor. Args: server_spec: Python file to install, optionally with :object suffix
fastmcp_slim/fastmcp/cli/install/cursor.py:228
↓ 2 callers
Function
dateTicks
(graph, entries, x, bottom, width, label)
status-site/app.js:89
← previous
next →
1,601–1,700 of 16,098, ranked by callers