Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
↓ 6 callers
Function
_schema_to_type
Convert schema to appropriate Python type, within the conversion limits.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1103
↓ 6 callers
Function
_server
()
tests/server/telemetry/test_span_links.py:53
↓ 6 callers
Function
_server_with_protected_v2
()
tests/server/versioning/test_auth_version_fallback.py:39
↓ 6 callers
Function
_start_flow
Register client and start auth; returns (txn_id, consent_url).
tests/server/auth/test_oauth_consent_page.py:80
↓ 6 callers
Function
_text
(value: bytes | str)
fastmcp_events/fastmcp_events/redis_log.py:29
↓ 6 callers
Function
_texts
Text from CallToolResult.content blocks (TextContent).
tests/server/test_protocol_eras.py:78
↓ 6 callers
Function
_tools_result
()
tests/client/client/test_kv_response_cache.py:34
↓ 6 callers
Function
_ttl_server
()
tests/tasks/server/test_task_ttl.py:26
↓ 6 callers
Method
add_tools
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:162
↓ 6 callers
Function
admin_contacts_app
(calls: list[str], tags: set[str])
tests/server/test_hashed_tool_dispatch.py:404
↓ 6 callers
Method
apply_runtime_settings
Apply runtime settings like environment variables and working directory. Args: config_path: Path to config file for resolving rel
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:85
↓ 6 callers
Method
asend
(self, value)
tests/client/auth/test_oauth_client.py:426
↓ 6 callers
Method
assert_disconnected
(client: Client)
tests/client/client/test_client.py:1111
↓ 6 callers
Function
assert_task_matches_sync
Run a tool sync and as a task; assert the inlined results are identical.
tests/tasks/server/test_task_return_types.py:49
↓ 6 callers
Function
assertion
( key: RSAKeyPair, *, subject: str = CLIENT_ID, issuer: str = CLIENT_ID, audience: str = T
tests/server/auth/test_private_key_jwt_auth.py:54
↓ 6 callers
Function
build_injected_server
Server whose cart tools inject a per-user `session: UserSession`.
tests/server/test_session_provider.py:72
↓ 6 callers
Function
call
(name: str, **kwargs: Any)
tests/downstream/smoke_agno.py:101
↓ 6 callers
Method
call_tools_bulk
Call multiple tools registered on this MCP server in a single request. Each call can be for a different tool and can include differe
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:92
↓ 6 callers
Method
clear
Clear all cached clients and force disconnect them.
fastmcp_slim/fastmcp/server/providers/proxy.py:2192
↓ 6 callers
Method
client
(self, target: Any, **kwargs: Any)
tests/downstream/smoke_langchain_mcp.py:102
↓ 6 callers
Function
configure_logging
Configure logging for FastMCP. Args: logger: the logger to configure level: the log level to use rich_kwargs: the pa
fastmcp_slim/fastmcp/utilities/logging.py:42
↓ 6 callers
Method
consume
Try to consume tokens from the bucket. Args: tokens: Number of tokens to consume Returns: True if tokens wer
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:109
↓ 6 callers
Method
copy
(self, **kwargs: Any)
fastmcp_slim/fastmcp/server/middleware/middleware.py:109
↓ 6 callers
Function
create_elicitation_callback
( elicitation_handler: ElicitationHandler, )
fastmcp_slim/fastmcp/client/elicitation.py:54
↓ 6 callers
Function
decode_jwt_payload
Decode JWT payload without signature verification. Use only for tokens received directly from trusted sources (e.g., IdP token endpoints). A
fastmcp_slim/fastmcp/utilities/auth.py:53
↓ 6 callers
Function
discover_and_import
Discover files, import modules, and extract components. This is the main entry point for filesystem-based discovery. Args: root: Roo
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:464
↓ 6 callers
Function
el
(tag, text, className)
status-site/operations.js:10
↓ 6 callers
Method
emit
Record that an event happened, for every subscription that wants it. Call it from what hears about the event: a `source()` listening to
fastmcp_events/fastmcp_events/extension.py:336
↓ 6 callers
Function
fetch
(path, **kwargs)
tests/test_public_triage.py:203
↓ 6 callers
Method
find_config
Find a fastmcp.json file in the specified directory. Args: start_path: Directory to look in (defaults to current directory)
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:353
↓ 6 callers
Method
form
()
tests/server/providers/test_prefab_roundtrip.py:302
↓ 6 callers
Function
forward_uri
Build the URI a forwarding layer (mount or proxy) sends to the server behind it. The path is expanded from `uri_template` with `params`, but the
fastmcp_slim/fastmcp/resources/template.py:407
↓ 6 callers
Method
get_client
Get client information by ID. This is generally the random ID provided to the DCR client during registration, not the upstream client ID.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1029
↓ 6 callers
Method
get_span_attributes
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:571
↓ 6 callers
Function
get_task_context
Get the current task context if running inside a background task worker. This function extracts task information from the Docket execution contex
fastmcp_tasks/fastmcp_tasks/context.py:88
↓ 6 callers
Method
get_tool
Get tool by transformed name with all transforms applied. Note: This method does NOT filter disabled components. The Server (FastMCP)
fastmcp_slim/fastmcp/server/providers/base.py:207
↓ 6 callers
Function
get_tracer
Get the FastMCP tracer for creating spans. Instrumentation is on by default. FastMCP uses only the OpenTelemetry API, so span creation is a n
fastmcp_slim/fastmcp/telemetry.py:128
↓ 6 callers
Function
hash
()
status-site/anchors.js:8
↓ 6 callers
Function
install_cursor
Install FastMCP server in Cursor. Args: file: Path to the server file server_object: Optional server object name (for :object suf
fastmcp_slim/fastmcp/cli/install/cursor.py:143
↓ 6 callers
Function
is_loopback_host
Check if a host is a loopback address. Per RFC 8252 §7.3, loopback covers the whole reserved loopback range, not just the two familiar litera
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:225
↓ 6 callers
Function
issubclass_safe
Check if cls is a subclass of base, even if cls is a type variable.
fastmcp_slim/fastmcp/utilities/types.py:136
↓ 6 callers
Function
item
( number, *, pr=False, created="2026-10-19T15:00:00Z", closed=None, reason=None, m
tests/test_backlog_status.py:23
↓ 6 callers
Method
list_prompts
List prompts with all transforms applied. Components may be marked as disabled but are NOT filtered here.
fastmcp_slim/fastmcp/server/providers/base.py:428
↓ 6 callers
Method
list_resources
List resources with all transforms applied. Components may be marked as disabled but are NOT filtered here.
fastmcp_slim/fastmcp/server/providers/base.py:345
↓ 6 callers
Function
load_secret
(store: CredentialStore)
tests/cli/deploy/test_credentials.py:33
↓ 6 callers
Function
make_restricted_tag_server
()
tests/server/auth/test_authorization.py:69
↓ 6 callers
Function
make_schema
(value_type: str, model: bool)
tests/utilities/json_schema_type/test_caching.py:27
↓ 6 callers
Function
make_server
( mailbox: list[EmailReceived], **extension_kwargs )
tests/events/test_reader.py:39
↓ 6 callers
Function
make_token
( *, subject: str = "user-a", client_id: str = "client-1" )
tests/server/test_sessions.py:27
↓ 6 callers
Function
native_spans_enabled
Whether FastMCP should create its own spans right now.
fastmcp_slim/fastmcp/telemetry.py:103
↓ 6 callers
Function
new_webhook_secret
A fresh signing secret: `whsec_` and 32 random bytes in base64.
fastmcp_events/fastmcp_events/webhooks.py:33
↓ 6 callers
Function
normalize_api_origin
Validate and normalize a Horizon API origin.
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:129
↓ 6 callers
Function
normalize_completion
Coerce a handler's return value into a wire ``Completion``. A returned ``str`` is rejected: it is almost always a mistake (the value would it
fastmcp_slim/fastmcp/server/completions.py:54
↓ 6 callers
Method
on_request
Apply rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:265
↓ 6 callers
Method
ping
Send a ping request.
fastmcp_slim/fastmcp/client/client.py:1649
↓ 6 callers
Method
poll
(self, poll: EventPoll)
fastmcp_events/fastmcp_events/registration.py:178
↓ 6 callers
Method
prepare
Prepare environment and source for execution. When output_dir is provided, creates a persistent uv project. When output_dir is None,
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:372
↓ 6 callers
Function
principal_string
(token: SDKAccessToken)
tests/server/test_sessions.py:39
↓ 6 callers
Method
prompt
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:2484
↓ 6 callers
Function
quiet
Silence loggers that report an interruption a check causes on purpose.
tests/downstream/_harness.py:136
↓ 6 callers
Method
read
Read the resource content. Subclasses implement this to return resource data. Supported return types: - str: Text content
fastmcp_slim/fastmcp/resources/base.py:423
↓ 6 callers
Function
redact_backend_url
Mask the password in a backend URL so it can be printed or logged. Redis URLs carry the password in the userinfo component (`redis://user:sec
fastmcp_tasks/fastmcp_tasks/worker_cli.py:55
↓ 6 callers
Method
refresh_token
Fetch a new access token using a refresh token. If the server does not rotate the refresh token, the previous one is injected into th
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:143
↓ 6 callers
Method
register_all
Registers all marked tools, resources, and prompts with the server. This method calls ``register_tools``, ``register_resources``, and
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:315
↓ 6 callers
Function
replaying_server
An upstream that replays its whole log on every check, as some do.
tests/events/test_push_lifecycle.py:35
↓ 6 callers
Function
require_docket
Raise ImportError with install instructions if docket not available. Args: feature: Description of what requires docket (e.g., "`task=Tru
fastmcp_tasks/fastmcp_tasks/dependencies.py:45
↓ 6 callers
Method
run
(self, coro)
tests/pbt/test_components_machine.py:137
↓ 6 callers
Method
save
(name: str)
tests/server/providers/test_prefab_roundtrip.py:707
↓ 6 callers
Function
send
(message: Message)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:249
↓ 6 callers
Function
serve
Run server.py over `http`, `sse`, or `proxy` (HTTP) with bearer auth for the block.
tests/downstream/_harness.py:105
↓ 6 callers
Function
session_id_parameter_names
Names of a function's parameters annotated with `SessionId`. Scans resolved type hints for `Annotated[str, _SessionIdMarker()]` metadata. Ret
fastmcp_slim/fastmcp/server/sessions.py:343
↓ 6 callers
Function
session_storage_key
The single storage key holding a session's state dict. Keyed by `(principal, session_id)`: the principal is the isolation wall, the id organi
fastmcp_slim/fastmcp/server/sessions.py:164
↓ 6 callers
Function
store_code
(proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_single_use.py:46
↓ 6 callers
Method
to_audio_content
( self, mime_type: str | None = None, annotations: Annotations | None = None, )
fastmcp_slim/fastmcp/utilities/types.py:374
↓ 6 callers
Method
to_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:211
↓ 6 callers
Method
to_transport
(self)
fastmcp_slim/fastmcp/mcp_config.py:223
↓ 6 callers
Function
tool_identity
Read a tool's stored identity hash, if it carries one.
fastmcp_slim/fastmcp/server/providers/addressing.py:53
↓ 6 callers
Function
wait_for
(condition)
tests/events/test_sources.py:57
↓ 6 callers
Function
watch_command
Subscribe to an event type and print each event as it arrives. Arguments are key=value pairs, coerced with the event type's input schema. The
fastmcp_events/fastmcp_events/cli.py:141
↓ 6 callers
Function
write_skill
(root: Path, name: str = "review")
tests/skills/test_skill.py:15
↓ 5 callers
Function
CurrentFastMCP
Get the current FastMCP server instance. This dependency provides access to the active FastMCP server. Returns: A dependency that re
fastmcp_slim/fastmcp/server/dependencies.py:1095
↓ 5 callers
Method
__init__
(self)
tests/server/middleware/test_initialization_middleware.py:120
↓ 5 callers
Method
_apply_task_transforms
Apply this provider's transforms to components bound for Docket. Registration needs the names components are called by, so renaming t
fastmcp_slim/fastmcp/server/providers/base.py:629
↓ 5 callers
Method
_backend
()
tests/server/providers/test_prefab_roundtrip.py:219
↓ 5 callers
Function
_backfill_boolean_defaults
Fill in missing boolean fields with their model defaults. HTML checkboxes omit the field entirely when unchecked, so the submitted data dict
fastmcp_slim/fastmcp/apps/form.py:67
↓ 5 callers
Function
_build_stdio_from_command
Shell-split a command string into a ``StdioTransport``.
fastmcp_slim/fastmcp/cli/client.py:145
↓ 5 callers
Method
_collect_list_results
Collect successful list results, logging any exceptions. Emits a warning when the same MCP identity is returned by more than one prov
fastmcp_slim/fastmcp/server/providers/aggregate.py:233
↓ 5 callers
Method
_construct_and_capture_timeout
Construct a provider with mocked discovery, returning the timeout used.
tests/server/auth/test_oidc_proxy.py:888
↓ 5 callers
Method
_convert_tool_choice_to_anthropic
Convert MCP tool_choice to Anthropic format. Returns None for "none" mode, signaling that tools should be omitted from the request en
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:397
↓ 5 callers
Method
_cookie_header
(parameters, arguments)
tests/server/providers/openapi/test_openapi_features.py:1695
↓ 5 callers
Method
_create
Write the initial record so the session exists (called by `create_session`).
fastmcp_slim/fastmcp/server/sessions.py:247
↓ 5 callers
Method
_create_test_auth_provider
Helper to create a test RemoteAuthProvider with StaticTokenVerifier.
tests/server/auth/test_remote_auth_provider.py:237
↓ 5 callers
Method
_disconnect
Disconnect from session using reference counting. This method implements proper cleanup for reentrant context managers: - De
fastmcp_slim/fastmcp/client/client.py:1229
↓ 5 callers
Function
_dump
(model: Any)
tests/tasks/server/test_wire_models.py:52
↓ 5 callers
Method
_ensure_setup
Lazily register tools and resources on first access.
fastmcp_slim/fastmcp/apps/generative.py:99
↓ 5 callers
Method
_extract_scopes
Extract scopes from JWT claims. Supports both 'scope' and 'scp' claims. Checks the `scope` claim first (standard OAuth2 clai
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:521
↓ 5 callers
Function
_find_azure_provider
Extract an AzureProvider from an auth provider, unwrapping MultiAuth if needed.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:861
↓ 5 callers
Function
_forwardable_request_meta
Frontend request metadata that may cross onto the backend connection. This is the proxy's one sanctioned read of the inbound request's `_meta`:
fastmcp_slim/fastmcp/server/providers/proxy.py:190
↓ 5 callers
Function
_forwardable_server_meta
Backend result metadata that may cross onto the frontend connection. Connection-owned keys never cross. The backend's ``serverInfo`` stamp is an
fastmcp_slim/fastmcp/server/providers/proxy.py:209
↓ 5 callers
Function
_grant_alive
Whether the grant behind a FastMCP access token still exists.
tests/server/auth/oauth_proxy/test_refresh_reuse.py:35
← previous
next →
701–800 of 17,519, ranked by callers