MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 2 callersMethodadd
(self, a: int, b: int)
tests/server/middleware/test_caching.py:120
↓ 2 callersMethodadd
(a: int, b: int)
tests/server/tasks/test_task_mount.py:430
↓ 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:37
↓ 2 callersMethodadd_provider
Add a provider with optional namespace. If the provider is a FastMCP server, it's automatically wrapped in FastMCPProvider to ensure
fastmcp_slim/fastmcp/server/providers/aggregate.py:90
↓ 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:38
↓ 2 callersMethodadd_template
Add a resource template to this provider's storage.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/resources.py:101
↓ 2 callersMethodadd_to_docket
Schedule this component for background execution via docket. Subclasses override this to handle their specific calling conventions: -
fastmcp_slim/fastmcp/utilities/components.py:248
↓ 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:126
↓ 2 callersMethodadd_tool_transformation
Add a tool transformation. .. deprecated:: Use ``add_transform(ToolTransform({...}))`` instead.
fastmcp_slim/fastmcp/server/server.py:619
↓ 2 callersMethodaiter_bytes
()
tests/server/auth/test_ssrf_protection.py:186
↓ 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:43
↓ 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:374
↓ 2 callersFunctionblock_server_imports
()
tests/client/test_slim_package_boundaries.py:13
↓ 2 callersMethodcall_tool
( self: Client, name: str, arguments: dict[str, Any] | None = None, *,
fastmcp_slim/fastmcp/client/mixins/tools.py:211
↓ 2 callersMethodcapture
Capture current context for background task execution.
fastmcp_slim/fastmcp/server/tasks/context.py:124
↓ 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:243
↓ 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:285
↓ 2 callersFunctionconvert_roots_list
(roots: RootsList)
fastmcp_slim/fastmcp/client/roots.py:19
↓ 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:386
↓ 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:13
↓ 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 callersFunctioncreate_resource
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/resources/function_resource.py:278
↓ 2 callersFunctioncreate_roots_callback
( handler: RootsList | RootsHandler, )
fastmcp_slim/fastmcp/client/roots.py:33
↓ 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 callersFunctiondecorator
(fn: F, tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:693
↓ 2 callersFunctiondecorator
(fn: F, prompt_name: str | None)
fastmcp_slim/fastmcp/prompts/function_prompt.py:493
↓ 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:1305
↓ 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 callersMethodexchange_refresh_token
( self, client: OAuthClientInformationFull, refresh_token: RefreshToken, scope
tests/server/test_auth_integration.py:126
↓ 2 callersFunctionexecute_tools
Execute tool calls and return results. Args: tool_calls: List of tool use requests from the LLM. tool_map: Mapping from tool name
fastmcp_slim/fastmcp/server/sampling/run.py:253
↓ 2 callersFunctionextract_query_params
Extract query parameter names from RFC 6570 `{?param1,param2}` syntax.
fastmcp_slim/fastmcp/resources/template.py:35
↓ 2 callersFunctionfail
Always raises an error.
examples/apps/inspector_demo.py:114
↓ 2 callersFunctionfastmcp_server
()
tests/server/http/test_http_dependencies.py:14
↓ 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 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:432
↓ 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:2381
↓ 2 callersMethodfrom_mcp_tool
Factory method to create a ProxyTool from a raw MCP tool schema.
fastmcp_slim/fastmcp/server/providers/proxy.py:148
↓ 2 callersFunctiongc_collect_harder
()
tests/test_mcp_config.py:58
↓ 2 callersFunctiongc_collect_harder
()
tests/client/test_stdio.py:18
↓ 2 callersMethodgenerate_name
(cls, name: str | None = None)
fastmcp_slim/fastmcp/server/server.py:2473
↓ 2 callersFunctionget_auth_span_attributes
Get auth attributes for the current request, if authenticated.
fastmcp_slim/fastmcp/server/telemetry.py:14
↓ 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:48
↓ 2 callersMethodget_client_id
(ctx)
tests/server/middleware/test_rate_limiting.py:165
↓ 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:131
↓ 2 callersFunctionget_fn_name
(fn: Callable[..., Any])
tests/conftest.py:82
↓ 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:329
↓ 2 callersMethodget_notifications
Get all recorded notifications, optionally filtered by method.
tests/client/test_notifications.py:35
↓ 2 callersMethodget_prompt
( self: Client, name: str, arguments: dict[str, Any] | None = None, *,
fastmcp_slim/fastmcp/client/mixins/prompts.py:184
↓ 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:113
↓ 2 callersFunctionget_property
(tool: Tool, name: str)
tests/tools/tool_transform/test_tool_transform.py:21
↓ 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:233
↓ 2 callersMethodget_tokens
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:123
↓ 2 callersMethodget_tool
Get tool by namespaced name.
fastmcp_slim/fastmcp/server/transforms/namespace.py:103
↓ 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 callersMethodhandle
Wrap SDK handle() and transform auth error responses.
fastmcp_slim/fastmcp/server/auth/auth.py:76
↓ 2 callersFunctionhandle_task_input
Handle input sent to a background task via tasks/sendInput. This is called when a client sends input in response to an elicitation request fr
fastmcp_slim/fastmcp/server/tasks/elicitation.py:292
↓ 2 callersFunctioninfer_transport_type_from_url
Infer the appropriate transport type from the given URL.
fastmcp_slim/fastmcp/mcp_config.py:54
↓ 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 callersMethodlifespan
User-overridable lifespan for custom setup and teardown. Override this method to perform provider-specific initialization like openin
fastmcp_slim/fastmcp/server/providers/base.py:535
↓ 2 callersMethodlifespan_context
Access the server's lifespan context. Returns the context dict yielded by *this* server's lifespan function. For a mounted child this
fastmcp_slim/fastmcp/server/context.py:354
↓ 2 callersMethodlist_tools
Prefix tool names with namespace.
fastmcp_slim/fastmcp/server/transforms/namespace.py:97
↓ 2 callersFunctionload_server
Load the example server.
examples/tasks/client.py:33
↓ 2 callersMethodlog_response
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev.py:102
↓ 2 callersFunctionlog_server_banner
Creates and logs a formatted banner with server information and logo.
fastmcp_slim/fastmcp/utilities/cli.py:201
↓ 2 callersMethodnew
Create a new client instance with the same configuration but fresh session state. This creates a new client with the same transport, handlers
fastmcp_slim/fastmcp/client/client.py:422
↓ 2 callersFunctionnormalizePathname
(pathname)
docs/fastmcp-analytics.js:46
↓ 2 callersMethodon_call_tool
Time tool execution.
fastmcp_slim/fastmcp/server/middleware/timing.py:111
↓ 2 callersMethodon_list
List all stored files. Args: ctx: The current request context. Override this method for custom persistence. The default
fastmcp_slim/fastmcp/apps/file_upload.py:216
↓ 2 callersMethodon_request
Time request execution and log the results.
fastmcp_slim/fastmcp/server/middleware/timing.py:39
↓ 2 callersMethodprepare_source
Prepare the source for loading. Delegates to the source's prepare() method.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:374
↓ 2 callersMethodread
Read the resource content.
fastmcp_slim/fastmcp/resources/template.py:461
↓ 2 callersMethodregister_client
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:70
↓ 2 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:58
↓ 2 callersMethodregister_with_docket
Register this tool with docket for background execution.
fastmcp_slim/fastmcp/tools/base.py:423
↓ 2 callersMethodremove_label
Remove a label from an issue.
scripts/auto_close_duplicates.py:177
↓ 2 callersMethodremove_prompt
Remove prompt(s) from this provider's storage. Args: name: The prompt name. version: If None, removes ALL versions. I
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:315
↓ 2 callersMethodremove_resource
Remove resource(s) from this provider's storage. Args: uri: The resource URI. version: If None, removes ALL versions.
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:257
↓ 2 callersMethodremove_tool
Remove tool(s) from this provider's storage. Args: name: The tool name. version: If None, removes ALL versions. If sp
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:229
↓ 2 callersFunctionreplace_type
Given a (possibly generic, nested, or otherwise complex) type, replaces all instances of keys in type_map with their corresponding values.
fastmcp_slim/fastmcp/utilities/types.py:454
↓ 2 callersMethodreplay_events_after
( self, last_event_id: EventId, send_callback: EventCallback, )
fastmcp_slim/fastmcp/server/event_store.py:62
↓ 2 callersFunctionrequire_discriminator_property
Keep an OpenAPI discriminator's tag mandatory after the keyword is dropped. Returns a copy of *schema* with ``discriminator.propertyName`` added
fastmcp_slim/fastmcp/utilities/json_schema.py:116
↓ 2 callersMethodrun
Run the tool with context set for forward() functions. This method executes the tool's function while setting up the context that all
fastmcp_slim/fastmcp/tools/tool_transform.py:275
↓ 2 callersMethodrun
Overrides the run method to use the MiddlewareServerSession.
fastmcp_slim/fastmcp/server/low_level.py:234
↓ 2 callersMethodrun
Run the FastMCP server. Note this is a synchronous function. Args: transport: Transport protocol to use ("http", "stdio", "sse",
fastmcp_slim/fastmcp/server/mixins/transport.py:109
↓ 2 callersMethodrun
Execute the tool with the given arguments. Args: arguments: Dictionary of arguments to pass to the tool function. Return
fastmcp_slim/fastmcp/server/sampling/sampling_tool.py:54
↓ 2 callersFunctionsample_step_impl
Implementation of Context.sample_step(). Make a single LLM sampling call. This is a stateless function that makes exactly one LLM call and op
fastmcp_slim/fastmcp/server/sampling/run.py:484
↓ 2 callersFunctionsend
(message: MutableMapping[str, Any])
tests/server/http/test_http_auth_middleware.py:70
↓ 2 callersFunctionserialize_tools_for_output_json
Serialize tools to the same dict format as ``list_tools`` output.
fastmcp_slim/fastmcp/server/transforms/search/base.py:60
↓ 2 callersMethodset_setting
Set a setting. If the setting contains one or more `__`, it will be treated as a nested setting.
fastmcp_slim/fastmcp/settings.py:161
↓ 2 callersFunctionssrf_safe_fetch_response
Fetch URL with SSRF protection and return response metadata. This is equivalent to :func:`ssrf_safe_fetch` but returns response headers and s
fastmcp_slim/fastmcp/server/auth/ssrf.py:285
↓ 2 callersMethodstatistics
Get the statistics for the cache.
fastmcp_slim/fastmcp/server/middleware/caching.py:526
↓ 2 callersMethodstop
Stop the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:243
↓ 2 callersMethodstore_event
( self, stream_id: StreamId, message: JSONRPCMessage | None )
fastmcp_slim/fastmcp/server/event_store.py:55
↓ 2 callersFunctiontemporary_log_level
Context manager to temporarily set log level and restore it afterwards. Args: level: The temporary log level to set (e.g., "DEBUG", "INFO
fastmcp_slim/fastmcp/utilities/logging.py:117
← previousnext →801–900 of 10,524, ranked by callers