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
↓ 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
Method
resource
()
tests/tools/test_tool_timeout.py:109
↓ 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:59
↓ 2 callers
Function
rest_actor
(user: dict[str, Any] | None)
scripts/release_contributor_credit.py:90
↓ 2 callers
Function
rest_authors
A REST commit's author plus its co-author trailers, in GraphQL's shape.
scripts/release_contributor_credit.py:129
↓ 2 callers
Function
row
(n, *, pr=True, labels=(), draft=False, bot=False, days=10, idle=1)
tests/test_triage_floor_feed.py:192
↓ 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:460
↓ 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
Method
save_position
Remember where the source is upstream. Save after the events before it are emitted. Save during quiet stretches too, if the upstream
fastmcp_events/fastmcp_events/source.py:58
↓ 2 callers
Method
save_source_position
Remember `source`'s upstream position.
fastmcp_events/fastmcp_events/log.py:78
↓ 2 callers
Function
scripted_model
(add: str, forecast: str)
tests/downstream/smoke_langchain_mcp.py:55
↓ 2 callers
Function
send
()
tests/events/test_webhooks.py:556
↓ 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
server_with_authorizing_reader
A server whose reader serves `log` only to the subjects in `allowed`.
tests/events/test_webhooks.py:528
↓ 2 callers
Function
session
Reuse a cached session so most runs never call createSession. bsky-hosted PDSes allow 300 createSession calls a day per account; fastmcp can
scripts/triage_floor_feed.py:582
↓ 2 callers
Function
setCategory
()
status-site/app.js:474
↓ 2 callers
Function
setScope
(next)
status-site/pbt.js:183
↓ 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
Method
set_sampling_callback
Set the sampling callback for the client. A connected session that was opened with a sampling handler uses the new one immediately; o
fastmcp_slim/fastmcp/client/client.py:770
↓ 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
source
(token: str)
tests/events/test_webhooks.py:840
↓ 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
Function
stage
The floor's bucket for one open item, in the order the site applies them.
scripts/triage_floor_feed.py:383
↓ 2 callers
Method
start
Start the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:214
↓ 2 callers
Function
state
(changes: list[tuple[datetime, bool]], start: bool, at: datetime)
scripts/floor_history.py:106
↓ 2 callers
Method
status
Fetch the task's current status via `tasks/get`.
fastmcp_tasks/fastmcp_tasks/client.py:440
↓ 2 callers
Function
stop
()
status-site/anchors.js:32
↓ 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:270
↓ 2 callers
Function
target
()
status-site/anchors.js:16
↓ 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:485
↓ 2 callers
Function
tasks_get
Handle ``tasks/get``: the detailed task with its result/error/inputs inlined.
fastmcp_tasks/fastmcp_tasks/handlers.py:285
↓ 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:373
↓ 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
Function
tick
(poll: EventPoll)
tests/events/test_cli.py:183
↓ 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
token_set
(self)
tests/pbt/test_oauth_proxy_machine.py:76
↓ 2 callers
Method
track
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:244
↓ 2 callers
Function
transform
()
tests/tools/tool_transform/test_tool_transform.py:811
↓ 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
Function
v6_wrappers
IPv6 spellings that carry `v4` and are global on their own, so only unwrapping the IPv4 inside can block them. (6to4, Teredo and the local NAT
tests/pbt/test_auth_url_guards.py:76
↓ 2 callers
Function
values
(s: Spec)
tests/pbt/test_elicitation.py:194
↓ 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
Put one record, logging in again once if the session went stale. With newer_only, a record whose `at` is older than the stored one is dropped
scripts/floor_receiver/main.py:192
↓ 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
xrpc
(method: str, body: dict, token: str | None = None)
scripts/floor_receiver/main.py:80
↓ 2 callers
Function
xrpc_get
(pds: str, method: str, params: dict)
scripts/triage_floor_feed.py:471
↓ 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:911
↓ 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/tasks/server/test_task_dependencies.py:150
↓ 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:1084
↓ 1 callers
Method
__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callers
Method
__aiter__
(self)
fastmcp_events/fastmcp_events/subscription.py:158
↓ 1 callers
Method
__call__
(self, request: httpx2.Request)
tests/events/test_webhooks.py:997
↓ 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:475
↓ 1 callers
Method
__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:493
↓ 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
↓ 1 callers
Method
__init__
Initialize Azure OAuth provider. Args: client_id: Azure application (client) ID from your App registration client_sec
fastmcp_slim/fastmcp/server/auth/providers/azure.py:105
↓ 1 callers
Method
__init__
Initialize Clerk OAuth provider. Args: domain: Clerk instance domain (e.g., "saving-primate-16.clerk.accounts.dev").
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:284
↓ 1 callers
Method
__init__
Initialize Google OAuth provider. Args: client_id: Google OAuth client ID (e.g., "123456789.apps.googleusercontent.com")
fastmcp_slim/fastmcp/server/auth/providers/google.py:277
↓ 1 callers
Method
__init__
Initialize a JWTVerifier configured to validate JWTs using either a static key or a JWKS endpoint. Parameters: public_ke
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:231
↓ 1 callers
Method
__init__
Initialize Discord OAuth provider. Args: client_id: Discord OAuth client ID (e.g., "123456789") client_secret: Discor
fastmcp_slim/fastmcp/server/auth/providers/discord.py:196
↓ 1 callers
Method
__init__
Initialize the Descope provider. Args: base_url: Public URL of this FastMCP server. config_url: A resource-specific o
fastmcp_slim/fastmcp/server/auth/providers/descope.py:162
← previous
next →
2,101–2,200 of 17,519, ranked by callers