Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,725 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,725
◇
Types & classes
2,302
↳
Endpoints
198
↓ 5 callers
Function
create_server
()
tests/server/http/test_sse_host_origin_protection.py:28
↓ 5 callers
Function
dateLabel
(at, options = {})
status-site/app.js:35
↓ 5 callers
Function
default_log_handler
Default handler that properly routes server log messages to appropriate log levels.
fastmcp_slim/fastmcp/client/logging.py:17
↓ 5 callers
Method
exposed
(self, kind: str, owner: str, ident: str)
tests/pbt/test_components_machine.py:132
↓ 5 callers
Function
fetch
(path, **kwargs)
tests/test_public_triage.py:203
↓ 5 callers
Function
format_fastmcp_info
Format FastMCPInfo as FastMCP-specific JSON. This includes FastMCP-specific fields like tags, enabled, annotations, etc.
fastmcp_slim/fastmcp/utilities/inspect.py:438
↓ 5 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:405
↓ 5 callers
Method
from_dict
(cls, data: dict[str, str])
fastmcp_slim/fastmcp/client/oauth_callback.py:92
↓ 5 callers
Function
generate_schema
Generate JSON schema for fastmcp.json files. This is used to create the schema file that IDEs can use for validation and auto-completion.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:446
↓ 5 callers
Function
get_auth_span_attributes
Get auth attributes for the current request, if authenticated.
fastmcp_slim/fastmcp/server/telemetry.py:59
↓ 5 callers
Method
get_client_info
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:179
↓ 5 callers
Function
get_dataclass_field
(type: type, field_name: str)
tests/utilities/json_schema_type/test_advanced.py:18
↓ 5 callers
Method
get_meta
(self)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:60
↓ 5 callers
Method
get_notifications
Get all recorded notifications, optionally filtered by method.
tests/server/test_session_visibility.py:37
↓ 5 callers
Method
get_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
↓ 5 callers
Method
get_resource_template
Get resource template by transformed URI with all transforms applied. Note: This method does NOT filter disabled components. The Server
fastmcp_slim/fastmcp/server/providers/base.py:395
↓ 5 callers
Method
get_routes
Delegate route creation to the server.
fastmcp_slim/fastmcp/server/auth/auth.py:1038
↓ 5 callers
Method
get_since
(self, since_id: int = 0)
fastmcp_slim/fastmcp/cli/apps_dev_log.py:169
↓ 5 callers
Method
get_tool_by_hash
Get an app-visible tool by its identity hash, through `get_tool()`. The identity hash survives renaming, so `_get_tool_by_hash()` finds
fastmcp_slim/fastmcp/server/providers/base.py:270
↓ 5 callers
Method
get_tool_catalog
Fetch the real tool catalog, bypassing this transform. The result is deduplicated by name so that only the highest version of each to
fastmcp_slim/fastmcp/server/transforms/catalog.py:172
↓ 5 callers
Function
install_claude_desktop
Install FastMCP server in Claude Desktop. Args: file: Path to the server file server_object: Optional server object name (for :ob
fastmcp_slim/fastmcp/cli/install/claude_desktop.py:49
↓ 5 callers
Method
is_allowed
Check if a request is allowed.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:147
↓ 5 callers
Method
is_fresh
(self, ttl: float)
fastmcp_slim/fastmcp/server/providers/proxy.py:992
↓ 5 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:223
↓ 5 callers
Function
json_values
(max_leaves: int = 8)
tests/pbt/schema_strategies.py:19
↓ 5 callers
Function
listed
(provider: SkillsDirectoryProvider)
tests/skills/test_directory_provider.py:29
↓ 5 callers
Method
load
(self)
fastmcp_slim/fastmcp/cli/deploy/configuration.py:40
↓ 5 callers
Method
load_access_token
Validate FastMCP JWT by swapping for upstream token. This implements the token swap pattern: 1. Verify FastMCP JWT signature (proves
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2412
↓ 5 callers
Function
make
(tag, text, className)
status-site/pbt.js:31
↓ 5 callers
Function
make_app_server
A server whose ``contacts`` app backend tool ``save`` records its calls.
tests/server/auth/test_authorization.py:1671
↓ 5 callers
Function
make_proxy
(jwt_verifier, ttl: int | None)
tests/server/auth/oauth_proxy/test_registration_ttl.py:18
↓ 5 callers
Function
make_server
( log: list[dict[str, Any]], subscribed: anyio.Event | None = None )
tests/experimental/events/test_cli.py:23
↓ 5 callers
Function
manifest_for
(files: dict[str, bytes])
tests/skills/test_read_skill.py:179
↓ 5 callers
Function
manifest_server
(files: dict[str, bytes], manifest: dict[str, Any])
tests/skills/test_read_skill.py:160
↓ 5 callers
Function
mock_cognito_oidc_discovery
Context manager to mock AWS Cognito OIDC discovery endpoint.
tests/server/auth/providers/test_aws.py:12
↓ 5 callers
Function
new_mock_context
Create a new mock middleware context.
tests/server/middleware/test_logging.py:38
↓ 5 callers
Function
normalize_timeout_to_timedelta
Normalize a timeout value to a timedelta. Args: value: Timeout value as int/float (seconds), timedelta, or None Returns: tim
fastmcp_slim/fastmcp/utilities/timeout.py:8
↓ 5 callers
Method
notify_prompts_changed
Tell listening clients that this server's prompt list changed. See `notify_tools_changed` for delivery semantics.
fastmcp_slim/fastmcp/server/server.py:2077
↓ 5 callers
Method
on_message
Handle errors for all messages.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:120
↓ 5 callers
Method
on_message
Start ping task on first message from a connection.
fastmcp_slim/fastmcp/server/middleware/ping.py:45
↓ 5 callers
Function
parse_header
(value: str)
fastmcp_remote/fastmcp_remote/cli.py:78
↓ 5 callers
Function
pet_spec
(openapi_version: str)
tests/server/providers/openapi/test_read_only_requests.py:12
↓ 5 callers
Function
prepare
Prepare a FastMCP project by creating a persistent uv environment. This command creates a persistent uv project with all dependencies installed:
fastmcp_slim/fastmcp/cli/cli.py:1026
↓ 5 callers
Method
prepare
Prepare the Python environment using uv. Args: output_dir: Directory where the persistent uv project will be created.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:109
↓ 5 callers
Method
prompt
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:2429
↓ 5 callers
Method
query
(search: str)
tests/test_fastmcp_app.py:139
↓ 5 callers
Function
read_client_extension_settings
Read a client's per-request extension opt-in from the request `_meta`. SEP-2133 extensions negotiate per request: the client repeats its extensio
fastmcp_slim/fastmcp/server/extensions.py:306
↓ 5 callers
Method
register_prompts
Registers all methods marked with @mcp_prompt with the FastMCP server. Args: mcp_server: The FastMCP server instance to register
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:272
↓ 5 callers
Method
register_tools
Register the tools provided by this class with the given MCP server.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:72
↓ 5 callers
Method
remove_tool
(self, name: str, version: str | None = None)
fastmcp_slim/fastmcp/server/server.py:459
↓ 5 callers
Method
reset
Clear all recorded notifications.
tests/server/test_session_visibility.py:45
↓ 5 callers
Method
reset_visibility
Clear all session visibility rules. Use this to reset session visibility back to global defaults. Sends notifications to this sessio
fastmcp_slim/fastmcp/server/context.py:1317
↓ 5 callers
Function
resolve
(items: dict[str, Any], target: str)
examples/smart_home/src/smart_home/lights/server.py:25
↓ 5 callers
Function
resolve_credential
Resolve environment, stored, then interactive credentials.
fastmcp_slim/fastmcp/cli/deploy/credentials.py:130
↓ 5 callers
Method
resource
Decorator to register a function as a resource. The function will be called when the resource is read to generate its content. The fu
fastmcp_slim/fastmcp/server/server.py:2298
↓ 5 callers
Function
run_module_command
Run a Python module directly using ``python -m <module>``. When ``-m`` is used, the module manages its own server startup. No server-object d
fastmcp_slim/fastmcp/cli/run.py:285
↓ 5 callers
Method
save
(self, deps: Deps)
examples/memory.py:100
↓ 5 callers
Function
scoped_admin_tool
()
tests/server/middleware/test_tool_injection.py:313
↓ 5 callers
Method
search
Search for available tools by query. Returns matching tools ranked by relevance.
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:392
↓ 5 callers
Method
serve
()
fastmcp_slim/fastmcp/client/auth/oauth.py:473
↓ 5 callers
Method
set_api_origin
Set the origin and clear credentials before an origin change.
fastmcp_slim/fastmcp/cli/deploy/configuration.py:55
↓ 5 callers
Method
set_client_info
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/client/auth/oauth.py:185
↓ 5 callers
Method
set_mcp_path
Bind the default verifier's audience to this server's resource URL.
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:290
↓ 5 callers
Method
stream
()
tests/tools/test_tool_run_in_thread.py:112
↓ 5 callers
Function
svg
(tag, attrs, text)
status-site/app.js:49
↓ 5 callers
Method
to_image_content
Convert to MCP ImageContent.
fastmcp_slim/fastmcp/utilities/types.py:304
↓ 5 callers
Method
to_mcp_prompt_message
Convert to MCP PromptMessage.
fastmcp_slim/fastmcp/prompts/base.py:100
↓ 5 callers
Function
use_platform
( monkeypatch: pytest.MonkeyPatch, installer: Installer, platform: str, executable: str, )
tests/cli/test_install_cli_arguments.py:310
↓ 5 callers
Function
validate_command
Validate a hosted CIMD document. Fetches the document from the given URL and validates: - URL is valid CIMD URL (HTTPS, non-root path) -
fastmcp_slim/fastmcp/cli/cimd.py:144
↓ 5 callers
Function
windows_batch_command_line
Build a cmd.exe command line that runs a batch file with literal arguments. `command[0]` is the batch file path and the remaining items are its
fastmcp_slim/fastmcp/cli/install/shared.py:113
↓ 4 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/client/client.py:1005
↓ 4 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/client/group.py:119
↓ 4 callers
Method
__aenter__
(self)
tests/server/test_dependencies.py:24
↓ 4 callers
Method
__anext__
(self)
tests/client/auth/test_oauth_client.py:420
↓ 4 callers
Method
__init__
Initialize a FastMCPProvider. Args: server: The FastMCP server to wrap.
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:409
↓ 4 callers
Method
__init__
Initialize the multi-auth provider. Args: server: Optional auth provider (e.g., OAuthProxy) that owns routes and
fastmcp_slim/fastmcp/server/auth/auth.py:808
↓ 4 callers
Method
__new__
(cls, *args: Any, **kwargs: Any)
fastmcp_slim/fastmcp/skills/skill.py:188
↓ 4 callers
Function
_answer
Read the string value a client accepted for `key` (test helper).
tests/tasks/server/test_guard_reentrant.py:47
↓ 4 callers
Function
_apply_snapshot_to_context
Populate the ambient request context a worker's tool body reads. A Docket worker has no live request or SDK auth context — especially a Redis
fastmcp_tasks/fastmcp_tasks/context.py:538
↓ 4 callers
Function
_approve
Render the explicit consent prompt, approve it and keep the cookie. The remembered-approval cookie is a ``__Host-`` (Secure) cookie, which the
tests/server/auth/test_oauth_consent_remembered_key.py:85
↓ 4 callers
Function
_args_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:81
↓ 4 callers
Function
_assert_sent_as_configured
(request: httpx2.Request)
tests/server/providers/openapi/test_undeclared_arguments.py:87
↓ 4 callers
Function
_audio_content_to_openai_part
Convert MCP AudioContent to OpenAI input_audio content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:90
↓ 4 callers
Function
_backend_list_roots
Issue a handshake-era `roots/list` from a backend server. `Context` has no `list_roots()`: server-initiated requests are not part of FastMCP'
tests/server/providers/proxy/test_proxy_client.py:75
↓ 4 callers
Function
_bound_kinds
Names of the pydantic constraints a numeric schema converts to.
tests/utilities/json_schema_type/test_constraints.py:186
↓ 4 callers
Method
_build_discovery_tools
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:653
↓ 4 callers
Function
_call
(mcp: FastMCP)
tests/server/middleware/test_logging_methods_filter.py:41
↓ 4 callers
Function
_capture
()
tests/server/middleware/test_logging_methods_filter.py:22
↓ 4 callers
Function
_claiming_server
An SDK MCPServer whose `claimed_tool` returns a claimed extension result.
tests/client/test_client_extensions.py:117
↓ 4 callers
Function
_clamp_logger
Clamp the logger to a minimum and maximum level. If min_level is provided, messages logged at a lower level than `min_level` will have their leve
fastmcp_slim/fastmcp/utilities/logging.py:236
↓ 4 callers
Function
_client_puts
(proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_registration_ttl.py:34
↓ 4 callers
Method
_config
Two entries so the transport takes its multi-server composite path.
tests/server/test_mrtr_guards.py:634
↓ 4 callers
Function
_confirm
Confirm with the user on either era, falling back when it can't elicit.
tests/server/providers/proxy/test_relayed_capabilities.py:57
↓ 4 callers
Method
_consent_binding_cookie_name
Return an independent cookie name for one consent transaction.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:370
↓ 4 callers
Function
_consent_state_cookie_names
Names of the per-token consent-state cookies currently held.
tests/server/auth/test_oauth_consent_flow.py:176
↓ 4 callers
Function
_content_block_to_dict
Serialize a content block while preserving its MCP JSON fields.
fastmcp_slim/fastmcp/cli/client.py:617
↓ 4 callers
Method
_context_prompt_server
()
tests/server/test_mrtr_guards_components.py:70
↓ 4 callers
Function
_convert_set_default_none
Convert a sequence to a set, defaulting to an empty set if None.
fastmcp_slim/fastmcp/utilities/components.py:68
↓ 4 callers
Function
_create_client_factory
Create a client factory from the given target. Internal helper that handles the session strategy based on the target type: - Connected Client
fastmcp_slim/fastmcp/server/providers/proxy.py:1553
↓ 4 callers
Method
_create_default_client
Create a default httpx client from the OpenAPI spec's server URL.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:197
← previous
next →
801–900 of 16,725, ranked by callers