MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions11,669 in github.com/PrefectHQ/fastmcp

↓ 2 callersFunctionfastmcp_server
()
tests/server/http/test_http_dependencies.py:43
↓ 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 callersMethodformat
(self, record: logging.LogRecord)
tests/server/test_logging.py:12
↓ 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:2437
↓ 2 callersMethodfrom_mcp_tool
Factory method to create a ProxyTool from a raw MCP tool schema.
fastmcp_slim/fastmcp/server/providers/proxy.py:278
↓ 2 callersFunctionfunc
(x: int, y: int)
tests/tools/tool_transform/test_args.py:334
↓ 2 callersFunctiongc_collect_harder
()
tests/test_mcp_config.py:67
↓ 2 callersFunctiongc_collect_harder
()
tests/client/test_stdio.py:28
↓ 2 callersMethodgenerate_name
(cls, name: str | None = None)
fastmcp_slim/fastmcp/server/server.py:2492
↓ 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:787
↓ 2 callersMethodget_client_id
(ctx)
tests/server/middleware/test_rate_limiting.py:184
↓ 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 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:21
↓ 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:267
↓ 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:406
↓ 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:376
↓ 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:234
↓ 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. 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 callersFunctionhandler
(ctx: Any, params: Any)
tests/server/test_extensions.py:489
↓ 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 callersFunctionis_cancelled
Whether the task was logically cancelled (see ``mark_cancelled``).
fastmcp_tasks/fastmcp_tasks/input_store.py:446
↓ 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:544
↓ 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:419
↓ 2 callersMethodlist_tools
Prefix tool names with namespace.
fastmcp_slim/fastmcp/server/transforms/namespace.py:97
↓ 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 callersFunctionmissing_capability_error_data
Build the `data.requiredCapabilities` payload for a -32021 error. A `required`-mode tool called without the client opting the tasks extension
fastmcp_tasks/fastmcp_tasks/models.py:193
↓ 2 callersMethodmissing_scopes
(self, ctx: AuthContext)
fastmcp_slim/fastmcp/utilities/authorization.py:101
↓ 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 callersFunctionparse_elicit_response_type
Parse response_type into schema and handling configuration. A response type is required; ``None`` raises ``TypeError``. Supports multiple syn
fastmcp_slim/fastmcp/server/elicitation.py:143
↓ 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 callersMethodraise_for_status
(self)
tests/server/auth/providers/test_auth0_mcp.py:253
↓ 2 callersMethodread
Read the resource content.
fastmcp_slim/fastmcp/resources/template.py:389
↓ 2 callersMethodread
Read the file content.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:153
↓ 2 callersFunctionreentrant_task_fn
Wrap a task tool's callable to capture a guard leg's ask (end-and-reenter). Signature-preserving, so Docket injects the wrapped callable's parame
fastmcp_tasks/fastmcp_tasks/input_loop.py:125
↓ 2 callersMethodregister_client
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:73
↓ 2 callersFunctionregister_task_server
Register the server for a background task. Called at task-submission time so that background workers can resolve the correct (child) server f
fastmcp_tasks/fastmcp_tasks/context.py:395
↓ 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 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 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:469
↓ 2 callersMethodreplay_events_after
( self, last_event_id: EventId, send_callback: EventCallback, )
fastmcp_slim/fastmcp/server/event_store.py:67
↓ 2 callersMethodreply_error
(self, request_id: Any, code: int, message: str)
tests/client/minimal_stdio_server.py:99
↓ 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:149
↓ 2 callersMethodreset
Clear all recorded notifications.
tests/client/test_notifications.py:62
↓ 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:318
↓ 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
Executes the tool by making a call through the client.
fastmcp_slim/fastmcp/server/providers/proxy.py:296
↓ 2 callersFunctionsave_current_leg
Record the latest leg's Docket execution key and its number.
fastmcp_tasks/fastmcp_tasks/input_store.py:169
↓ 2 callersFunctionsend
(message: MutableMapping[str, Any])
tests/server/http/test_http_auth_middleware.py:70
↓ 2 callersFunctionsend_callback
()
tests/client/auth/test_oauth_client.py:209
↓ 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:61
↓ 2 callersFunctionset_background_context_factory
Install (or clear) the background-task ``Context`` factory. The factory returns an already-entered ``Context`` (so ``_current_context`` is se
fastmcp_slim/fastmcp/server/dependencies.py:185
↓ 2 callersFunctionset_worker_server_resolver
Install (or clear) the worker-server resolver used by ``get_server()``.
fastmcp_slim/fastmcp/server/dependencies.py:207
↓ 2 callersMethodstop
Stop the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:251
↓ 2 callersMethodstore_event
( self, stream_id: StreamId, message: JSONRPCMessage | None )
fastmcp_slim/fastmcp/server/event_store.py:60
↓ 2 callersFunctiontasks_cancel
Handle ``tasks/cancel``: cooperatively cancel the task, empty ack. A durable cancellation marker is recorded so the logical task reports ``ca
fastmcp_tasks/fastmcp_tasks/handlers.py:441
↓ 2 callersFunctiontasks_get
Handle ``tasks/get``: the detailed task with its result/error/inputs inlined.
fastmcp_tasks/fastmcp_tasks/handlers.py:242
↓ 2 callersFunctiontasks_update
Handle ``tasks/update``: answer a guard leg and re-enter the task. The responses are keyed by the surfaced keys ``tasks/get`` reported. Unknown
fastmcp_tasks/fastmcp_tasks/handlers.py:329
↓ 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
↓ 2 callersFunctiontext_resource
(uri: str, text: str)
tests/utilities/test_skills.py:39
↓ 2 callersMethodto_mcp_result
Convert to MCP ReadResourceResult. Args: uri: The URI of the resource (required by MCP types) Returns: MCP R
fastmcp_slim/fastmcp/resources/base.py:197
↓ 2 callersMethodtool
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:1815
↓ 2 callersFunctionupdate_config_file
Update an MCP configuration file from a server object, preserving existing fields. This is used for updating the mcpServer configurations of thir
fastmcp_slim/fastmcp/mcp_config.py:373
↓ 2 callersFunctionvalidate
(token: str = Depends(get_token))
tests/server/test_dependencies.py:716
↓ 2 callersMethodverify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:61
↓ 2 callersMethodverify_token
(self, token: str)
tests/server/auth/test_issuer_url_identity.py:52
↓ 2 callersFunctionversion
Display version information and platform details.
fastmcp_slim/fastmcp/cli/cli.py:98
↓ 2 callersFunctionwait_for_log_content
Poll a log file until it contains the expected text. The subprocess's stderr is redirected straight to the file at the OS level (no async pum
tests/client/test_stdio.py:37
↓ 2 callersMethodwrap_transform
Return a new provider with this transform applied (immutable). Unlike add_transform() which mutates this provider, wrap_transform() r
fastmcp_slim/fastmcp/server/providers/base.py:106
↓ 1 callersFunctionCurrentAccessToken
Get the current access token for the authenticated user. This dependency provides access to the AccessToken for the current authenticated req
fastmcp_slim/fastmcp/server/dependencies.py:1289
↓ 1 callersFunctionCurrentSession
Inject the per-user `Session` for the current authenticated principal. Rarely written explicitly — a `session: UserSession` parameter is rewritte
fastmcp_slim/fastmcp/server/sessions.py:449
↓ 1 callersFunctionCurrentWorker
Get the current Docket Worker instance managed by FastMCP. This dependency provides access to the Worker instance that FastMCP automatically
fastmcp_tasks/fastmcp_tasks/dependencies.py:161
↓ 1 callersFunctionEntraOBOToken
Exchange the user's Entra token for a downstream API token via OBO. This dependency performs a Microsoft Entra On-Behalf-Of (OBO) token exchange,
fastmcp_slim/fastmcp/server/auth/providers/azure.py:870
↓ 1 callersFunctionOptionalCurrentContext
Get the current FastMCP Context, or None when no context is active.
fastmcp_slim/fastmcp/server/dependencies.py:970
↓ 1 callersFunctionOptionalCurrentSession
Inject the per-user `Session`, or `None` when the request is unauthenticated. Rarely written explicitly — a `session: UserSession | None = None`
fastmcp_slim/fastmcp/server/sessions.py:459
↓ 1 callersFunctionTaskKey
()
fastmcp_tasks/fastmcp_tasks/context.py:29
↓ 1 callersMethod__aenter__
(self)
fastmcp_slim/fastmcp/client/client.py:930
↓ 1 callersMethod__aenter__
Enter the context manager and set this context as the current context.
fastmcp_slim/fastmcp/server/context.py:270
↓ 1 callersMethod__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1203
↓ 1 callersMethod__aenter__
(self)
tests/server/test_dependencies_advanced.py:20
↓ 1 callersMethod__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies.py:39
← previousnext →1,101–1,200 of 11,669, ranked by callers