MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions16,224 in github.com/PrefectHQ/fastmcp

↓ 2 callersFunctionunwrap_optional
Return a field's bare type, unwrapping an Optional[T] annotation to T.
tests/utilities/json_schema_type/test_advanced.py:22
↓ 2 callersFunctionupdate_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 callersFunctionuse
(api: HorizonAuthAPI)
tests/cli/deploy/test_command.py:87
↓ 2 callersFunctionuser
()
tests/cli/deploy/test_output.py:28
↓ 2 callersFunctionuser_spec
(openapi_version: str)
tests/server/providers/openapi/test_write_only_responses.py:15
↓ 2 callersMethodverify_token
Verify WorkOS OAuth token by calling userinfo endpoint.
fastmcp_slim/fastmcp/server/auth/providers/workos.py:65
↓ 2 callersMethodverify_token
(self, token: str)
tests/server/auth/test_issuer_url_identity.py:52
↓ 2 callersFunctionversioned_contacts_app
()
tests/server/test_hashed_tool_dispatch.py:307
↓ 2 callersFunctionwrapped_definition_schema
( title: str, *, additional_properties: bool, description_size: int = 3_000 )
tests/utilities/json_schema_type/test_generated_classes.py:476
↓ 2 callersFunctionwrite_state
Write JSON through a restricted temporary file and atomic replacement.
fastmcp_slim/fastmcp/cli/deploy/state.py:170
↓ 2 callersFunctionyoutube_video_id
Extract a video ID from the common YouTube URL shapes.
examples/apps/media_picker/media_picker_server.py:80
↓ 1 callersFunctionCurrentAccessToken
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 callersFunctionCurrentHeaders
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 callersFunctionCurrentWorker
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 callersFunctionEntraOBOToken
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 callersFunctionOptionalCurrentContext
Get the current FastMCP Context, or None when no context is active.
fastmcp_slim/fastmcp/server/dependencies.py:1075
↓ 1 callersFunctionOptionalCurrentSession
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 callersFunctionTaskKey
()
fastmcp_tasks/fastmcp_tasks/context.py:30
↓ 1 callersMethod__aenter__
Enter the context manager and set this context as the current context.
fastmcp_slim/fastmcp/server/context.py:274
↓ 1 callersMethod__aenter__
(self)
fastmcp_slim/fastmcp/server/dependencies.py:1311
↓ 1 callersMethod__aenter__
(self)
tests/server/test_dependencies_advanced.py:20
↓ 1 callersMethod__aexit__
(self, exc_type, exc_val, exc_tb)
fastmcp_slim/fastmcp/client/client.py:1007
↓ 1 callersMethod__aexit__
(self, exc_type, exc_val, exc_tb)
tests/server/test_dependencies_advanced.py:24
↓ 1 callersMethod__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 callersMethod__init__
( self, api_origin: str = DEFAULT_HORIZON_API_ORIGIN, *, api_key: SecretStr |
fastmcp_slim/fastmcp/cli/deploy/horizon_client.py:153
↓ 1 callersMethod__init__
(self, app: ASGIApp)
fastmcp_slim/fastmcp/server/http.py:472
↓ 1 callersMethod__init__
( self, name: str | None = None, instructions: str | None = None, *, v
fastmcp_slim/fastmcp/server/server.py:485
↓ 1 callersMethod__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 callersMethod__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 callersMethod__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 callersMethod__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:100
↓ 1 callersMethod__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 callersMethod__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 callersMethod__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 callersMethod__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 callersMethod__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
↓ 1 callersMethod__init__
Initialize Hugging Face OAuth provider. Args: client_id: Hugging Face OAuth app client ID. Public apps and CIMD c
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:179
↓ 1 callersMethod__init__
(self, k1: float = 1.5, b: float = 0.75)
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:29
↓ 1 callersMethod__init__
(self, skills: SkillCatalog | None = None)
fastmcp_slim/fastmcp/skills/provider.py:246
↓ 1 callersMethod__init__
( self, *, search_fn: SearchFn | None = None, name: str = "search", de
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:368
↓ 1 callersMethod__init__
(self, exception: Exception)
tests/client/client/test_session.py:28
↓ 1 callersMethod__init__
(self, admin: redis.Redis)
tests/downstream/smoke_redis_credentials.py:110
↓ 1 callersMethod__init__
(self, tools: Sequence[Tool])
tests/server/test_providers.py:72
↓ 1 callersMethod__init__
(self, app: ASGIApp, header_name: str, header_value: str)
tests/server/http/test_http_middleware.py:23
↓ 1 callersMethod__init__
(self, required_scopes: list[str])
tests/server/auth/test_enhanced_error_responses.py:29
↓ 1 callersMethod__init__
(self, rotates: bool)
tests/pbt/test_oauth_proxy_machine.py:63
↓ 1 callersMethod__setattr__
(self, name: str, value: object)
fastmcp_slim/fastmcp/skills/skill.py:259
↓ 1 callersMethod_absorb_tool_listing
( self, result: mcp_types.ListToolsResult, *, complete: bool )
fastmcp_slim/fastmcp/client/transports/base.py:89
↓ 1 callersFunction_accepts_exploded_query
Whether an annotation explicitly accepts the list produced by explode.
fastmcp_slim/fastmcp/resources/template.py:74
↓ 1 callersFunction_access_restricted_names
Names of the object's properties annotated with any of ``access_keys``. A property counts when its own schema, its ``$ref`` target, or one of its
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:380
↓ 1 callersFunction_account_panel
( user: HorizonUser, *, title: str, message: str, )
fastmcp_slim/fastmcp/cli/deploy/output.py:53
↓ 1 callersFunction_aggregate_by
(rows: list[dict], key: str)
examples/apps/explorer/explorer_server.py:321
↓ 1 callersMethod_allow_same_origin_fallback
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:304
↓ 1 callersMethod_allowed_hosts_for_scope
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:314
↓ 1 callersFunction_answer_input_requests
Answer a task's outstanding input requests, then deliver via `tasks/update`. Each request is surfaced by a server-minted key and carries a serial
fastmcp_tasks/fastmcp_tasks/client.py:173
↓ 1 callersMethod_apply_add
(self, kind, owner, ident, version, tags)
tests/pbt/test_components_machine.py:202
↓ 1 callersMethod_apply_client_auth
Attach client credentials per the configured auth method (RFC 6749 §2.3).
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:66
↓ 1 callersFunction_apply_meta_override
Apply a transform's ``meta=`` override, preserving framework namespaces. An override replaces the caller-facing meta wholesale, which is what use
fastmcp_slim/fastmcp/tools/tool_transform.py:365
↓ 1 callersMethod_apply_shared_context
Re-establish app-scoped SharedContext ContextVars for this request. The SDK v2 dispatcher runs handlers in the message sender's context, so
fastmcp_slim/fastmcp/server/low_level.py:303
↓ 1 callersMethod_apply_single_transform
Apply transformation to a single parameter. This method handles the transformation of a single argument according to the specified tr
fastmcp_slim/fastmcp/tools/tool_transform.py:929
↓ 1 callersFunction_apply_value_metadata
Override title/description on the wrapped ``value`` property in-place.
fastmcp_slim/fastmcp/server/elicitation.py:228
↓ 1 callersMethod_arg_transform_explicit_required_names
( transform_args: dict[str, ArgTransform] | None, )
fastmcp_slim/fastmcp/tools/tool_transform.py:1022
↓ 1 callersMethod_arg_transform_type_override_names
( transform_args: dict[str, ArgTransform] | None, )
fastmcp_slim/fastmcp/tools/tool_transform.py:1006
↓ 1 callersFunction_as_input_required
Return the `InputRequiredResult` a guard leg produced, or None. A tool body may return the bare `InputRequiredResult` or the `InputRequiredTo
fastmcp_tasks/fastmcp_tasks/input_loop.py:49
↓ 1 callersFunction_ask
(field: str, message: str, state: str)
tests/server/transforms/test_input_required.py:31
↓ 1 callersFunction_ask_dinner_prefs
Return the input request that pauses the task until the client answers.
examples/task_elicitation.py:50
↓ 1 callersMethod_assert_options
(self)
tests/utilities/httpx2_mock.py:207
↓ 1 callersFunction_assertion_granted_scopes
Scopes granted by an ID-JAG, from its `scope` or `scp` claim.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:183
↓ 1 callersFunction_assertion_scopes
Extract the scopes an ID-JAG grants, from `scope` or `scp`.
fastmcp_slim/fastmcp/server/auth/identity_assertion.py:509
↓ 1 callersFunction_async_fn
(x: int)
tests/utilities/test_async_utils.py:21
↓ 1 callersFunction_author_facts
(login: str, data: dict[str, Any], i: int)
scripts/rank_issues.py:391
↓ 1 callersFunction_author_query
(logins: Sequence[str], repo: str, since: str)
scripts/rank_issues.py:345
↓ 1 callersMethod_backend
(seen: dict[str, dict])
tests/server/telemetry/test_provider_tracing.py:147
↓ 1 callersFunction_backend_sample
Issue a handshake-era `sampling/createMessage` from a backend server.
tests/server/providers/proxy/test_proxy_client.py:80
↓ 1 callersFunction_backend_sample_result
Issue a handshake-era `sampling/createMessage` and return the whole result.
tests/server/providers/proxy/test_proxy_client.py:100
↓ 1 callersFunction_banner
(title: str, *, style: str)
fastmcp_slim/fastmcp/cli/deploy/output.py:43
↓ 1 callersFunction_bash_quote
Quote a value as one bash word that stays on one line. `shlex.quote` keeps newlines literal, which would split the word across lines of the g
fastmcp_slim/fastmcp/cli/generate.py:681
↓ 1 callersMethod_bind
Bind this provider to a specific MCP server URL. Called automatically when ``mcp_url`` is provided to ``__init__``, or by the transpo
fastmcp_slim/fastmcp/client/auth/client_credentials.py:380
↓ 1 callersMethod_bind_restoring_handlers
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:1951
↓ 1 callersFunction_body
()
fastmcp_slim/fastmcp/cli/apps_dev.py:1714
↓ 1 callersMethod_bounded_body
Copy JSON bodies and replace unusually large payloads with a marker.
fastmcp_slim/fastmcp/cli/apps_dev_log.py:53
↓ 1 callersFunction_bounded_error_body
Limit upstream error text included in a tool error.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:72
↓ 1 callersFunction_budgeted
A Hypothesis property or state machine whose run size can be set.
tests/pbt/conftest.py:98
↓ 1 callersFunction_build_actions_section
Render category filter, quantity adjustment, and delete controls.
examples/apps/inventory/inventory_server.py:285
↓ 1 callersFunction_build_add_form
Render the add-item form using Form.from_model().
examples/apps/inventory/inventory_server.py:266
↓ 1 callersMethod_build_composite
Connect configured backends and mount their proxies on one router.
fastmcp_slim/fastmcp/client/transports/config.py:216
↓ 1 callersFunction_build_csp
Build CSP from the generative renderer's declared requirements.
fastmcp_slim/fastmcp/apps/generative.py:44
↓ 1 callersFunction_build_dataclass
( schema: Mapping[str, Any], sanitized_name: str, schemas: Mapping[str, Any], resolving_refs:
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1483
↓ 1 callersMethod_build_execute_description
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:686
↓ 1 callersFunction_build_facets
Build facets for rich text formatting, including auto-detected URLs.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:92
↓ 1 callersFunction_build_fetch_targets
Build the ordered connection attempts for a validated URL. An empty ``resolved_ips`` means proxy mode (see :func:`validate_url`): a single un
fastmcp_slim/fastmcp/server/auth/ssrf.py:246
↓ 1 callersFunction_build_form_urlencoded_data
Serialize structured urlencoded fields as JSON per the OAS Encoding Object. Object properties default to `contentType: application/json`, so they
fastmcp_slim/fastmcp/utilities/openapi/director.py:189
↓ 1 callersFunction_build_inventory_table
Render the main DataTable with all current items.
examples/apps/inventory/inventory_server.py:224
↓ 1 callersFunction_build_map_html
( locations: list[dict], zoom: int, )
examples/apps/map/map_server.py:53
↓ 1 callersFunction_build_picker_html
Build Prefab picker page: dropdown selector with per-tool forms.
fastmcp_slim/fastmcp/cli/apps_dev.py:926
↓ 1 callersFunction_build_pydantic_model
( schema: Mapping[str, Any], name: str, schemas: Mapping[str, Any], resolving_refs: frozenset[
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1382
↓ 1 callersFunction_build_quote_embed
Build quote embed.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:208
↓ 1 callersFunction_build_quote_with_images_embed
Build quote embed with images.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:223
↓ 1 callersFunction_build_reply_ref
Build reply reference.
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:184
↓ 1 callersFunction_build_request_card
Build a card for a single request inside a ForEach context.
examples/apps/approvals/approvals_server.py:217
← previousnext →1,901–2,000 of 16,224, ranked by callers