MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions17,519 in github.com/PrefectHQ/fastmcp

↓ 19 callersMethodclose
(self)
fastmcp_slim/fastmcp/client/client.py:1588
↓ 19 callersMethoddelete
Remove `key` from this session, if present (preserves the marker).
fastmcp_slim/fastmcp/server/sessions.py:270
↓ 19 callersMethodexchange_refresh_token
( self, client: OAuthClientInformationFull, refresh_token: RefreshToken, scope
tests/server/test_auth_integration.py:126
↓ 19 callersFunctiongenerate_cli_script
Generate the full CLI script source code.
fastmcp_slim/fastmcp/cli/generate.py:437
↓ 19 callersFunctionget_elicitation_schema
Get the schema for an elicitation response. Args: response_type: The type of the response
fastmcp_slim/fastmcp/server/elicitation.py:424
↓ 19 callersFunctionis_redirect_uri_allowed_for_application_type
Check a redirect URI against RFC 7591 / SEP-837 `application_type` rules. `application_type` governs which redirect URIs a Dynamically Registered
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:519
↓ 19 callersMethodkey
The globally unique lookup key for this resource.
fastmcp_slim/fastmcp/resources/base.py:490
↓ 19 callersFunctionmake_m2m_responder
Build a responder for the standard M2M discovery + token exchange flow. Returns the responder and a dict that captures the token request and the
tests/client/auth/test_client_credentials.py:42
↓ 19 callersMethodresult
Drive the task to completion and return its parsed result. Answers any input prompts through the client's elicitation handler. Raises
fastmcp_tasks/fastmcp_tasks/client.py:485
↓ 19 callersMethodset
(self, key: CacheKey, entry: CacheEntry)
fastmcp_slim/fastmcp/client/caching.py:170
↓ 19 callersMethodto_json
Serialize to JSON for Redis storage.
fastmcp_tasks/fastmcp_tasks/context.py:232
↓ 19 callersMethodwait
Wait up to `timeout` seconds for an event after `cursor`. Returns whether one arrived. A `None` cursor waits for the next one.
fastmcp_events/fastmcp_events/log.py:67
↓ 18 callersFunction_extract_csrf
Extract CSRF token from HTML form.
tests/server/auth/test_oauth_consent_flow.py:170
↓ 18 callersFunction_jwt_auth
( key_pair: RSAKeyPair, required_scopes: list[str] | None = None )
tests/contrib/test_component_manager.py:717
↓ 18 callersFunction_tool_function_source
Generate the source for a single ``@call_tool_app.command`` function.
fastmcp_slim/fastmcp/cli/generate.py:306
↓ 18 callersFunction_unwrap_result
Extract the logical return value from a ToolResult.
tests/experimental/transforms/test_code_mode.py:30
↓ 18 callersFunctionbuild_spec
( body_schema: dict[str, Any], components: dict[str, Any] )
tests/server/providers/openapi/test_body_ref_siblings.py:11
↓ 18 callersFunctioncall_make_thing
( spec: dict[str, Any], arguments: dict[str, Any] )
tests/server/providers/openapi/test_body_ref_siblings.py:33
↓ 18 callersMethodcall_tool
Call a namespaced tool through the client that advertised it.
fastmcp_slim/fastmcp/client/group.py:366
↓ 18 callersMethodclient
(self)
tests/server/auth/providers/test_azure.py:921
↓ 18 callersMethodlist_tools
List tools from every client with namespaced names. An explicit call is the group's catalog-refresh mechanism, so it defaults to `cac
fastmcp_slim/fastmcp/client/group.py:238
↓ 18 callersMethodread
()
tests/fs/test_provider.py:377
↓ 18 callersMethodrun
(self, arguments: dict[str, Any])
tests/server/providers/test_base_provider.py:20
↓ 18 callersMethodset
Store a *successful* verification result. Only successful verifications should be cached. Failures (inactive tokens, missing scopes,
fastmcp_slim/fastmcp/utilities/token_cache.py:118
↓ 18 callersMethodset_state
Set a value in the state store. By default, values are stored in the state store under `session_id`. They persist across requests on
fastmcp_slim/fastmcp/server/context.py:1150
↓ 18 callersMethodverify_token
Verify a Google OAuth token using the tokeninfo endpoint. Calls ``https://oauth2.googleapis.com/tokeninfo`` with bearer authorization
fastmcp_slim/fastmcp/server/auth/providers/google.py:117
↓ 17 callersFunction_hash_token
Hash a token for secure storage lookup. Uses SHA-256 to create a one-way hash. The original token cannot be recovered from the hash, providin
fastmcp_slim/fastmcp/server/auth/oauth_proxy/models.py:179
↓ 17 callersMethod_list_tools
(self)
fastmcp_slim/fastmcp/apps/app.py:428
↓ 17 callersFunction_replace_ref_with_defs
Replace openapi $ref with jsonschema $defs recursively. Examples: - {"type": "object", "properties": {"$ref": "#/components/schemas/..."
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:107
↓ 17 callersFunction_tool_refs
Every tool name the rendered UI would call, in document order.
tests/server/providers/test_prefab_roundtrip.py:29
↓ 17 callersMethodaclose
(self)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:80
↓ 17 callersMethodclient
Create a test client for the FastMCP server.
tests/contrib/test_component_manager.py:54
↓ 17 callersMethodget_request
( self, *, url: str | re.Pattern[str] | httpx2.URL | None = None, method: str
tests/utilities/httpx2_mock.py:189
↓ 17 callersFunctionjson_schema_to_type_adapter
Return a cached `TypeAdapter` for `json_schema_to_type(schema)`. Adapters are cached by schema content in a bounded cache, so the classes the
fastmcp_slim/fastmcp/utilities/json_schema_type.py:520
↓ 17 callersMethodload
()
fastmcp_slim/fastmcp/skills/provider.py:263
↓ 17 callersMethodload_access_token
Validate a JWT bearer token and return an AccessToken when the token is valid. Parameters: token (str): The JWT bearer t
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:538
↓ 17 callersFunctionrun_command
Run a MCP server or connect to a remote one. Args: server_spec: Python file, object specification (file:obj), config file, or URL
fastmcp_slim/fastmcp/cli/run.py:141
↓ 17 callersMethodset_mcp_path
Propagate MCP path to the server and all verifiers.
fastmcp_slim/fastmcp/server/auth/auth.py:1030
↓ 17 callersFunctionskills_client
(server: FastMCP)
tests/server/providers/proxy/test_skills.py:62
↓ 17 callersMethodvalidate_redirect_uri
Validate that a redirect_uri is allowed by the CIMD document. Uses component-level matching (scheme, host, port, path) which correctly
fastmcp_slim/fastmcp/server/auth/cimd.py:465
↓ 16 callersFunction_is_enabled
(mcp: FastMCP, kind: ComponentKind, key: str)
tests/contrib/test_component_manager.py:707
↓ 16 callersMethod_must_run_with_uv
Check if this environment config requires uv to set up. Returns: True if any environment settings require uv run
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/environments/uv.py:93
↓ 16 callersFunction_server
The lowlevel Server the SDK client connects to in-process.
tests/server/test_protocol_eras.py:73
↓ 16 callersFunction_server
(*names: str)
tests/experimental/transforms/test_jev_search.py:99
↓ 16 callersFunction_server_with_disabled_tool
( name: str, auth: JWTVerifier | None = None, required_scopes: list[str] | None = None, )
tests/contrib/test_component_manager.py:735
↓ 16 callersFunction_tasks_server
()
tests/tasks/server/test_extension.py:50
↓ 16 callersMethodadd_provider
Add a provider with optional namespace. If the provider is a FastMCP server, it's automatically wrapped in FastMCPProvider to ensure
fastmcp_slim/fastmcp/server/providers/aggregate.py:139
↓ 16 callersMethodassert_called
Assert that a hook was called a specific number of times.
tests/server/middleware/test_middleware.py:74
↓ 16 callersFunctionbackend
(*skills: Skill, page_size: int | None = None)
tests/server/providers/proxy/test_skills.py:44
↓ 16 callersFunctioncall_command
Call a tool, read a resource, or get a prompt on an MCP server. By default the target is treated as a tool name. If the target contains ``://
fastmcp_slim/fastmcp/cli/client.py:992
↓ 16 callersFunctioncontacts_app
(calls: list[str])
tests/server/test_hashed_tool_dispatch.py:61
↓ 16 callersFunctiondrive_auth_flow
Drive an httpx auth flow to completion, feeding each yield to responder.
tests/client/auth/test_client_credentials.py:101
↓ 16 callersMethodfilter
(self, record: logging.LogRecord)
fastmcp_slim/fastmcp/utilities/logging.py:215
↓ 16 callersFunctionforward
Forward to parent tool with argument transformation applied. This function can only be called from within a transformed tool's custom functio
fastmcp_slim/fastmcp/tools/tool_transform.py:161
↓ 16 callersMethodfrom_b2c
Create an AzureProvider pre-configured for Azure AD B2C. Derives authority host, tenant path, and identifier URI from `tenant_name` a
fastmcp_slim/fastmcp/server/auth/providers/azure.py:331
↓ 16 callersFunctiongenerate_cli_command
Generate a standalone CLI script from an MCP server. Connects to the server, reads its tools/resources/prompts, and writes a Python script th
fastmcp_slim/fastmcp/cli/generate.py:901
↓ 16 callersFunctionget_http_headers
Return HTTP headers from an ambient server request, when available. The standalone client package has no server request context. When the full
fastmcp_slim/fastmcp/client/dependencies.py:37
↓ 16 callersMethodget_prompt
Get a prompt by name, filtering disabled prompts. Overrides Provider.get_prompt() to add visibility filtering after all transforms (i
fastmcp_slim/fastmcp/server/server.py:1596
↓ 16 callersMethodget_session_id
Get the session ID for this transport, if available.
fastmcp_slim/fastmcp/client/transports/base.py:220
↓ 16 callersMethodget_state
Get a value from the state store. Checks request-scoped state first (set with ``serializable=False``), then falls back to the session
fastmcp_slim/fastmcp/server/context.py:1206
↓ 16 callersMethodget_tasks
Get task-eligible components with server-level transforms applied. AggregateProvider.get_tasks() aggregates the providers' components and
fastmcp_slim/fastmcp/server/server.py:991
↓ 16 callersFunctionis_class_member_of_type
Check if cls is a member of base, even if cls is a type variable. Base can be a type, a UnionType, or an Annotated type. Generic types are n
fastmcp_slim/fastmcp/utilities/types.py:146
↓ 16 callersFunctionitem
(number=1, **overrides)
tests/test_public_triage.py:27
↓ 16 callersMethodload
(self)
fastmcp_slim/fastmcp/cli/deploy/credentials.py:67
↓ 16 callersMethodread
(a: str, b: str = "")
tests/resources/test_resource_template.py:1799
↓ 16 callersMethodsave
(self, api_key: SecretStr | str)
fastmcp_slim/fastmcp/cli/deploy/credentials.py:71
↓ 16 callersFunctiontwo_question_server
A guard tool that asks two dependent questions across three rounds. Round 1 (no responses): ask for a destination. Round 2 (destination answe
tests/server/test_mrtr_guards.py:80
↓ 16 callersFunctionvalidate_redirect_uri
Validate a redirect URI against allowed patterns. Args: redirect_uri: The redirect URI to validate allowed_patterns: List of allo
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:588
↓ 15 callersMethod_hash_token
Return the SHA-256 hex digest of *token*.
fastmcp_slim/fastmcp/utilities/token_cache.py:150
↓ 15 callersFunction_make_token
( *, token: str = "tok", client_id: str = "client-1", scopes: list[str] | None = None, exp
tests/utilities/test_token_cache.py:11
↓ 15 callersFunction_two_answer_handler
(asked: list[str])
tests/server/test_mrtr_guards.py:115
↓ 15 callersMethodadd_prompt
Add a prompt to the server. Args: prompt: A Prompt instance or @prompt-decorated function to add Returns: Th
fastmcp_slim/fastmcp/server/server.py:2472
↓ 15 callersFunctionasgi_client
Serve a FastMCP server over HTTP in-process and yield a connected `Client`. This is the shortest path to testing a server over a real HTTP s
fastmcp_slim/fastmcp/utilities/tests.py:431
↓ 15 callersFunctionbuild_client_redirect
Build a client-facing authorization redirect that carries exactly one `iss`. Every redirect this server sends back to an OAuth client from the
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:115
↓ 15 callersFunctionclient
(server: FastMCP)
tests/events/test_emit.py:60
↓ 15 callersMethodcomplete
Send a completion request to the server. Args: ref (mcp_types.ResourceTemplateReference | mcp_types.PromptReference): The referen
fastmcp_slim/fastmcp/client/client.py:1745
↓ 15 callersMethodexchange_authorization_code
( self, client: OAuthClientInformationFull, authorization_code: AuthorizationCode )
tests/server/test_auth_integration.py:74
↓ 15 callersFunctioninfer_transport
(transport: ClientTransportT)
fastmcp_slim/fastmcp/client/transports/inference.py:51
↓ 15 callersFunctionis_object_schema
Check if a JSON schema represents an object type.
fastmcp_slim/fastmcp/utilities/json_schema.py:1080
↓ 15 callersMethodissue_refresh_token
Issue a minimal FastMCP refresh token. FastMCP refresh tokens are reference tokens containing only the minimal claims needed for vali
fastmcp_slim/fastmcp/server/auth/jwt_issuer.py:175
↓ 15 callersFunctionmake_access_token
A minimal FastMCP access token for auth-scoped task tests.
tests/tasks/task_helpers.py:60
↓ 15 callersFunctionmake_server
( provider: MemorySkillProvider, *, page_size: int | None = None, cached: bool = False, )
tests/skills/test_extension.py:118
↓ 15 callersMethodnotify_tools_changed
Tell listening clients that this server's tool list changed. Publishes to every open `subscriptions/listen` stream that asked for too
fastmcp_slim/fastmcp/server/server.py:2117
↓ 15 callersFunctionparse_args
(argv: Sequence[str] | None = None)
fastmcp_remote/fastmcp_remote/cli.py:190
↓ 15 callersFunctionparse_frontmatter
Parse YAML frontmatter from markdown content. Uses `yaml.BaseLoader` so multiline block scalars (`|` / `>`) work while every scalar value is
fastmcp_slim/fastmcp/server/providers/skills/_common.py:71
↓ 15 callersMethodrun
(self, coro)
tests/pbt/test_oauth_proxy_machine.py:164
↓ 15 callersMethodsupports_tasks
Check if this component supports task execution.
fastmcp_slim/fastmcp/utilities/tasks.py:60
↓ 15 callersMethodto_directory
Write the skill's files into `path`, a folder named after the skill. The folder name must match the skill's `name`, so `from_directory` can
fastmcp_slim/fastmcp/skills/skill.py:319
↓ 15 callersFunctionwrite_skill
(folder: Path, name: str | None = None, body: str = "# Body\n")
tests/skills/test_directory_provider.py:17
↓ 14 callersFunctionbind_request_context
Bind a ``FastMCPRequestContext`` for the duration of a handler. Constructs the wrapper from the SDK's per-request context and sets/resets the
fastmcp_slim/fastmcp/server/dependencies.py:115
↓ 14 callersFunctiondedupe_with_versions
Deduplicate components by key, keeping highest version. Groups components by key, selects the highest version from each group, and injects av
fastmcp_slim/fastmcp/utilities/versions.py:306
↓ 14 callersMethodfrom_directory
Read a skill folder once and return an immutable snapshot. The folder name must match the `name` in its `SKILL.md`. Symlinks and spec
fastmcp_slim/fastmcp/skills/skill.py:273
↓ 14 callersFunctionget_server
Get the current FastMCP server instance directly. In a background-task worker the tasks extension's resolver is consulted first, so a mounted
fastmcp_slim/fastmcp/server/dependencies.py:525
↓ 14 callersFunctionhash_tool
Deterministic hex hash for a tool in an app. Same inputs on every replica produce the same output.
fastmcp_slim/fastmcp/server/providers/addressing.py:44
↓ 14 callersFunctionissue_token
( proxy: OAuthProxy, jwt_verifier )
tests/server/auth/oauth_proxy/test_revocation.py:83
↓ 14 callersFunctionmake_session
(server: FastMCP, principal: str | None, session_id: str)
tests/server/test_sessions.py:55
↓ 14 callersFunctionmock_github
( monkeypatch: pytest.MonkeyPatch, prs: list[dict[str, Any]], permission: str = "write", maint
tests/scripts/test_release_contributor_credit.py:54
↓ 14 callersFunctionpr_metadata
( number: int, author: str = "maintainer", coauthors: tuple[str, ...] = (), reporters: tuple[s
tests/scripts/test_release_contributor_credit.py:13
↓ 14 callersMethodreport_progress
Report progress for the current operation. Works in both foreground (MCP progress notifications) and background (Docket task executio
fastmcp_slim/fastmcp/server/context.py:466
↓ 14 callersFunctionresolve_root_ref
Resolve $ref at root level to meet MCP spec requirements. MCP specification requires outputSchema to have "type": "object" at the root level.
fastmcp_slim/fastmcp/utilities/json_schema.py:602
← previousnext →201–300 of 17,519, ranked by callers