Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
13,374 in github.com/PrefectHQ/fastmcp
⨍
Functions
13,374
◇
Types & classes
2,002
↳
Endpoints
150
↓ 1 callers
Function
_wait_for_server
Poll until the server is accepting connections.
fastmcp_slim/fastmcp/cli/apps_dev.py:1750
↓ 1 callers
Function
_walk_provider
(provider: Provider)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:164
↓ 1 callers
Function
_windows_command_processor
Return the absolute path of cmd.exe.
fastmcp_slim/fastmcp/cli/install/shared.py:133
↓ 1 callers
Function
_within_inline_limits
Check the node count and depth of *root* once fully expanded. Containers that appear in several places are measured once and the result reuse
fastmcp_slim/fastmcp/utilities/json_schema.py:105
↓ 1 callers
Function
_wrap_body_errors
Wrap ``fn`` so a ``pydantic.ValidationError`` raised by its body is re-raised as ``_ToolBodyError``. The wrapper preserves ``fn``'s signature
fastmcp_slim/fastmcp/tools/function_tool.py:69
↓ 1 callers
Function
_wrapped_result
Mirror how FastMCP reports a scalar return value on the wire.
tests/client/minimal_stdio_server.py:77
↓ 1 callers
Method
aclose
(self)
tests/client/auth/test_oauth_client.py:410
↓ 1 callers
Method
action_open
(self)
scripts/rank_issues_tui.py:428
↓ 1 callers
Method
adb_close
(self)
examples/smart_home/src/smart_home/fire_tv/client.py:35
↓ 1 callers
Method
adb_connect
(self, log_errors: bool = True)
examples/smart_home/src/smart_home/fire_tv/client.py:33
↓ 1 callers
Method
adb_shell
(self, command: str)
examples/smart_home/src/smart_home/fire_tv/client.py:31
↓ 1 callers
Method
add
(a: int, b: int)
tests/server/test_cache_hints.py:152
↓ 1 callers
Method
add
(a: int, b: int)
tests/server/middleware/test_middleware_nested.py:181
↓ 1 callers
Method
add
(a: int, b: int)
tests/server/mount/test_advanced.py:263
↓ 1 callers
Function
addBanner
()
docs/v2-banner.js:5
↓ 1 callers
Function
addBanner
()
docs/v3-banner.js:5
↓ 1 callers
Method
add_completion_handler
Register the server's argument-completion handler. A server has a single completion handler that answers every `completion/complete`
fastmcp_slim/fastmcp/server/server.py:2202
↓ 1 callers
Function
add_memory
(content: str, deps: Deps)
examples/memory.py:173
↓ 1 callers
Method
add_template
Add a resource template to this provider's storage.
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/resources.py:102
↓ 1 callers
Function
analyze_data
Filter and analyze sales data. Returns rows, summary, and chart data.
examples/apps/explorer/explorer_server.py:337
↓ 1 callers
Function
annotate_payload_identities
Record the identity-addressed form of each reference, at serialization. References start out as ``<hash>_<local_name>``, so the map begins as an
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:91
↓ 1 callers
Function
as_principal
(token: SDKAccessToken | None)
tests/server/test_sessions.py:44
↓ 1 callers
Function
as_proxy_backend
Apply proxy connection settings to a copy we own. The caller handed us their Client; configuring it in place would change how
fastmcp_slim/fastmcp/server/providers/proxy.py:1341
↓ 1 callers
Method
asend
(self, value)
tests/client/auth/test_oauth_client.py:450
↓ 1 callers
Method
async_auth_flow
( self, request: httpx2.Request )
fastmcp_slim/fastmcp/client/auth/client_credentials.py:258
↓ 1 callers
Function
attach_metadata
(fn: F, tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:591
↓ 1 callers
Function
attach_metadata
(fn: F)
fastmcp_slim/fastmcp/resources/function_resource.py:252
↓ 1 callers
Function
attach_metadata
(fn: F, prompt_name: str | None)
fastmcp_slim/fastmcp/prompts/function_prompt.py:418
↓ 1 callers
Function
attention
(title, detail, state, url)
status-site/app.js:31
↓ 1 callers
Method
authenticate_request
Authenticate a client from an HTTP request. Extends SDK authentication to support private_key_jwt for CIMD clients. Delegates to SDK
fastmcp_slim/fastmcp/server/auth/auth.py:249
↓ 1 callers
Function
author_note
(r: Ranked)
scripts/rank_issues.py:906
↓ 1 callers
Function
author_trust
(issue: Issue, facts: AuthorFacts | None, now: datetime)
scripts/rank_issues.py:775
↓ 1 callers
Function
authorize
()
tests/cli/deploy/test_credentials.py:117
↓ 1 callers
Function
automations
()
status-site/app.js:149
↓ 1 callers
Function
badge
(doc: dict)
scripts/maintenance_status.py:565
↓ 1 callers
Function
base_task_key
Strip any per-leg suffix, returning the stable base task key.
fastmcp_tasks/fastmcp_tasks/keys.py:63
↓ 1 callers
Function
blob_resource
(uri: str, data: bytes)
tests/utilities/test_skills.py:43
↓ 1 callers
Function
build
()
scripts/maintenance_status.py:463
↓ 1 callers
Function
build
( status: Literal[ "working", "input_required", "completed", "failed", "cancelled"
fastmcp_tasks/fastmcp_tasks/handlers.py:266
↓ 1 callers
Function
buildDropdown
()
docs/language-dropdown.js:24
↓ 1 callers
Function
buildPageViewProperties
()
docs/fastmcp-analytics.js:80
↓ 1 callers
Function
build_internal_client_extensions
Build the internal extensions to fold into a ``Client`` under construction. Each registered factory is invoked with the client's elicitation call
fastmcp_slim/fastmcp/client/extension_hooks.py:54
↓ 1 callers
Function
build_method_handler
Wrap a `MethodBinding` into a low-level request handler. The adapter enforces `protocol_versions` gating (rejecting other versions as `METHOD
fastmcp_slim/fastmcp/server/extensions.py:316
↓ 1 callers
Function
build_mounted_app
Mount an authenticated FastMCP server under /api with well-known routes at root.
tests/server/auth/test_issuer_url_identity.py:87
↓ 1 callers
Function
build_parser
()
fastmcp_remote/fastmcp_remote/cli.py:110
↓ 1 callers
Function
build_server_without_transform
()
tests/server/transforms/test_model_visibility_boundary.py:27
↓ 1 callers
Function
build_token_storage
(storage_dir: Path)
fastmcp_remote/fastmcp_remote/cli.py:220
↓ 1 callers
Function
cached_guard_server
A caching server whose tool, prompt, and resource are all guards.
tests/server/middleware/test_caching_guards.py:56
↓ 1 callers
Method
call
Add two numbers.
tests/tools/tool/test_tool.py:472
↓ 1 callers
Method
call_tool
Call a tool on the server. Unlike call_tool_mcp, this method raises a ToolError if the tool call results in an error. Args:
fastmcp_slim/fastmcp/client/mixins/tools.py:280
↓ 1 callers
Method
call_tool_mcp
Send a tools/call request and return the complete MCP protocol result. This method returns the raw CallToolResult object, which includes an i
fastmcp_slim/fastmcp/client/mixins/tools.py:145
↓ 1 callers
Method
callback
(request: httpx2.Request)
tests/utilities/httpx2_mock.py:114
↓ 1 callers
Function
calls_made_through
(name: str)
tests/server/test_hashed_tool_dispatch.py:497
↓ 1 callers
Function
cancel_and_release
(mcp, task_id, release)
tests/tasks/server/test_extension.py:291
↓ 1 callers
Function
chars
(run: str)
fastmcp_slim/fastmcp/resources/template.py:139
↓ 1 callers
Function
chart
()
status-site/app.js:47
↓ 1 callers
Method
clear
(self)
fastmcp_slim/fastmcp/cli/apps_dev.py:164
↓ 1 callers
Method
client
An unconnected FastMCP `Client` pointed at the in-process app. `headers` and `auth` configure the underlying HTTP transport; every other
fastmcp_slim/fastmcp/utilities/tests.py:313
↓ 1 callers
Method
client_extension_settings
This request's per-request opt-in settings for an MCP extension. SEP-2133 extensions negotiate per request: the client repeats its ex
fastmcp_slim/fastmcp/server/context.py:337
↓ 1 callers
Method
client_settings
This extension's per-request opt-in settings declared by the client. Reads the request's `_meta` client-capabilities block. Returns the
fastmcp_slim/fastmcp/server/extensions.py:271
↓ 1 callers
Method
clone
Return an unbound instance with the same configuration. Automatic registration clones bundled extensions so each server owns its inst
fastmcp_slim/fastmcp/server/extensions.py:184
↓ 1 callers
Method
clone
(self)
tests/server/test_provider_extensions.py:526
↓ 1 callers
Method
close
(self)
fastmcp_slim/fastmcp/client/transports/config.py:393
↓ 1 callers
Method
close_issue
Close an issue with a comment. Closes first, then comments — so a failed comment never leaves a misleading "closing" notice on a stil
scripts/auto_close_needs_mre.py:222
↓ 1 callers
Method
close_issue
Close an issue with a comment and add duplicate label.
scripts/auto_close_duplicates.py:184
↓ 1 callers
Method
close_obo_credentials
Close all cached OBO credentials.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:686
↓ 1 callers
Method
close_sse_stream
Close the current response stream to trigger client reconnection. When using StreamableHTTP transport with an EventStore configured, this
fastmcp_slim/fastmcp/server/context.py:904
↓ 1 callers
Function
colliding_variant_spec
Subtypes that disagree about the shape of the discriminator property. The parent marks ``kind`` required without declaring it, so each subtype's
tests/server/providers/openapi/test_openapi_discriminator.py:87
↓ 1 callers
Method
complete_mcp
Send a completion request and return the complete MCP protocol result. Args: ref (mcp_types.ResourceTemplateReference | mcp_types
fastmcp_slim/fastmcp/client/client.py:1464
↓ 1 callers
Function
compute_file_hash
Compute SHA256 hash of a file.
fastmcp_slim/fastmcp/server/providers/skills/_common.py:119
↓ 1 callers
Method
connect_session
( self, *, transport_options: TransportOptions | None = None, **session_kwargs
fastmcp_slim/fastmcp/client/transports/sse.py:132
↓ 1 callers
Method
connect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
tests/client/client/test_mode_negotiation.py:120
↓ 1 callers
Function
contributor_queue
How many external PRs wait on the gate, and for how long. Facts only.
scripts/maintenance_status.py:330
↓ 1 callers
Method
convert_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/base.py:425
↓ 1 callers
Function
cosine_similarity
(a: list[float], b: list[float])
examples/memory.py:48
↓ 1 callers
Method
create_app
Create the mock OAuth server application.
tests/server/auth/oauth_proxy/conftest.py:65
↓ 1 callers
Function
create_client_server
Create a FastMCP server from a client URL. Args: url: The URL to connect to Returns: A FastMCP server instance
fastmcp_slim/fastmcp/cli/run.py:90
↓ 1 callers
Function
create_closure
()
tests/tools/test_tool_future_annotations.py:175
↓ 1 callers
Function
create_detail_box
Create a detail box with key-value pairs. Args: rows: List of (label, value) tuples Returns: HTML for detail box
fastmcp_slim/fastmcp/utilities/ui.py:568
↓ 1 callers
Function
create_github_server
Create FastMCP server with GitHub OAuth protection.
tests/integration_tests/auth/test_github_provider_integration.py:43
↓ 1 callers
Function
create_github_server_with_mock_callback
Create FastMCP server with GitHub OAuth that mocks the callback for testing.
tests/integration_tests/auth/test_github_provider_integration.py:72
↓ 1 callers
Function
create_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider.py:165
↓ 1 callers
Function
create_post
Create a unified post with optional features. Args: text: Post text (max 300 chars) images: URLs of images to attach (max 4)
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:19
↓ 1 callers
Function
create_server
()
examples/get_file.py:13
↓ 1 callers
Function
create_task
Run an augmented ``tools/call`` as a background task (SEP-2663). Coerces and validates arguments (honoring strict input validation), mints a
fastmcp_tasks/fastmcp_tasks/creation.py:56
↓ 1 callers
Function
create_test_server
Create a FastMCP server with a slow tool.
tests/integration_tests/test_timeout_fix.py:13
↓ 1 callers
Method
create_token
Generate a test JWT token for testing purposes. Args: subject: Subject claim (usually user ID) issuer: Issue
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:138
↓ 1 callers
Function
create_unregistered_client_html
Create styled HTML error page for unregistered client attempts. Args: client_id: The unregistered client ID that was provided reg
fastmcp_slim/fastmcp/server/auth/handlers/authorize.py:43
↓ 1 callers
Function
create_visibility_transforms
Convert rule dicts to Visibility transforms.
fastmcp_slim/fastmcp/server/transforms/visibility.py:346
↓ 1 callers
Function
daily_runs
(runs: list[dict], since: date)
scripts/maintenance_status.py:270
↓ 1 callers
Function
decide
(r: dict)
scripts/gate_digest.py:275
↓ 1 callers
Method
decode
(self, stored: str | bytes)
fastmcp_tasks/fastmcp_tasks/encryption.py:84
↓ 1 callers
Function
default_progress_handler
Default handler for progress notifications. Logs progress updates at debug level, properly handling missing total or message values. Args:
fastmcp_slim/fastmcp/client/progress.py:12
↓ 1 callers
Function
default_serializer
The default serializer for Payloads in the logging middleware.
fastmcp_slim/fastmcp/server/middleware/logging.py:15
↓ 1 callers
Function
default_storage_dir
(resource: str | None = None)
fastmcp_remote/fastmcp_remote/cli.py:99
↓ 1 callers
Function
delete_memory
(memory_id: int, deps: Deps)
examples/memory.py:168
↓ 1 callers
Function
describe_light
(light: Light, connectivity: str | None, details: bool)
examples/smart_home/src/smart_home/lights/models.py:65
↓ 1 callers
Function
detail_markdown
(r: Ranked, config: Config)
scripts/rank_issues_tui.py:123
↓ 1 callers
Function
device_authorization
()
fastmcp_slim/fastmcp/cli/deploy/command.py:227
↓ 1 callers
Method
disable
Removed in 3.0. Use server.disable(keys=[...]) instead.
fastmcp_slim/fastmcp/utilities/components.py:216
← previous
next →
2,001–2,100 of 13,374, ranked by callers