Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
↓ 2 callers
Method
on_store
(self, files: list[dict[str, Any]], ctx: Context)
tests/apps/test_file_upload_retention.py:182
↓ 2 callers
Function
one
(batch: list[str])
scripts/rank_issues.py:434
↓ 2 callers
Function
optional_scope_challenge_proxy
()
tests/server/auth/test_multi_auth.py:58
↓ 2 callers
Function
oracle
Validity under Draft 2020-12. A drawn schema the oracle cannot judge (malformed, or an unguarded `$ref` cycle) is rejected as an example. A r
tests/pbt/test_json_schema.py:32
↓ 2 callers
Function
parse_frontmatter
(content: bytes)
fastmcp_slim/fastmcp/skills/_snapshot.py:58
↓ 2 callers
Function
parse_time
(value: str)
scripts/backlog_status.py:60
↓ 2 callers
Function
prefab_app_from_component
Wrap a Prefab component in a Prefab app.
fastmcp_slim/fastmcp/utilities/prefab.py:69
↓ 2 callers
Function
prefab_available
Return whether Prefab UI is installed without importing it.
fastmcp_slim/fastmcp/utilities/prefab.py:12
↓ 2 callers
Method
prepare_source
Prepare the source for loading. Delegates to the source's prepare() method.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:404
↓ 2 callers
Function
ranking
()
status-site/operations.js:188
↓ 2 callers
Method
read
Read the resource content.
fastmcp_slim/fastmcp/resources/template.py:672
↓ 2 callers
Method
read
(self)
fastmcp_slim/fastmcp/skills/provider.py:192
↓ 2 callers
Function
read_state
Read and validate a versioned JSON state file.
fastmcp_slim/fastmcp/cli/deploy/state.py:146
↓ 2 callers
Function
reentrant_task_fn
Wrap a task tool's callable to capture a guard leg's ask (end-and-reenter). Signature-preserving, so Docket injects the wrapped callable's parame
fastmcp_tasks/fastmcp_tasks/input_loop.py:125
↓ 2 callers
Method
reference
Refer to a class's identity rather than its possibly shared display name.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:264
↓ 2 callers
Method
register
(fn: CompletionHandler)
fastmcp_slim/fastmcp/server/server.py:2453
↓ 2 callers
Method
register_client
(self, client_info: OAuthClientInformationFull)
fastmcp_slim/fastmcp/server/auth/providers/in_memory.py:73
↓ 2 callers
Function
register_task_server
Register the server for a background task. Called at task-submission time so that background workers can resolve the correct (child) server f
fastmcp_tasks/fastmcp_tasks/context.py:465
↓ 2 callers
Function
release_prs
(notes: str)
scripts/release_contributor_credit.py:107
↓ 2 callers
Method
remove_label
Remove a label from an issue.
scripts/auto_close_duplicates.py:182
↓ 2 callers
Method
remove_prompt
Remove prompt(s) from this provider's storage. Args: name: The prompt name. version: If None, removes ALL versions. I
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:304
↓ 2 callers
Method
remove_resource
Remove resource(s) from this provider's storage. Args: uri: The resource URI. version: If None, removes ALL versions.
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:246
↓ 2 callers
Method
remove_tool
Remove tool(s) from this provider's storage. Args: name: The tool name. version: If None, removes ALL versions. If sp
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:218
↓ 2 callers
Method
renderer_uri
Return the renderer URI the server lists to an authorized caller.
tests/server/auth/test_authorization.py:1791
↓ 2 callers
Function
replace_type
Given a (possibly generic, nested, or otherwise complex) type, replaces all instances of keys in type_map with their corresponding values.
fastmcp_slim/fastmcp/utilities/types.py:498
↓ 2 callers
Method
replay_events_after
( self, last_event_id: EventId, send_callback: EventCallback, )
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:41
↓ 2 callers
Method
reply_error
(self, request_id: Any, code: int, message: str)
tests/client/minimal_stdio_server.py:99
↓ 2 callers
Function
require_complete
(items: list[dict], newest: int)
scripts/backlog_status.py:53
↓ 2 callers
Function
require_discriminator_property
Keep an OpenAPI discriminator's tag mandatory after the keyword is dropped. Returns a copy of *schema* with ``discriminator.propertyName`` added
fastmcp_slim/fastmcp/utilities/json_schema.py:288
↓ 2 callers
Method
required_extensions
Extensions bundled with this provider. FastMCP automatically registers a separate instance of each extension on the receiving server.
fastmcp_slim/fastmcp/server/providers/base.py:96
↓ 2 callers
Method
required_extensions
Collect bundled extensions from children in provider order.
fastmcp_slim/fastmcp/server/providers/aggregate.py:103
↓ 2 callers
Method
reset
Clear all recorded notifications.
tests/client/test_notifications.py:62
↓ 2 callers
Function
resolve_definition_pointer
Look up ``pointer``, the part of a ``#/$defs/...`` reference after ``#/$defs/``, in ``definitions``. The pointer can continue into a definiti
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:334
↓ 2 callers
Function
resolve_dependencies
Resolve dependencies for a FastMCP function. This function: 1. Filters out any dependency parameter names from user arguments (security)
fastmcp_slim/fastmcp/server/dependencies.py:922
↓ 2 callers
Function
resolve_hostname
Resolve hostname to IP addresses using DNS. Args: hostname: Hostname to resolve port: Port number (used for getaddrinfo) Ret
fastmcp_slim/fastmcp/server/auth/ssrf.py:178
↓ 2 callers
Function
resolve_room
(bridge: Bridge, target: str)
examples/smart_home/src/smart_home/lights/server.py:36
↓ 2 callers
Function
respond
(request: httpx2.Request)
tests/server/auth/test_jwks_refresh.py:35
↓ 2 callers
Function
responder
(request: httpx2.Request)
tests/client/auth/test_client_credentials.py:57
↓ 2 callers
Method
run
Run the tool with context set for forward() functions. This method executes the tool's function while setting up the context that all
fastmcp_slim/fastmcp/tools/tool_transform.py:429
↓ 2 callers
Method
run
Executes the tool by making a call through the client.
fastmcp_slim/fastmcp/server/providers/proxy.py:415
↓ 2 callers
Function
run_checks
( report: Report, checks: list[Callable[[], Awaitable[object]]], gaps: dict[str, str] | None = Non
tests/downstream/smoke_langchain_mcp.py:112
↓ 2 callers
Function
run_tasks_through_rotation
Rounds of concurrent task calls. Between rounds the server drops the connections after the provider's credentials have moved on, so the next
tests/downstream/smoke_redis_credentials.py:140
↓ 2 callers
Function
run_v1_server_async
Run the MCP SDK's high-level `MCPServer` using async methods. Args: server: SDK `MCPServer` instance host: Host to bind to
fastmcp_slim/fastmcp/cli/run.py:324
↓ 2 callers
Function
save_current_leg
Record the latest leg's Docket execution key and its number.
fastmcp_tasks/fastmcp_tasks/input_store.py:185
↓ 2 callers
Function
scripted_model
(add: str, forecast: str)
tests/downstream/smoke_langchain_mcp.py:55
↓ 2 callers
Function
send
(message: Message)
tests/server/http/test_http_middleware.py:253
↓ 2 callers
Function
send_callback
()
tests/client/auth/test_oauth_client.py:211
↓ 2 callers
Function
sent_query
(spec: dict[str, Any], args: dict[str, Any])
tests/server/providers/openapi/test_query_key_collisions.py:42
↓ 2 callers
Function
sequenced_transport
( responses: list[httpx2.Response], )
tests/cli/deploy/test_authentication.py:41
↓ 2 callers
Function
serialize_tools_for_output_json
Serialize tools to the same dict format as ``list_tools`` output.
fastmcp_slim/fastmcp/server/transforms/search/base.py:62
↓ 2 callers
Function
server_python
The interpreter of the FastMCP checkout, which is what serves every smoke test.
tests/downstream/_harness.py:64
↓ 2 callers
Function
setCategory
()
status-site/app.js:458
↓ 2 callers
Function
set_background_context_factory
Install (or clear) the background-task ``Context`` factory. The factory returns an already-entered ``Context`` (so ``_current_context`` is se
fastmcp_slim/fastmcp/server/dependencies.py:196
↓ 2 callers
Function
set_worker_server_resolver
Install (or clear) the worker-server resolver used by ``get_server()``.
fastmcp_slim/fastmcp/server/dependencies.py:218
↓ 2 callers
Method
settings
Per-extension settings advertised at `capabilities.extensions[identifier]`. An empty dict (the default) advertises the extension with no sett
fastmcp_slim/fastmcp/server/extensions.py:232
↓ 2 callers
Function
spec_for
A POST /things whose request and response both use the `Thing` schema.
tests/server/providers/openapi/test_write_only_responses.py:139
↓ 2 callers
Method
start
Start the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:214
↓ 2 callers
Method
status
Fetch the task's current status via `tasks/get`.
fastmcp_tasks/fastmcp_tasks/client.py:435
↓ 2 callers
Method
store_event
( self, stream_id: StreamId, message: JSONRPCMessage | None )
fastmcp_slim/fastmcp/server/session_scoped_event_store.py:34
↓ 2 callers
Function
synthesize_prefab_resource_by_uri
Intercept a Prefab renderer URI and synthesize on demand.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:266
↓ 2 callers
Function
tasks_cancel
Handle ``tasks/cancel``: cooperatively cancel the task, empty ack. A durable cancellation marker is recorded so the logical task reports ``ca
fastmcp_tasks/fastmcp_tasks/handlers.py:449
↓ 2 callers
Function
tasks_get
Handle ``tasks/get``: the detailed task with its result/error/inputs inlined.
fastmcp_tasks/fastmcp_tasks/handlers.py:250
↓ 2 callers
Function
tasks_update
Handle ``tasks/update``: answer a guard leg and re-enter the task. The responses are keyed by the surfaced keys ``tasks/get`` reported. Unknown
fastmcp_tasks/fastmcp_tasks/handlers.py:337
↓ 2 callers
Function
temporary_log_level
Context manager to temporarily set log level and restore it afterwards. Args: level: The temporary log level to set (e.g., "DEBUG", "INFO
fastmcp_slim/fastmcp/utilities/logging.py:127
↓ 2 callers
Function
text_from
(pieces: list[str], *, min_size: int = 0)
tests/pbt/strategies.py:22
↓ 2 callers
Method
to_dict
Convert MCPConfig to dictionary format, preserving all fields.
fastmcp_slim/fastmcp/mcp_config.py:392
↓ 2 callers
Method
to_light_state
(self)
examples/smart_home/src/smart_home/lights/models.py:32
↓ 2 callers
Method
to_transport
(self)
tests/client/group/test_client_group.py:27
↓ 2 callers
Method
track
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:244
↓ 2 callers
Method
ui
( self, name_or_fn: F, *, name: str | None = None, description: str |
fastmcp_slim/fastmcp/apps/app.py:280
↓ 2 callers
Function
unwrap_optional
Return a field's bare type, unwrapping an Optional[T] annotation to T.
tests/utilities/json_schema_type/test_advanced.py:22
↓ 2 callers
Function
update_config_file
Update an MCP configuration file from a server object, preserving existing fields. This is used for updating the mcpServer configurations of thir
fastmcp_slim/fastmcp/mcp_config.py:427
↓ 2 callers
Function
use
(api: HorizonAuthAPI)
tests/cli/deploy/test_command.py:87
↓ 2 callers
Function
user
()
tests/cli/deploy/test_output.py:28
↓ 2 callers
Function
user_spec
(openapi_version: str)
tests/server/providers/openapi/test_write_only_responses.py:15
↓ 2 callers
Method
verify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:65
↓ 2 callers
Method
verify_token
(self, token: str)
tests/server/auth/test_issuer_url_identity.py:52
↓ 2 callers
Function
versioned_contacts_app
()
tests/server/test_hashed_tool_dispatch.py:307
↓ 2 callers
Function
wrapped_definition_schema
( title: str, *, additional_properties: bool, description_size: int = 3_000 )
tests/utilities/json_schema_type/test_generated_classes.py:476
↓ 2 callers
Function
write_state
Write JSON through a restricted temporary file and atomic replacement.
fastmcp_slim/fastmcp/cli/deploy/state.py:170
↓ 2 callers
Function
youtube_video_id
Extract a video ID from the common YouTube URL shapes.
examples/apps/media_picker/media_picker_server.py:80
↓ 1 callers
Function
CurrentAccessToken
Get the current access token for the authenticated user. This dependency provides access to the AccessToken for the current authenticated req
fastmcp_slim/fastmcp/server/dependencies.py:1397
↓ 1 callers
Function
CurrentHeaders
Get the current HTTP request headers. This dependency provides access to the HTTP headers for the current request, including the `authorizati
fastmcp_slim/fastmcp/server/dependencies.py:1179
↓ 1 callers
Function
CurrentWorker
Get the current Docket Worker instance managed by FastMCP. This dependency provides access to the Worker instance that FastMCP automatically
fastmcp_tasks/fastmcp_tasks/dependencies.py:161
↓ 1 callers
Function
EntraOBOToken
Exchange the user's Entra token for a downstream API token via OBO. This dependency performs a Microsoft Entra On-Behalf-Of (OBO) token exchange,
fastmcp_slim/fastmcp/server/auth/providers/azure.py:898
↓ 1 callers
Function
OptionalCurrentContext
Get the current FastMCP Context, or None when no context is active.
fastmcp_slim/fastmcp/server/dependencies.py:1075
↓ 1 callers
Function
OptionalCurrentSession
Inject the per-user `Session`, or `None` when the request is unauthenticated. Rarely written explicitly — a `session: UserSession | None = None`
fastmcp_slim/fastmcp/server/sessions.py:459
↓ 1 callers
Function
TaskKey
()
fastmcp_tasks/fastmcp_tasks/context.py:30
↓ 1 callers
Method
__aenter__
Enter the context manager and set this context as the current context.
fastmcp_slim/fastmcp/server/context.py:274
↓ 1 callers
Method
__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1311
↓ 1 callers
Method
__aenter__
(self)
tests/server/test_dependencies_advanced.py:20
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
fastmcp_slim/fastmcp/client/client.py:1007
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callers
Method
__init__
Initialize OAuth client provider for an MCP server. Args: mcp_url: Full URL to the MCP endpoint (e.g. "http://host/mcp/s
fastmcp_slim/fastmcp/client/auth/oauth.py:213
↓ 1 callers
Method
__init__
( self, api_origin: str = DEFAULT_HORIZON_API_ORIGIN, *, api_key: SecretStr |
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:153
↓ 1 callers
Method
__init__
(self, app: ASGIApp)
fastmcp_slim/fastmcp/server/http.py:472
↓ 1 callers
Method
__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:442
↓ 1 callers
Method
__init__
Initialize AWS Cognito OAuth provider. Args: user_pool_id: Your Cognito User Pool ID (e.g., "eu-central-1_XXXXXXXXX")
fastmcp_slim/fastmcp/server/auth/providers/aws.py:127
↓ 1 callers
Method
__init__
Initialize GitHub OAuth provider. Args: client_id: GitHub OAuth app client ID (e.g., "Ov23li...") client_secret: GitH
fastmcp_slim/fastmcp/server/auth/providers/github.py:318
↓ 1 callers
Method
__init__
Initialize Auth0 OAuth provider. Args: config_url: Auth0 config URL client_id: Auth0 application client id
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:84
← previous
next →
1,801–1,900 of 16,098, ranked by callers