MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 1 callersFunctionparse_env_var
Parse environment variable string in format KEY=VALUE.
fastmcp_slim/fastmcp/cli/install/shared.py:42
↓ 1 callersMethodprepare
Prepare the source (download, clone, install, etc). For sources that need preparation (e.g., git clone, download), this method perfor
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/base.py:12
↓ 1 callersMethodprepare_environment
Prepare the Python environment. Args: output_dir: If provided, creates a persistent uv project in this directory.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:363
↓ 1 callersFunctionprepare_messages
Convert various message formats to a list of SamplingMessage objects.
fastmcp_slim/fastmcp/server/sampling/run.py:381
↓ 1 callersFunctionprint_table
(results: list[dict[str, float | str | None]])
scripts/benchmark_imports.py:161
↓ 1 callersFunctionprompt
(fn: F)
fastmcp_slim/fastmcp/prompts/function_prompt.py:406
↓ 1 callersMethodprompt
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:1993
↓ 1 callersFunctionprune_memories
(deps: Deps)
examples/memory.py:241
↓ 1 callersFunctionpush_notification
Push notification to session's queue (called from Docket worker). Used for elicitation-specific notifications (input_required, cancel) that n
fastmcp_slim/fastmcp/server/tasks/notifications.py:48
↓ 1 callersMethodquery
Return indices of top_k documents sorted by BM25 score.
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:54
↓ 1 callersMethodread
Read the resource content.
fastmcp_slim/fastmcp/resources/template.py:237
↓ 1 callersMethodread
Read the resource content.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:50
↓ 1 callersMethodread
Read a file from the skill directory.
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:75
↓ 1 callersFunctionreconnect_and_count_tools
()
tests/client/client/test_client.py:602
↓ 1 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_slim/fastmcp/server/tasks/context.py:315
↓ 1 callersFunctionregister_task_session
Register a session for in-process background task access. Called automatically when a task is submitted to Docket. The session is stored as a
fastmcp_slim/fastmcp/server/tasks/context.py:286
↓ 1 callersMethodregister_with_docket
Register this component with docket for background execution. No-ops if task_config.mode is "forbidden". Subclasses override to regis
fastmcp_slim/fastmcp/utilities/components.py:227
↓ 1 callersMethodregister_with_docket
No-op: the child's actual template is registered via get_tasks().
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:445
↓ 1 callersFunctionrelay_elicitation
Relay elicitation from a background task worker to the client. Called by the notification subscriber when it detects an input_required notifi
fastmcp_slim/fastmcp/server/tasks/elicitation.py:236
↓ 1 callersMethodremove_template
Remove resource template(s) from this provider's storage. Args: uri_template: The template URI pattern. version: If N
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:285
↓ 1 callersMethodremove_tool_transformation
Remove a tool transformation. .. deprecated:: Tool transformations are now immutable. Use enable/disable controls instead.
fastmcp_slim/fastmcp/server/server.py:636
↓ 1 callersFunctionresolve_auth
(config: RemoteConfig)
fastmcp_remote/fastmcp_remote/cli.py:230
↓ 1 callersFunctionresolve_dependencies
Resolve dependencies for a FastMCP function. This function: 1. Filters out any dependency parameter names from user arguments (security)
fastmcp_slim/fastmcp/server/dependencies.py:700
↓ 1 callersFunctionresolve_hostname
Resolve hostname to IP addresses using DNS. Args: hostname: Hostname to resolve port: Port number (used for getaddrinfo) Ret
fastmcp_slim/fastmcp/server/auth/ssrf.py:144
↓ 1 callersFunctionresource
Standalone decorator to mark a function as an MCP resource. Returns the original function with metadata attached. Register with a server usin
fastmcp_slim/fastmcp/resources/function_resource.py:249
↓ 1 callersFunctionrestore_task_snapshot
Worker-level Docket dependency that restores the task-context snapshot. Runs before each fastmcp-owned task, populating the snapshot ContextVar
fastmcp_slim/fastmcp/server/tasks/context.py:233
↓ 1 callersFunctionrewrite_tool_meta_for_wire
Return a model_copy with the per-tool URI and CSP stripped. Reads the hash from the tool's own meta. If no hash is found, returns the tool un
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:228
↓ 1 callersFunctionrun
()
docs/v2-banner.js:22
↓ 1 callersMethodrun
Execute the HTTP request using RequestDirector.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:180
↓ 1 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:86
↓ 1 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
tests/experimental/transforms/test_code_mode.py:91
↓ 1 callersFunctionrun_dev_apps
Start the full dev environment for a FastMCPApp server. Starts the user's MCP server on *mcp_port*, starts the Prefab dev UI on *dev_port* (w
fastmcp_slim/fastmcp/cli/apps_dev.py:1727
↓ 1 callersFunctionrun_server_in_process
Context manager that runs a FastMCP server in a separate process and returns the server URL. When the context manager is exited, the server p
fastmcp_slim/fastmcp/utilities/tests.py:75
↓ 1 callersFunctionrun_v1_server_async
Run a FastMCP 1.x server using async methods. Args: server: FastMCP 1.x server instance host: Host to bind to port: Port
fastmcp_slim/fastmcp/cli/run.py:311
↓ 1 callersFunctionrun_with_reload
Run a command with file watching and auto-reload. Args: cmd: Command to run as subprocess (should include --no-reload) reload_dir
fastmcp_slim/fastmcp/cli/run.py:376
↓ 1 callersFunctionrun_worker
Enter server lifespan and camp forever.
fastmcp_slim/fastmcp/cli/tasks.py:92
↓ 1 callersFunctionsample_impl
Implementation of Context.sample(). Send a sampling request to the client and await the response. This method runs to completion automaticall
fastmcp_slim/fastmcp/server/sampling/run.py:618
↓ 1 callersMethodsample_step
Make a single LLM sampling call. This is a stateless function that makes exactly one LLM call and optionally executes any re
fastmcp_slim/fastmcp/server/context.py:838
↓ 1 callersFunctionsampling_handler
( messages: list[SamplingMessage], params: SamplingParams, ctx: RequestContext )
tests/client/test_sampling.py:74
↓ 1 callersMethodsampling_handler
( messages: list[SamplingMessage], params: SamplingParams, ctx: RequestContext )
tests/client/test_sampling.py:259
↓ 1 callersMethodsave
Store this snapshot as a single Redis key.
fastmcp_slim/fastmcp/server/tasks/context.py:177
↓ 1 callersFunctionscan_skill_files
Scan a skill directory for all files.
fastmcp_slim/fastmcp/server/providers/skills/_common.py:86
↓ 1 callersMethodsearch
Search the web.
tests/client/test_sampling.py:246
↓ 1 callersMethodset_client_info
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/client/auth/oauth.py:163
↓ 1 callersFunctionset_http_request
(request: Request)
fastmcp_slim/fastmcp/server/http.py:353
↓ 1 callersMethodset_roots
Set the roots for the client. This does not automatically call `send_roots_list_changed`.
fastmcp_slim/fastmcp/client/client.py:391
↓ 1 callersMethodset_sampling_callback
Set the sampling callback for the client.
fastmcp_slim/fastmcp/client/client.py:395
↓ 1 callersFunctionsetup_database
Create the tools table and seed with example tools.
examples/providers/sqlite/setup_db.py:19
↓ 1 callersFunctionsetup_tracing
Set up OpenTelemetry tracing with OTLP export.
examples/diagnostics/client_with_tracing.py:32
↓ 1 callersFunctionshow_surface
Show what's visible through a filtered server.
examples/versioning/version_filters.py:60
↓ 1 callersFunctionshow_tools
Display available tools in a panel.
examples/namespace_activation/client.py:31
↓ 1 callersFunctionstop_subscriber
Stop notification subscriber for a session. Called when session disconnects. Pending messages remain in queue for delivery if client reconnec
fastmcp_slim/fastmcp/server/tasks/notifications.py:286
↓ 1 callersFunctionstore_result_once
Store the first callback result and ignore subsequent requests.
fastmcp_slim/fastmcp/client/oauth_callback.py:125
↓ 1 callersMethodstream
()
tests/tools/test_tool_run_in_thread.py:112
↓ 1 callersFunctionsubmit_to_docket
Submit any component to Docket for background execution (SEP-1686). Unified handler for all component types. Called by component's internal m
fastmcp_slim/fastmcp/server/tasks/handlers.py:43
↓ 1 callersFunctionsynthesize_prefab_resource_by_uri
Intercept a Prefab renderer URI and synthesize on demand.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:215
↓ 1 callersFunctionsynthesize_prefab_resources
Return fresh synthetic Prefab resources for all prefab tools. Pure.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:200
↓ 1 callersFunctiont
(o)
docs/unify-intent.js:25
↓ 1 callersFunctiontask_a
()
tests/client/client/test_client.py:553
↓ 1 callersFunctiontask_b
()
tests/client/client/test_client.py:559
↓ 1 callersFunctiontasks_cancel_handler
Handle MCP 'tasks/cancel' request (SEP-1686). Cancels a running task, transitioning it to cancelled state. Args: server: FastMCP ser
fastmcp_slim/fastmcp/server/tasks/requests.py:419
↓ 1 callersFunctiontasks_get_handler
Handle MCP 'tasks/get' request (SEP-1686). Args: server: FastMCP server instance params: Request params containing taskId Re
fastmcp_slim/fastmcp/server/tasks/requests.py:135
↓ 1 callersFunctiontasks_list_handler
Handle MCP 'tasks/list' request (SEP-1686). Note: With client-side tracking, this returns minimal info. Args: server: FastMCP server
fastmcp_slim/fastmcp/server/tasks/requests.py:401
↓ 1 callersFunctiontasks_result_handler
Handle MCP 'tasks/result' request (SEP-1686). Converts raw task return values to MCP types based on task type. Args: server: FastMCP
fastmcp_slim/fastmcp/server/tasks/requests.py:220
↓ 1 callersMethodto_arg_transform
Convert the argument transform to a FastMCP argument transform.
fastmcp_slim/fastmcp/tools/tool_transform.py:240
↓ 1 callersMethodto_data_uri
Get image as a data URI.
fastmcp_slim/fastmcp/utilities/types.py:304
↓ 1 callersMethodto_dict
Convert MCPConfig to dictionary format, preserving all fields.
fastmcp_slim/fastmcp/mcp_config.py:328
↓ 1 callersMethodtransform_prompts
Transform the prompt catalog. Override this method to replace, filter, or augment the prompt listing. The default implementation pass
fastmcp_slim/fastmcp/server/transforms/catalog.py:155
↓ 1 callersMethodtransform_resource_templates
Transform the resource template catalog. Override this method to replace, filter, or augment the template listing. The default implem
fastmcp_slim/fastmcp/server/transforms/catalog.py:141
↓ 1 callersMethodtransform_resources
Transform the resource catalog. Override this method to replace, filter, or augment the resource listing. The default implementation
fastmcp_slim/fastmcp/server/transforms/catalog.py:127
↓ 1 callersMethodtransform_tools
Transform the tool catalog. Override this method to replace, filter, or augment the tool listing. The default implementation passes t
fastmcp_slim/fastmcp/server/transforms/catalog.py:115
↓ 1 callersFunctiontraverse_and_clean
Traverse schema tree, collecting $ref info and applying cleanups. The `in_schema` flag tracks whether the current node is reached via a
fastmcp_slim/fastmcp/utilities/json_schema.py:509
↓ 1 callersFunctionupdate
()
docs/unify-intent.js:53
↓ 1 callersFunctionupdate_importance
(user_embedding: list[float], deps: Deps)
examples/memory.py:215
↓ 1 callersFunctionuse_client
Use the client with a small delay to ensure overlap
tests/client/client/test_client.py:684
↓ 1 callersMethodvalidate
(token: str)
tests/server/auth/providers/test_debug.py:31
↓ 1 callersMethodverify_token
Verify token against static token dictionary.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:626
↓ 1 callersMethodverify_token
Verify Discord OAuth token by calling Discord's tokeninfo API.
fastmcp_slim/fastmcp/server/auth/providers/discord.py:72
↓ 1 callersFunctionversion
Display version information and platform details.
fastmcp_slim/fastmcp/cli/cli.py:99
↓ 1 callersFunctionwas_already_auto_closed
Check if this issue was already auto-closed once.
scripts/auto_close_duplicates.py:231
↓ 1 callersFunctionwith_serializer
Decorator to apply custom serialization to tool output.
examples/custom_tool_serializer_decorator.py:19
↓ 1 callersFunctionwrapHistoryMethod
(methodName)
docs/fastmcp-analytics.js:61
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:759
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:822
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:876
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:933
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:988
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1028
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1069
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1157
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1280
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1333
Method__aenter__
(self)
fastmcp_slim/fastmcp/server/auth/providers/azure.py:826
Method__aenter__
(self)
tests/server/auth/providers/test_propelauth.py:308
Method__aenter__
(self)
tests/server/auth/providers/test_scalekit.py:192
Method__aexit__
(self, exc_type, exc_val, exc_tb)
fastmcp_slim/fastmcp/client/client.py:537
Method__aexit__
Exit the context manager and reset the most recent token.
fastmcp_slim/fastmcp/server/context.py:297
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:800
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:830
Method__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:894
← previousnext →1,501–1,600 of 10,524, ranked by callers