MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions13,374 in github.com/PrefectHQ/fastmcp

↓ 2 callersFunctionactor
(login: str, kind: str = "User")
tests/scripts/test_release_contributor_credit.py:9
↓ 2 callersMethodadd
(self, a: int, b: int)
tests/server/middleware/test_caching.py:129
↓ 2 callersFunctionaddDropdown
()
docs/language-dropdown.js:54
↓ 2 callersMethodadd_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 callersMethodadd_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 callersMethodadd_server
Add or update a server in the configuration.
fastmcp_slim/fastmcp/mcp_config.py:332
↓ 2 callersMethodadd_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:112
↓ 2 callersFunctionapi
(*args: str)
scripts/release_contributor_credit.py:33
↓ 2 callersFunctionapps
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:340
↓ 2 callersMethodassert_notification_sent
Assert that a notification was sent a specific number of times.
tests/client/test_notifications.py:44
↓ 2 callersFunctionassessment_digest
(issue: Issue, config: Config)
scripts/rank_issues.py:1004
↓ 2 callersMethodasync_auth_flow
( self, request: httpx2.Request )
fastmcp_slim/fastmcp/client/auth/client_credentials.py:384
↓ 2 callersFunctionauthorization
()
tests/cli/deploy/test_output.py:15
↓ 2 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:375
↓ 2 callersFunctionblock_server_imports
()
tests/client/test_slim_package_boundaries.py:16
↓ 2 callersFunctionbuild_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 callersFunctioncall_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 callersMethodcancel
Request cooperative cancellation of the task via `tasks/cancel`.
fastmcp_tasks/fastmcp_tasks/client.py:512
↓ 2 callersMethodclear
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:185
↓ 2 callersMethodclear
Empty the session's user state but keep the session valid. The user-state sub-dict is reset to empty while the creation marker stays
fastmcp_slim/fastmcp/server/sessions.py:281
↓ 2 callersFunctionclear_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:412
↓ 2 callersFunctioncollect
(task)
examples/tasks/client.py:119
↓ 2 callersFunctioncommit_authors
(pr: dict[str, Any])
scripts/release_contributor_credit.py:121
↓ 2 callersMethodconnect_session
( self, **session_kwargs: Any )
tests/client/client/test_client.py:962
↓ 2 callersMethodconnect_session
( self, **session_kwargs: Any )
tests/client/client/test_session.py:24
↓ 2 callersFunctionconvert_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:270
↓ 2 callersMethodconvert_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:480
↓ 2 callersMethodconvert_result
Convert a raw return value to PromptResult. Accepts: - PromptResult: passed through - str: wrapped as single Message
fastmcp_slim/fastmcp/prompts/base.py:309
↓ 2 callersFunctionconvert_roots_list
(roots: RootsList)
fastmcp_slim/fastmcp/client/roots.py:20
↓ 2 callersFunctioncreate_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:415
↓ 2 callersFunctioncreate_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 callersFunctioncreate_fastmcp_server_for_headers
Create a FastMCP server from FastAPI app with experimental parser.
tests/client/test_openapi.py:14
↓ 2 callersFunctioncreate_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 callersMethodcreate_oauth_app
()
tests/server/auth/test_enhanced_error_responses.py:650
↓ 2 callersFunctioncreate_okp_token
Create a JWT signed by an OKP key.
tests/server/auth/test_jwt_provider.py:107
↓ 2 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_openapi_discriminator.py:14
↓ 2 callersFunctioncreate_roots_callback
( handler: RootsList | RootsHandler, )
fastmcp_slim/fastmcp/client/roots.py:34
↓ 2 callersFunctioncreate_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 callersFunctioncursor_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 callersMethoddecode
Return the serialized snapshot a stored value holds. Raises ``SnapshotDecryptionError`` if the value was not produced by this key, in
fastmcp_tasks/fastmcp_tasks/encryption.py:130
↓ 2 callersFunctiondecorator
(fn: F, tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:611
↓ 2 callersFunctiondecorator
(fn: F, prompt_name: str | None)
fastmcp_slim/fastmcp/prompts/function_prompt.py:433
↓ 2 callersFunctiondefault_serializer
(data: Any)
fastmcp_slim/fastmcp/tools/base.py:72
↓ 2 callersMethoddelete_state
Delete a value from the state store. Removes from both request-scoped and session-scoped stores.
fastmcp_slim/fastmcp/server/context.py:1178
↓ 2 callersFunctionemit_error
Show a stable expected command failure.
fastmcp_slim/fastmcp/cli/deploy/output.py:257
↓ 2 callersMethodencode
Return the encrypted form of a serialized snapshot.
fastmcp_tasks/fastmcp_tasks/encryption.py:126
↓ 2 callersMethodenum_schema
Generate inline enum schema. Always generates enum pattern: `{"enum": [value, ...]}` Titled enums are handled separately via dict-bas
fastmcp_slim/fastmcp/server/elicitation.py:94
↓ 2 callersFunctionextract_exploded_query_params
Extract query parameter names declared with the RFC 6570 explode modifier. `{?tags*}` marks `tags` as repeatable — `?tags=a&tags=b` collects into
fastmcp_slim/fastmcp/resources/template.py:88
↓ 2 callersFunctionextract_query_params
Extract query parameter names from RFC 6570 `{?param1,param2}` syntax. The explode modifier is stripped, so `{?tags*}` yields `{"tags"}`. Use
fastmcp_slim/fastmcp/resources/template.py:40
↓ 2 callersFunctionextract_version_spec
Extract the FastMCP component version from a lifted ``_meta`` block.
fastmcp_slim/fastmcp/server/dependencies.py:140
↓ 2 callersFunctionfactory_error
()
tests/server/providers/proxy/test_server_metadata.py:505
↓ 2 callersFunctionfail
()
tests/experimental/transforms/test_code_mode.py:1166
↓ 2 callersFunctionfastmcp_server
()
tests/server/http/test_http_dependencies.py:32
↓ 2 callersFunctionfetch
(path: str, url: str = Depends(get_url, scheme="https"))
tests/server/test_call_arguments.py:72
↓ 2 callersFunctionfind_claude_command
Find the Claude Code CLI command. Checks common installation locations since 'claude' is often a shell alias that doesn't work with subproces
fastmcp_slim/fastmcp/cli/install/claude_code.py:20
↓ 2 callersFunctionfind_gemini_command
Find the Gemini CLI command.
fastmcp_slim/fastmcp/cli/install/gemini_cli.py:20
↓ 2 callersFunctionflat_chain_schema
(length: int)
tests/utilities/json_schema_type/test_generated_classes.py:463
↓ 2 callersFunctionformat_mcp_info
Format server info as standard MCP protocol JSON. Uses Client to get the standard MCP protocol format with camelCase fields. Includes version
fastmcp_slim/fastmcp/utilities/inspect.py:467
↓ 2 callersMethodfrom_fastapi
Create a FastMCP server from a FastAPI application. Args: app: FastAPI application instance name: Name for t
fastmcp_slim/fastmcp/server/server.py:2404
↓ 2 callersMethodfrom_json
Deserialize from JSON stored in Redis.
fastmcp_tasks/fastmcp_tasks/context.py:215
↓ 2 callersMethodfrom_mcp_tool
Factory method to create a ProxyTool from a raw MCP tool schema.
fastmcp_slim/fastmcp/server/providers/proxy.py:369
↓ 2 callersMethodfrom_result
Detach forwarded values from the backend session's adopted result.
fastmcp_slim/fastmcp/server/providers/proxy.py:1131
↓ 2 callersFunctionfunc
(x: int, y: int)
tests/tools/tool_transform/test_args.py:334
↓ 2 callersFunctiongc_collect_harder
()
tests/test_mcp_config.py:70
↓ 2 callersMethodgenerate_name
(cls, name: str | None = None)
fastmcp_slim/fastmcp/server/server.py:2459
↓ 2 callersMethodget_calls
Get all recorded calls for a specific method or hook. Args: method: The method to filter by (e.g. "tools/list")
tests/server/middleware/test_middleware_nested.py:50
↓ 2 callersMethodget_challenge_scopes
Prefix any effective validation scopes for Azure authorization.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:788
↓ 2 callersMethodget_client_id
(ctx)
tests/server/middleware/test_rate_limiting.py:219
↓ 2 callersFunctionget_db_pool
()
examples/memory.py:77
↓ 2 callersMethodget_error_stats
Get error statistics for monitoring.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:120
↓ 2 callersFunctionget_function_type_hints
Resolve a function's type hints, keeping `Annotated` metadata. Before Python 3.11, `typing.get_type_hints` wraps the hint of every parameter
fastmcp_slim/fastmcp/utilities/types.py:51
↓ 2 callersFunctionget_http_status_code
Return the response status code from a recognized HTTP status error.
fastmcp_slim/fastmcp/utilities/exceptions.py:26
↓ 2 callersMethodget_middleware
Get HTTP application-level middleware for this auth provider. Returns: List of Starlette Middleware instances to apply to the HTT
fastmcp_slim/fastmcp/server/auth/auth.py:442
↓ 2 callersMethodget_notifications
Get all recorded notifications, optionally filtered by method.
tests/client/test_notifications.py:36
↓ 2 callersMethodget_prompt
Retrieve a rendered prompt message list from the server. Args: name (str): The name of the prompt to retrieve. argume
fastmcp_slim/fastmcp/client/mixins/prompts.py:186
↓ 2 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
↓ 2 callersFunctionget_property
(tool: Tool, name: str)
tests/tools/tool_transform/test_tool_transform.py:23
↓ 2 callersFunctionget_protocol_span_attributes
Get the negotiated MCP protocol version for the current request. Mirrors the `mcp.protocol.version` attribute the SDK's own `OpenTelemetryMid
fastmcp_slim/fastmcp/server/telemetry.py:74
↓ 2 callersMethodget_routes
( self, mcp_path: str | None = None, )
fastmcp_slim/fastmcp/server/auth/providers/descope.py:324
↓ 2 callersFunctionget_session_span_attributes
Get session attributes for the current request.
fastmcp_slim/fastmcp/server/telemetry.py:60
↓ 2 callersFunctionget_task_server
Get the registered server for a background task, if still alive.
fastmcp_tasks/fastmcp_tasks/context.py:476
↓ 2 callersFunctionget_task_session
Get a registered session by ID if still alive. Returns None in distributed workers where the session lives in another process — callers must
fastmcp_tasks/fastmcp_tasks/context.py:446
↓ 2 callersMethodget_token_verifier
Creates a Cognito-specific token verifier with claim filtering. Args: algorithm: Optional token verifier algorithm au
fastmcp_slim/fastmcp/server/auth/providers/aws.py:239
↓ 2 callersMethodget_tool
Get tool by namespaced name.
fastmcp_slim/fastmcp/server/transforms/namespace.py:103
↓ 2 callersFunctiongh
(*args: str)
scripts/gate_digest.py:92
↓ 2 callersFunctiongoose_command
Install an MCP server in Goose. Uses uvx to run the server. Environment variables are not included in the deeplink; use `fastmcp install mcp-
fastmcp_slim/fastmcp/cli/install/goose.py:135
↓ 2 callersMethodgraphql
(self, query: str, variables: dict[str, Any])
scripts/rank_issues.py:178
↓ 2 callersMethodhandle
Wrap SDK handle() and transform auth error responses. The SEP-990 jwt-bearer (ID-JAG) grant is dispatched here rather than by the SDK
fastmcp_slim/fastmcp/server/auth/auth.py:80
↓ 2 callersFunctionhashed_lookup_target
The tool a running `get_tool_by_hash()` on `provider` found, if any.
fastmcp_slim/fastmcp/server/providers/base.py:796
↓ 2 callersMethodhome
(self)
examples/smart_home/src/smart_home/fire_tv/client.py:27
↓ 2 callersFunctioninfer_transport_type_from_url
Infer the appropriate transport type from the given URL.
fastmcp_slim/fastmcp/mcp_config.py:55
↓ 2 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
↓ 2 callersFunctioninstall_cursor_workspace
Install FastMCP server to workspace-specific Cursor configuration. Args: file: Path to the server file server_object: Optional se
fastmcp_slim/fastmcp/cli/install/cursor.py:59
↓ 2 callersFunctionis_already_in_uv_subprocess
Check if we're already running in a FastMCP uv subprocess.
fastmcp_slim/fastmcp/utilities/cli.py:28
↓ 2 callersFunctionis_app_tool_with_identity
Whether a tool carries this identity hash and is callable by apps.
fastmcp_slim/fastmcp/server/providers/addressing.py:65
↓ 2 callersFunctionis_cancelled
Whether the task was logically cancelled (see ``mark_cancelled``).
fastmcp_tasks/fastmcp_tasks/input_store.py:446
↓ 2 callersFunctionis_prefab_app
Return whether a value is a Prefab app.
fastmcp_slim/fastmcp/utilities/prefab.py:51
↓ 2 callersFunctionis_prefab_component
Return whether a value is a Prefab component.
fastmcp_slim/fastmcp/utilities/prefab.py:60
↓ 2 callersFunctionis_prefab_type
Return whether a type is a Prefab app or component type.
fastmcp_slim/fastmcp/utilities/prefab.py:42
↓ 2 callersFunctionjev_questions
(project: str)
scripts/rank_issues.py:485
← previousnext →1,301–1,400 of 13,374, ranked by callers