MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,725 in github.com/PrefectHQ/fastmcp

↓ 8 callersFunctionbuild_proxy
Build an OAuth proxy mounted at BASE_URL, optionally with a distinct issuer.
tests/server/auth/test_issuer_url_identity.py:61
↓ 8 callersFunctionbuild_server
()
tests/utilities/test_asgi_transport.py:19
↓ 8 callersFunctionbuild_server
(auth: StaticTokenVerifier | None = None)
tests/server/test_session_scope.py:28
↓ 8 callersFunctioncall
Invoke a tool the way an agent does, so the result is a ToolMessage with its artifact.
tests/downstream/smoke_langchain_mcp_adapters.py:61
↓ 8 callersFunctioncall_sync_fn_in_threadpool
Call a sync function in a threadpool to avoid blocking the event loop. Uses anyio.to_thread.run_sync which properly propagates contextvars, m
fastmcp_slim/fastmcp/utilities/async_utils.py:26
↓ 8 callersMethodconnect_session
( self, **session_kwargs: Any )
tests/client/client/test_session.py:32
↓ 8 callersFunctioncreate_sse_app
Return an instance of the SSE server app. Args: server: The FastMCP server instance message_path: Path for SSE messages s
fastmcp_slim/fastmcp/server/http.py:479
↓ 8 callersFunctioncurrent_principal
The authenticated principal for the current request as a compact JSON string. Returns the `(client_id, issuer, subject)` triple encoded as compac
fastmcp_slim/fastmcp/server/sessions.py:139
↓ 8 callersFunctionderive_jwt_key
Derive JWT signing key from a high-entropy key material and server salt.
fastmcp_slim/fastmcp/server/auth/jwt_issuer.py:30
↓ 8 callersFunctiondiscover_files
Recursively discover all Python files under a directory. Excludes __init__.py files (they're for package structure, not components). Args:
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:35
↓ 8 callersFunctionel
(id)
status-site/pbt.js:4
↓ 8 callersFunctionextract_trace_context
Extract trace context from an MCP request meta dict. If already in a valid trace (e.g., from HTTP propagation), the existing trace context is
fastmcp_slim/fastmcp/telemetry.py:280
↓ 8 callersMethodget_app_tool
Look up an app-visible tool by original name, bypassing transforms. Searches for a tool named ``tool_name`` tagged with the given app
fastmcp_slim/fastmcp/server/providers/base.py:244
↓ 8 callersFunctionget_client
Get or create an authenticated ATProto client.
examples/atproto_mcp/src/atproto_mcp/_atproto/_client.py:10
↓ 8 callersFunctionget_fastmcp_metadata
Extract FastMCP metadata from a component's meta dict. Handles both the current `fastmcp` namespace and the legacy `_fastmcp` namespace for c
fastmcp_slim/fastmcp/utilities/components.py:22
↓ 8 callersMethodget_obo_credential
Get a cached or new OnBehalfOfCredential for OBO token exchange. Credentials are cached by user assertion so the Azure SDK's internal
fastmcp_slim/fastmcp/server/auth/providers/azure.py:670
↓ 8 callersFunctionget_property
(tool: Tool, name: str)
tests/tools/tool_transform/test_args.py:21
↓ 8 callersMethodget_resource_template
Get a resource template by URI, filtering disabled templates. Overrides Provider.get_resource_template() to add visibility filtering after
fastmcp_slim/fastmcp/server/server.py:1425
↓ 8 callersFunctionget_session
Resolve and validate a `Session` for an explicit `session_id`. Pair with a `session_id: SessionId` tool argument (the agent obtains an id fro
fastmcp_slim/fastmcp/server/dependencies.py:553
↓ 8 callersMethodget_tokens
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:145
↓ 8 callersMethodgetsockname
(self)
tests/client/auth/test_oauth_client.py:389
↓ 8 callersFunctioninspect_fastmcp_v1
Extract information from a FastMCP v1.x instance using a Client. Args: mcp: The FastMCP v1.x instance to inspect Returns: Fa
fastmcp_slim/fastmcp/utilities/inspect.py:251
↓ 8 callersFunctionlist_command
List tools available on an MCP server. Examples: fastmcp list http://localhost:8000/mcp fastmcp list server.py fastmcp li
fastmcp_slim/fastmcp/cli/client.py:800
↓ 8 callersMethodlist_skill_resources
List the skills a server publishes as `skill://.../SKILL.md` resources. Use this for servers that serve skills as resources but not through t
fastmcp_slim/fastmcp/client/mixins/skills.py:211
↓ 8 callersMethodlist_tools
List tools with all transforms applied. Applies transforms sequentially: base → transforms (in order). Each transform receives the re
fastmcp_slim/fastmcp/server/providers/base.py:191
↓ 8 callersMethodlist_tools_mcp
Send a tools/list request and return the complete MCP protocol result. Args: cursor: Optional pagination cursor from a previous r
fastmcp_slim/fastmcp/client/mixins/tools.py:35
↓ 8 callersMethodload_server
Load server from filesystem.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py:64
↓ 8 callersFunctionlogin
Sign in to Prefect Horizon.
fastmcp_slim/fastmcp/cli/deploy/command.py:195
↓ 8 callersFunctionmake_server
(seen_headers: list[str | None])
tests/experimental/events/test_param_headers.py:38
↓ 8 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:796
↓ 8 callersFunctionpatch_client
(server: FastMCP)
tests/experimental/events/test_cli.py:54
↓ 8 callersFunctionref_target_name
Return the definition name a local JSON Pointer ``$ref`` addresses. The name is the first pointer segment after one of *roots* (``$defs`` by
fastmcp_slim/fastmcp/utilities/json_schema.py:105
↓ 8 callersFunctionregister_client
(proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_single_use.py:36
↓ 8 callersMethodregister_resources
Registers all methods marked with @mcp_resource with the FastMCP server. A method whose URI contains `{param}` placeholders is registered as
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:225
↓ 8 callersFunctionreset_transport
Reset transport to previous value.
fastmcp_slim/fastmcp/server/context.py:104
↓ 8 callersMethodrevoke_token
(self, token: AccessToken | RefreshToken)
tests/server/test_auth_integration.py:186
↓ 8 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:212
↓ 8 callersMethodrun_http_async
Run the server using HTTP transport. Args: transport: Transport protocol to use - "http" (default), "streamable-http", or "sse"
fastmcp_slim/fastmcp/server/mixins/transport.py:253
↓ 8 callersMethodschemas
(self)
tests/server/providers/openapi/test_write_only_responses.py:183
↓ 8 callersFunctionserve
( provider: SkillCatalogProvider, middleware: list[Middleware] | None = None )
tests/skills/test_provider.py:33
↓ 8 callersFunctionserver_env
Keep the server's own logs, warnings, and stderr out of the consumer's output.
tests/downstream/_harness.py:71
↓ 8 callersFunctionset_transport
Set the current transport type. Returns token for reset.
fastmcp_slim/fastmcp/server/context.py:97
↓ 8 callersFunctionstdio_command
()
tests/downstream/_harness.py:81
↓ 8 callersFunctiontransform_context_annotations
Transform injected-by-type params into Dependency-defaulted params. Transforms ALL params typed as Context (into ``= CurrentContext()``) and as
fastmcp_slim/fastmcp/server/dependencies.py:342
↓ 8 callersMethodunwrap
(self)
fastmcp_slim/fastmcp/server/middleware/caching.py:162
↓ 8 callersMethodupdate_default_scopes
Update the default scopes advertised to clients and used for DCR/CIMD fallback. Use this method when the available scope set is determined af
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:850
↓ 8 callersFunctionupdate_task
Call the `tasks/update` handler within the given auth scope.
tests/tasks/task_helpers.py:151
↓ 8 callersFunctionvalidate_elicitation_json_schema
Validate that a JSON schema follows MCP elicitation requirements. This ensures the schema is compatible with MCP elicitation requirements: -
fastmcp_slim/fastmcp/server/elicitation.py:450
↓ 8 callersMethodverify_token
Verify a bearer token and return access info if valid. This method implements the TokenVerifier protocol by delegating to ou
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:681
↓ 8 callersMethodwrap
(cls, value: ToolResult)
fastmcp_slim/fastmcp/server/middleware/caching.py:153
↓ 7 callersFunction$
(id)
status-site/operations.js:1
↓ 7 callersMethod__init__
( self, client_factory: ClientFactoryT, *, identity: ProxyIdentity = "proxy",
fastmcp_slim/fastmcp/server/providers/proxy.py:409
↓ 7 callersMethod_add_component
Add a component to unified storage. Args: component: The component to add. Returns: The component that was a
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:178
↓ 7 callersFunction_b64_decoded_size
Return the exact decoded byte-length of a base64 string without decoding it.
fastmcp_slim/fastmcp/apps/file_upload.py:78
↓ 7 callersFunction_build_uvx_command
Build a uvx command for running a FastMCP server. Goose requires uvx (not uv run) as the command. The uvx format is: uvx [--with pkg] [--
fastmcp_slim/fastmcp/cli/install/goose.py:58
↓ 7 callersFunction_cached_server
An SDK MCPServer whose tools/list carries a positive ttlMs hint at 2026.
tests/client/client/test_response_cache.py:28
↓ 7 callersMethod_create_before_message
( self, context: MiddlewareContext[Any] )
fastmcp_slim/fastmcp/server/middleware/logging.py:56
↓ 7 callersMethod_dispatch_component_middleware
Run the interior middleware chain for a component operation. This is the dispatch site for the component methods (``tools/call``, ``t
fastmcp_slim/fastmcp/server/server.py:801
↓ 7 callersFunction_elicited_field
The accepted value of *field* from the elicitation answered under *key*.
tests/conformance/server.py:456
↓ 7 callersFunction_fetch_latest_version
Fetch the latest version from PyPI. Args: include_prereleases: If True, include pre-release versions (alpha, beta, rc). Returns:
fastmcp_slim/fastmcp/utilities/version_check.py:67
↓ 7 callersFunction_get_npx_command
Get the correct npx command for the current platform.
fastmcp_slim/fastmcp/cli/cli.py:51
↓ 7 callersMethod_get_verification_token
Get the token to verify from the upstream token set. When verify_id_token is enabled, returns the id_token from the upstream token re
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:549
↓ 7 callersMethod_log_error
Log error with appropriate detail level.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:59
↓ 7 callersMethod_make_tool
( self, name: str = "my_tool", properties: dict[str, Any] | None = None, requi
tests/cli/test_client_commands.py:310
↓ 7 callersFunction_prune_param
Return a new schema with *param* removed from `properties`, `required`, and (if no longer referenced) `$defs`.
fastmcp_slim/fastmcp/utilities/json_schema.py:585
↓ 7 callersFunction_resolve_tool_param_flags
Resolve CLI flags for tool parameters, disambiguating colliding names. Returns a mapping of ``prop_name -> (cli_flag, explicit_name)`` where:
fastmcp_slim/fastmcp/cli/generate.py:235
↓ 7 callersFunction_schema_type_label
Return a human-readable type label for a property schema.
fastmcp_slim/fastmcp/cli/generate.py:697
↓ 7 callersMethod_time_operation
Helper method to time any operation.
fastmcp_slim/fastmcp/server/middleware/timing.py:91
↓ 7 callersMethodadd
Add two numbers.
tests/tools/tool/test_tool.py:24
↓ 7 callersMethodauthorize
Start OAuth transaction and route through consent interstitial. Flow: 1. Validate client's resource matches server's resource URL (se
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1227
↓ 7 callersFunctionbuild_cache_hints
Build the per-method `CacheHint` map for the SDK low-level server. `cache_ttl` is in seconds and is converted to the wire's milliseconds. When
fastmcp_slim/fastmcp/server/caching.py:29
↓ 7 callersFunctionbuild_id_server
Server whose cart tools take an explicit `session_id: SessionId`.
tests/server/test_session_provider.py:90
↓ 7 callersFunctioncancel_task
Call the `tasks/cancel` handler within the given auth scope.
tests/tasks/task_helpers.py:163
↓ 7 callersFunctionclient_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` capability the client declared, read from ``se
fastmcp_slim/fastmcp/server/low_level.py:117
↓ 7 callersMethodclose
(self)
examples/smart_home/src/smart_home/fire_tv/client.py:91
↓ 7 callersFunctioncombine_lifespans
Combine multiple lifespans into a single lifespan. Useful when mounting FastMCP into FastAPI and you need to run both your app's lifespan and
fastmcp_slim/fastmcp/utilities/lifespan.py:12
↓ 7 callersFunctioncombined
(app: AppT)
fastmcp_slim/fastmcp/utilities/lifespan.py:47
↓ 7 callersMethodconnect
()
tests/client/test_stdio.py:555
↓ 7 callersFunctioncreate_jwt
Create a test JWT token.
tests/utilities/test_auth.py:15
↓ 7 callersFunctioncreate_oauth_callback_server
Create an OAuth callback server. Args: port: The port to run the server on callback_path: The path to listen for OAuth redir
fastmcp_slim/fastmcp/client/oauth_callback.py:114
↓ 7 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_openapi_features.py:26
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_resources.py:688
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_resources.py:897
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/test_local_provider_prompts.py:423
↓ 7 callersMethodcreate_server
(self, include_tags=None, exclude_tags=None)
tests/server/providers/local_provider_tools/test_tags.py:42
↓ 7 callersFunctiondelegate_span
Create an INTERNAL span for provider delegation. Used by FastMCPProvider when delegating to mounted servers. Automatically records any except
fastmcp_slim/fastmcp/server/telemetry.py:367
↓ 7 callersMethoddisconnect
(self)
fastmcp_slim/fastmcp/client/transports/stdio.py:233
↓ 7 callersMethodend
Invalidate the session — delete its one key and all of its state. After this the id no longer resolves through `get_session`. This is
fastmcp_slim/fastmcp/server/sessions.py:294
↓ 7 callersMethodfinish
(self)
tests/downstream/_harness.py:225
↓ 7 callersFunctionform
(token: str, include_client_id: bool = False)
tests/server/auth/test_private_key_jwt_auth.py:71
↓ 7 callersFunctiongenerate_cursor_deeplink
Generate a Cursor deeplink for installing the MCP server. Args: server_name: Name of the server server_config: Server configurati
fastmcp_slim/fastmcp/cli/install/cursor.py:22
↓ 7 callersFunctiongenerated_cli
(server: FastMCP)
tests/cli/test_generate_cli_arguments.py:18
↓ 7 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.py:48
↓ 7 callersFunctionget_fastmcp_meta
Extract FastMCP metadata from a function, handling bound methods and wrappers.
fastmcp_slim/fastmcp/decorators.py:29
↓ 7 callersMethodget_prompt
Get prompt by transformed name with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMC
fastmcp_slim/fastmcp/server/providers/base.py:438
↓ 7 callersMethodget_resource
(uri: str, version=None)
tests/server/providers/test_transforming_provider.py:189
↓ 7 callersFunctionget_skill_manifest
Get the manifest for a specific skill. Args: client: Connected FastMCP client skill_name: Name of the skill Returns:
fastmcp_slim/fastmcp/utilities/skills.py:110
↓ 7 callersMethodget_token_expiry
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:169
↓ 7 callersFunctioninstall_goose
Install FastMCP server in Goose via deeplink. Args: file: Path to the server file. server_object: Optional server object name (fo
fastmcp_slim/fastmcp/cli/install/goose.py:85
↓ 7 callersFunctionintercept_streams
Route every `events/stream` request through `handle`.
tests/experimental/events/test_push_lifecycle.py:59
← previousnext →501–600 of 16,725, ranked by callers