Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,224 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,224
◇
Types & classes
2,249
↳
Endpoints
189
↓ 3 callers
Function
_spec
( version: str, property_schema: dict[str, Any], media_type: str )
tests/utilities/openapi/test_null_body.py:80
↓ 3 callers
Function
_spec
(operations: dict[str, dict[str, Any]])
tests/server/providers/openapi/test_default_names.py:12
↓ 3 callers
Method
_state_of
The user-state sub-dict of a raw stored dict (empty when absent).
fastmcp_slim/fastmcp/server/sessions.py:230
↓ 3 callers
Function
_strip_input_required
Remove `InputRequiredResult` arms from a union return annotation. A guard tool typically annotates its return as ``X | InputRequiredResult``;
fastmcp_slim/fastmcp/tools/function_parsing.py:146
↓ 3 callers
Function
_text
(result: mcp_types.CallToolResult)
tests/server/test_extensions.py:48
↓ 3 callers
Function
_text
(result)
examples/tasks/client.py:37
↓ 3 callers
Function
_to_base_model
Validate a component's public base fields without serializing its subclass.
fastmcp_slim/fastmcp/server/middleware/caching.py:82
↓ 3 callers
Method
_to_child
(self, uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:70
↓ 3 callers
Function
_tool
Build a real Tool component (a FastMCPComponent) with a version.
tests/server/versioning/test_versioning.py:90
↓ 3 callers
Function
_tool
(name: str, doc: str | None = None, params: tuple[str, ...] = ("query",))
tests/experimental/transforms/test_jev_search.py:79
↓ 3 callers
Method
_tool
(description: str)
tests/server/providers/test_local_provider.py:599
↓ 3 callers
Function
_tool_server
()
tests/tasks/server/test_task_tools.py:54
↓ 3 callers
Function
_trace_meta
Trace context for a task management request, for the current client span. Task management calls (`tasks/get`/`update`/`cancel`) use ordinary
fastmcp_tasks/fastmcp_tasks/client.py:74
↓ 3 callers
Method
_transform_uri
Apply namespace to a URI: protocol://path → protocol://namespace/path.
fastmcp_slim/fastmcp/server/transforms/namespace.py:74
↓ 3 callers
Method
_translate_scopes_from_idp
Translate IdP-returned scopes into the client-facing form. Some IdPs (notably Azure) require scopes on the wire in a form that differ
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1730
↓ 3 callers
Function
_union_branches
Return the ``anyOf``/``oneOf`` branches of a union schema, if any.
fastmcp_slim/fastmcp/cli/client.py:355
↓ 3 callers
Method
_validate_client_redirect_uri
Validate a stored transaction redirect URI before sending a browser to it.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:120
↓ 3 callers
Function
_validate_limits
(file_count: int, total_bytes: int)
fastmcp_slim/fastmcp/skills/skill.py:47
↓ 3 callers
Function
_version_from_ctx
Extract the FastMCP component version from the request's lifted _meta.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:99
↓ 3 callers
Function
_wait_until_listening
Poll until the callback server's socket is accepting connections. uvicorn sets `Server.started = True` right after it binds and starts listen
tests/client/test_oauth_callback_race.py:11
↓ 3 callers
Function
_walk
(node: Any)
tests/pbt/test_json_schema.py:58
↓ 3 callers
Function
_warn_wire_model
(call: str)
fastmcp_slim/fastmcp/skills/skill.py:36
↓ 3 callers
Function
_watch_filter
Filter for files that should trigger reload.
fastmcp_slim/fastmcp/cli/run.py:375
↓ 3 callers
Function
_with_proxy_transport_options
Layer proxy-owned settings onto options supplied by another client layer.
fastmcp_slim/fastmcp/server/providers/proxy.py:117
↓ 3 callers
Method
_write_skill
(tmp_path: Path, frontmatter: str)
tests/server/providers/test_skills_provider.py:536
↓ 3 callers
Function
_write_stored_snapshot
Overwrite a task's stored snapshot value.
tests/tasks/server/test_snapshot_encryption.py:186
↓ 3 callers
Method
aclose
(self)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:66
↓ 3 callers
Method
aclose
(self)
tests/client/auth/test_oauth_client.py:435
↓ 3 callers
Function
activity
(login, when, *, bot=False, association="MEMBER", **fields)
tests/test_public_triage.py:51
↓ 3 callers
Function
activity
()
status-site/app.js:312
↓ 3 callers
Method
add
(self, a: int, b: int)
tests/server/middleware/test_caching.py:129
↓ 3 callers
Method
add_resources
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:188
↓ 3 callers
Method
aiter_bytes
()
tests/server/auth/test_ssrf_protection.py:246
↓ 3 callers
Function
api
(*args: str)
scripts/release_contributor_credit.py:33
↓ 3 callers
Method
assert_eventually_disconnected
A cancelled exit returns at once and stops the session in its own task.
tests/client/client/test_client.py:1117
↓ 3 callers
Function
assessment_model
(config: Config)
scripts/rank_issues.py:990
↓ 3 callers
Function
authorize_device
Create, present, and complete a Horizon device authorization.
fastmcp_slim/fastmcp/cli/deploy/authentication.py:77
↓ 3 callers
Method
body
()
tests/utilities/test_asgi_transport.py:42
↓ 3 callers
Function
build_server
(transform)
tests/server/transforms/test_model_visibility_boundary.py:31
↓ 3 callers
Function
build_spec
( components: dict[str, Any], body: dict[str, Any] | None = None, response: dict[str, Any] | None
tests/server/providers/openapi/test_component_property_refs.py:16
↓ 3 callers
Method
cached_connection
A transport that believes it already holds a session built for `options`.
tests/client/client/test_session.py:362
↓ 3 callers
Function
call_tool_error
(tool: Tool, arguments: dict[str, Any])
tests/tools/tool_transform/test_args.py:546
↓ 3 callers
Method
capture
Capture current context for background task execution. ``owning_tool_name``/``owning_tool_version`` identify the exact tool the call
fastmcp_tasks/fastmcp_tasks/context.py:174
↓ 3 callers
Function
check_distributed_backend
Check if Docket is configured with a distributed backend. The CLI worker runs as a separate process, so it needs Redis/Valkey to coordinate w
fastmcp_tasks/fastmcp_tasks/worker_cli.py:93
↓ 3 callers
Method
clear
(self)
fastmcp_slim/fastmcp/cli/deploy/credentials.py:126
↓ 3 callers
Method
clear
Empty the session's user state but keep the session valid. The user-state sub-dict is reset to empty while the creation marker stays
fastmcp_slim/fastmcp/server/sessions.py:281
↓ 3 callers
Function
clear_codec_cache
Drop the cached codecs, so a changed key takes effect.
fastmcp_tasks/fastmcp_tasks/encryption.py:169
↓ 3 callers
Method
create_initialization_options
( self, notification_options: NotificationOptions | None = None, experimental_capabili
fastmcp_slim/fastmcp/server/low_level.py:533
↓ 3 callers
Function
create_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider_bearer.py:35
↓ 3 callers
Function
create_okp_key_pair
Serialize an EdDSA key pair as PEM strings.
tests/server/auth/test_jwt_provider.py:87
↓ 3 callers
Function
create_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_parameter_collisions.py:11
↓ 3 callers
Function
create_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_performance_comparison.py:13
↓ 3 callers
Function
create_sampling_callback
( sampling_handler: SamplingHandler, )
fastmcp_slim/fastmcp/client/sampling/__init__.py:44
↓ 3 callers
Function
create_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_sse.py:17
↓ 3 callers
Function
create_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_streamable_http.py:22
↓ 3 callers
Function
custom_verifier
()
tests/server/auth/test_remote_auth_required_scopes.py:24
↓ 3 callers
Function
default_serializer
(data: Any)
fastmcp_slim/fastmcp/tools/base.py:77
↓ 3 callers
Function
drive_until_metadata
Run the flow through resource metadata discovery; return requested URLs.
tests/client/auth/test_oauth_static_client_issuer.py:29
↓ 3 callers
Function
emit_device_challenge
Show a device challenge before polling starts.
fastmcp_slim/fastmcp/cli/deploy/output.py:84
↓ 3 callers
Function
emit_environment_logout
Explain why logout cannot change an environment credential.
fastmcp_slim/fastmcp/cli/deploy/output.py:182
↓ 3 callers
Function
emit_logout
Show a successful local logout result.
fastmcp_slim/fastmcp/cli/deploy/output.py:216
↓ 3 callers
Function
entries
(changelog: str)
scripts/draft_release.py:53
↓ 3 callers
Method
enum_schema
Generate inline enum schema. Always generates enum pattern: `{"enum": [value, ...]}` Titled enums are handled separately via dict-bas
fastmcp_slim/fastmcp/server/elicitation.py:118
↓ 3 callers
Method
exchange_refresh_token
Exchange FastMCP refresh token for new FastMCP access token. Implements two-tier refresh: 1. Verify FastMCP refresh token 2.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1839
↓ 3 callers
Function
extract_exploded_query_params
Extract query parameter names declared with the RFC 6570 explode modifier. `{?tags*}` (or `{&tags*}`) marks `tags` as repeatable — `?tags=a&tags=
fastmcp_slim/fastmcp/resources/template.py:95
↓ 3 callers
Function
fastmcp_spans
Names of spans emitted by FastMCP's own instrumentation scope.
tests/telemetry/test_interop.py:43
↓ 3 callers
Function
format_mcp_info
Format server info as standard MCP protocol JSON. Uses Client to get the standard MCP protocol format with camelCase fields. Includes version
fastmcp_slim/fastmcp/utilities/inspect.py:467
↓ 3 callers
Function
forward_raw
Forward directly to parent tool without transformation. This function bypasses all argument transformation and validation, calling the parent
fastmcp_slim/fastmcp/tools/tool_transform.py:191
↓ 3 callers
Method
from_config
Create one independent client for each configured server. A server entry may include a FastMCP-specific ``mode`` field. It applies on
fastmcp_slim/fastmcp/client/group.py:88
↓ 3 callers
Method
from_file
Load configuration from a JSON file. Relative `source.path` and `environment.requirements` values are anchored to the configuration f
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:223
↓ 3 callers
Function
gc_collect_harder
()
tests/client/test_stdio.py:35
↓ 3 callers
Function
generated_app
(server: FastMCP)
tests/cli/test_generate_cli_empty_arrays.py:12
↓ 3 callers
Function
generated_cli
(server: FastMCP)
tests/cli/test_generate_cli_arguments.py:14
↓ 3 callers
Method
get_error_stats
Get error statistics for monitoring. The map is capped at 1000 entries. Errors that would exceed the cap are counted together under `
fastmcp_slim/fastmcp/server/middleware/error_handling.py:134
↓ 3 callers
Function
get_function_type_hints
Resolve a function's type hints, keeping `Annotated` metadata.
fastmcp_slim/fastmcp/utilities/types.py:48
↓ 3 callers
Function
get_http_headers
Extract headers from the current HTTP request if available. Never raises an exception, even if there is no active HTTP request (in which case
fastmcp_slim/fastmcp/server/dependencies.py:609
↓ 3 callers
Method
get_span_attributes
(self)
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:123
↓ 3 callers
Method
get_tool
Get tool by transformed name.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:102
↓ 3 callers
Method
get_tool
( self, name: str, call_next: GetToolNext, *, version: VersionSpec | None = None )
tests/server/providers/test_catalog_tool_names.py:21
↓ 3 callers
Method
get_tool
( self, name: str, call_next: GetToolNext, *, version: VersionSpec | None = None )
tests/server/transforms/test_catalog.py:46
↓ 3 callers
Function
get_visibility_rules
Load visibility rule dicts from session state. Returns no rules when there is no session or no client identity to scope them to.
fastmcp_slim/fastmcp/server/transforms/visibility.py:327
↓ 3 callers
Function
gh_json
(*args: str)
scripts/maintenance_status.py:139
↓ 3 callers
Function
handle_elicit_accept
Handle an accepted elicitation response. Args: config: The elicitation configuration from parse_elicit_response_type content: The
fastmcp_slim/fastmcp/server/elicitation.py:344
↓ 3 callers
Function
handler
(request: httpx2.Request)
tests/cli/deploy/test_authentication.py:44
↓ 3 callers
Function
inspector
Run an MCP server with the MCP Inspector for development. Args: server_spec: Python file to run, optionally with :object suffix, or None
fastmcp_slim/fastmcp/cli/cli.py:134
↓ 3 callers
Function
install_cursor_workspace
Install FastMCP server to workspace-specific Cursor configuration. Args: file: Path to the server file server_object: Optional se
fastmcp_slim/fastmcp/cli/install/cursor.py:59
↓ 3 callers
Function
install_stdio
Generate the stdio command for running a FastMCP server. Args: file: Path to the server file server_object: Optional server objec
fastmcp_slim/fastmcp/cli/install/stdio.py:21
↓ 3 callers
Function
is_human
(actor: dict[str, Any] | None)
scripts/release_contributor_credit.py:40
↓ 3 callers
Function
is_timeout_error
Return whether an exception is an httpx2 or legacy-httpx timeout.
fastmcp_slim/fastmcp/utilities/exceptions.py:34
↓ 3 callers
Function
kind
(item: dict)
scripts/backlog_status.py:64
↓ 3 callers
Function
known_divergence
Name a divergence already recorded in FINDINGS.md, so the run still stops on anything new.
tests/pbt/test_uri_template.py:18
↓ 3 callers
Method
lifespan_context
Access the server's lifespan context. Returns the context dict yielded by *this* server's lifespan function. For a mounted child this
fastmcp_slim/fastmcp/server/context.py:431
↓ 3 callers
Function
list_components
()
fastmcp_slim/fastmcp/contrib/mcp_mixin/example.py:43
↓ 3 callers
Function
list_only_tool
(spec: dict[str, Any])
tests/server/providers/openapi/test_component_property_refs.py:59
↓ 3 callers
Method
list_tools
Mark tools by visibility state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:210
↓ 3 callers
Function
listed_files
(client: Client, list_files: str)
tests/server/test_session_scope.py:51
↓ 3 callers
Function
load
()
status-site/pbt.js:399
↓ 3 callers
Method
log_bridge
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:172
↓ 3 callers
Method
log_request
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:111
↓ 3 callers
Method
log_response
(self, body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:127
← previous
next →
1,201–1,300 of 16,224, ranked by callers