MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,976 in github.com/PrefectHQ/fastmcp

↓ 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 callersFunction_tool_function_source
Generate the source for a single ``@call_tool_app.command`` function.
fastmcp_slim/fastmcp/cli/generate.py:283
↓ 16 callersMethodassert_called
Assert that a hook was called a specific number of times.
tests/server/middleware/test_middleware.py:74
↓ 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:980
↓ 16 callersFunctioncall_tool_task
Call a tool as a background task and return a `ToolTask` handle immediately. Unlike `client.call_tool` (which polls to completion transparently),
fastmcp_tasks/fastmcp_tasks/client.py:525
↓ 16 callersMethodclient
(self)
tests/server/auth/providers/test_azure.py:858
↓ 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:99
↓ 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:317
↓ 16 callersFunctionget_elicitation_schema
Get the schema for an elicitation response. Args: response_type: The type of the response
fastmcp_slim/fastmcp/server/elicitation.py:407
↓ 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:1445
↓ 16 callersMethodget_request
( self, *, url: str | re.Pattern[str] | httpx2.URL | None = None, method: str
tests/utilities/httpx2_mock.py:189
↓ 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:1204
↓ 16 callersMethodget_tasks
Get task-eligible components with server-level transforms applied. Overrides AggregateProvider.get_tasks() to apply server-level transforms
fastmcp_slim/fastmcp/server/server.py:903
↓ 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:142
↓ 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 callersMethodread
()
tests/fs/test_provider.py:377
↓ 16 callersMethodsave
(self, api_key: SecretStr | str)
fastmcp_slim/fastmcp/cli/deploy/credentials.py:71
↓ 16 callersMethodset_mcp_path
Propagate MCP path to the server and all verifiers.
fastmcp_slim/fastmcp/server/auth/auth.py:1030
↓ 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
↓ 15 callersFunction_two_answer_handler
(asked: list[str])
tests/server/test_mrtr_guards.py:115
↓ 15 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:129
↓ 15 callersMethodcancel
Send a cancellation notification for an in-progress request.
fastmcp_slim/fastmcp/client/client.py:1522
↓ 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:1613
↓ 15 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:825
↓ 15 callersFunctioninfer_transport
(transport: ClientTransportT)
fastmcp_slim/fastmcp/client/transports/inference.py:51
↓ 15 callersMethodkey
The globally unique lookup key for this resource.
fastmcp_slim/fastmcp/resources/base.py:469
↓ 15 callersMethodload
()
fastmcp_slim/fastmcp/skills/provider.py:263
↓ 15 callersFunctionmake_access_token
A minimal FastMCP access token for auth-scoped task tests.
tests/tasks/task_helpers.py:60
↓ 15 callersMethodparse
Parse the OpenAPI schema into HTTP routes.
fastmcp_slim/fastmcp/utilities/openapi/parser.py:740
↓ 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 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:480
↓ 15 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
↓ 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 callersMethodtool
( self, name_or_fn: F, *, name: str | None = None, version: str | int
fastmcp_slim/fastmcp/server/server.py:1968
↓ 15 callersMethodwait
Poll until the task reaches `state` (or any terminal state if `None`). Does not answer input prompts: a caller that wants automatic answering
fastmcp_tasks/fastmcp_tasks/client.py:439
↓ 15 callersFunctionwrite_skill
(folder: Path, name: str | None = None, body: str = "# Body\n")
tests/skills/test_directory_provider.py:17
↓ 14 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:155
↓ 14 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:2244
↓ 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 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
↓ 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_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
↓ 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 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
↓ 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 callersMethodset_tokens
(self, tokens: OAuthToken)
fastmcp_slim/fastmcp/client/auth/oauth.py:149
↓ 14 callersFunctionskills_client
(server: FastMCP)
tests/server/providers/proxy/test_skills.py:61
↓ 14 callersMethodvalidate_assertion
Validate JWT assertion from client. Args: assertion: The JWT assertion string client_id: Expected client_id (must mat
fastmcp_slim/fastmcp/server/auth/cimd.py:536
↓ 14 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:536
↓ 14 callersMethodverify_token
Verify token using custom validation logic. Args: token: The token string to validate Returns: AccessToken i
fastmcp_slim/fastmcp/server/auth/providers/debug.py:77
↓ 13 callersFunction_allof_members
Collect local composition members, reusing shared definition results.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:266
↓ 13 callersFunction_extract_mime_type_from_route
Extract the primary MIME type from an HTTPRoute's response definitions. Looks for the first successful response (2xx) and returns its content typ
fastmcp_slim/fastmcp/server/providers/openapi/components.py:129
↓ 13 callersMethod_hash_token
Return the SHA-256 hex digest of *token*.
fastmcp_slim/fastmcp/utilities/token_cache.py:146
↓ 13 callersFunction_search
(mcp: FastMCP, query: str)
tests/experimental/transforms/test_jev_search.py:117
↓ 13 callersFunction_unwrap_string_result
Extract a string result from a ToolResult. String results are wrapped in ``{"result": "..."}`` by the structured-output convention.
tests/experimental/transforms/test_code_mode.py:56
↓ 13 callersMethodapply
Create a TransformedTool from a provided tool and this transformation configuration.
fastmcp_slim/fastmcp/tools/tool_transform.py:1236
↓ 13 callersFunctionbackend
(*skills: Skill, page_size: int | None = None)
tests/server/providers/proxy/test_skills.py:43
↓ 13 callersFunctioncheck
(value: Any)
fastmcp_slim/fastmcp/utilities/json_schema_type.py:730
↓ 13 callersMethodcheck
Run one check. A `known_gap` check is expected to fail and is reported without failing the run; if it starts passing, the run fails so the
tests/downstream/_harness.py:185
↓ 13 callersMethodconvert_result
Convert a raw result to ToolResult. Handles ToolResult passthrough and converts raw values using the tool's attributes (output_schema
fastmcp_slim/fastmcp/tools/base.py:471
↓ 13 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_comprehensive.py:18
↓ 13 callersFunctiondownload_skill
Download a skill and all its files to a local directory. Creates a subdirectory named after the skill containing all files. Args: cl
fastmcp_slim/fastmcp/utilities/skills.py:161
↓ 13 callersMethodenable_components
Enable components matching criteria for this session only. Session rules override global transforms. Rules accumulate - each call add
fastmcp_slim/fastmcp/server/context.py:1239
↓ 13 callersFunctionextract_components
Extract all MCP components from a module. Scans all module attributes for instances of Tool, Resource, ResourceTemplate, or Prompt objects cr
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:290
↓ 13 callersFunctionextract_output_schema_from_responses
Extract output schema from OpenAPI responses for use as MCP tool output schema. This function finds the first successful response (200, 201,
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:892
↓ 13 callersMethodgenerate
Generate an RSA key pair for testing. Returns: RSAKeyPair: Generated key pair
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:109
↓ 13 callersMethodget_well_known_routes
Delegate well-known route creation to the server. This ensures that server-specific well-known route logic (e.g., OAuthProvider's RFC
fastmcp_slim/fastmcp/server/auth/auth.py:1044
↓ 13 callersMethodinitialize
Send an initialize request to the server. This method performs the MCP initialization handshake with the server, exchanging capabilit
fastmcp_slim/fastmcp/client/client.py:929
↓ 13 callersFunctionis_object_schema
Check if a JSON schema represents an object type.
fastmcp_slim/fastmcp/utilities/json_schema.py:993
↓ 13 callersMethodmake_key
Construct the lookup key for this component type. Args: identifier: The raw identifier (name for tools/prompts, uri for resources
fastmcp_slim/fastmcp/utilities/components.py:154
↓ 13 callersFunctionmake_server_request_context
Build a minimal SDK ServerRequestContext for direct handler unit tests. The v2 SDK hands handlers a ``ServerRequestContext`` argument. Tests that
tests/conftest.py:42
↓ 13 callersFunctionparse_tool_arguments
Build a tool-call argument dict from CLI inputs. A single JSON object argument is treated as the full argument dict. ``--input-json`` provide
fastmcp_slim/fastmcp/cli/client.py:451
↓ 13 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
↓ 13 callersFunctionresolve_name
Resolve a server name (or ``source:name``) to a transport. Raises :class:`ValueError` when the name is not found or is ambiguous.
fastmcp_slim/fastmcp/cli/discovery.py:377
↓ 13 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:515
↓ 13 callersFunctionscan_notes
( notes: str, prs: dict[int, dict[str, Any]] | None = None )
scripts/release_contributor_credit.py:147
↓ 13 callersFunctionserialize_transport
Serialize a resolved transport to a Python expression string. Returns ``(expression, extra_imports)`` where *extra_imports* is a set of impor
fastmcp_slim/fastmcp/cli/generate.py:146
↓ 13 callersFunctionskills_client
(server: FastMCP)
tests/skills/test_extension.py:130
↓ 13 callersMethodstart
Start the mock OAuth server.
tests/server/auth/oauth_proxy/conftest.py:214
↓ 13 callersFunctiontask_redis_prefix
Return the Redis key prefix that owns a given scope. Authenticated tasks live under ``fastmcp:task:auth:{enc_scope}``; anonymous tasks live u
fastmcp_tasks/fastmcp_tasks/keys.py:197
↓ 13 callersMethodvalidate
(token: str)
tests/server/auth/providers/test_debug.py:31
↓ 12 callersFunction_build_client
Build a ``Client`` from a resolved server spec. Applies ``auth='oauth'`` automatically for HTTP-based targets unless the caller explicitly pa
fastmcp_slim/fastmcp/cli/client.py:263
↓ 12 callersFunction_convert_messages_to_google_genai_content
Convert MCP messages to Google GenAI content.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:311
↓ 12 callersMethod_convert_to_anthropic_messages
( messages: Sequence[SamplingMessage], )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:207
↓ 12 callersMethod_convert_to_openai_messages
( system_prompt: str | None, messages: Sequence[SamplingMessage] )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:205
↓ 12 callersMethod_get_jwks_key
Resolve a key, sharing refreshes and retaining fresh cached keys.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:362
← previousnext →201–300 of 15,976, ranked by callers