MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,312 in github.com/PrefectHQ/fastmcp

↓ 4 callersMethodrun
( self, code: str, *, inputs: dict[str, Any] | None = None, external_f
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:143
↓ 4 callersMethodsample_step
Make a single LLM sampling call. This is a stateless function that makes exactly one LLM call and optionally executes any re
fastmcp_slim/fastmcp/server/context.py:838
↓ 4 callersMethodset_logging_level
Send a logging/setLevel request.
fastmcp_slim/fastmcp/client/client.py:838
↓ 4 callersMethodset_mcp_path
Bind the default verifier's audience to this server's resource URL. AuthKit with Resource Indicators (RFC 8707) mints tokens whose ``aud``
fastmcp_slim/fastmcp/server/auth/providers/workos.py:394
↓ 4 callersFunctionshould_close_as_needs_mre
Determine if an issue should be closed for needing an MRE.
scripts/auto_close_needs_mre.py:307
↓ 4 callersFunctionshow_tools
Display available tools in a panel.
examples/namespace_activation/client.py:31
↓ 4 callersFunctionstore_result_once
Store the first callback result and ignore subsequent requests.
fastmcp_slim/fastmcp/client/oauth_callback.py:125
↓ 4 callersFunctiontest_server
()
tests/test_mcp_config.py:424
↓ 4 callersMethodto_mcp_prompt_message
Convert to MCP PromptMessage.
fastmcp_slim/fastmcp/prompts/base.py:99
↓ 4 callersMethodto_mcp_prompt_result
Convert to MCP GetPromptResult.
fastmcp_slim/fastmcp/prompts/base.py:188
↓ 4 callersMethodto_mcp_resource
Convert the resource to an SDKResource.
fastmcp_slim/fastmcp/resources/base.py:405
↓ 4 callersMethodvalidate_function
Validate that a function is compatible with this task config.
fastmcp_slim/fastmcp/utilities/tasks.py:57
↓ 4 callersMethodvalidate_private_key_jwt
Validate JWT assertion for private_key_jwt auth. Args: assertion: JWT assertion string from client client: OAuth prox
fastmcp_slim/fastmcp/server/auth/cimd.py:775
↓ 4 callersFunctionvalidate_server_name
Validate that a server name is safe for use as a subprocess argument. Raises SystemExit if the name contains shell metacharacters.
fastmcp_slim/fastmcp/cli/install/shared.py:28
↓ 3 callersFunction_build_request_card
Build a card for a single request inside a ForEach context.
examples/apps/approvals/approvals_server.py:217
↓ 3 callersMethod_build_upstream_authorize_url
Construct the upstream IdP authorization URL using stored transaction data.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:266
↓ 3 callersFunction_catalog_hash
SHA256 hash of sorted tool searchable text for staleness detection.
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:80
↓ 3 callersMethod_create_upstream_oauth_client
Create an OAuth2 client for communicating with the upstream IdP. This is the single point for constructing the client used in token e
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:703
↓ 3 callersMethod_discover_skills
Scan root directories and create SkillProvider per valid skill folder.
fastmcp_slim/fastmcp/server/providers/skills/directory_provider.py:76
↓ 3 callersFunction_ensure_async
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:44
↓ 3 callersMethod_ensure_tool
Coerce a callable into a Tool, respecting @tool decorator metadata.
fastmcp_slim/fastmcp/tools/base.py:458
↓ 3 callersFunction_exception_events
(span)
tests/server/telemetry/test_sampling_tracing.py:24
↓ 3 callersFunction_execute_single_tool
Execute a single tool and return its result.
fastmcp_slim/fastmcp/server/sampling/run.py:284
↓ 3 callersFunction_extract_searchable_text
Combine tool name, description, and parameter info into searchable text.
fastmcp_slim/fastmcp/server/transforms/search/base.py:41
↓ 3 callersFunction_format_call_result_text
Pretty-print a tool call result to the console.
fastmcp_slim/fastmcp/cli/client.py:420
↓ 3 callersMethod_format_message
Format a message for logging.
fastmcp_slim/fastmcp/server/middleware/logging.py:49
↓ 3 callersMethod_get_client_identifier
Get client identifier for rate limiting.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:146
↓ 3 callersMethod_get_client_info_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:108
↓ 3 callersMethod_get_methods_to_register
Retrieves all methods marked for a specific registration type.
fastmcp_slim/fastmcp/contrib/mcp_mixin/mcp_mixin.py:191
↓ 3 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/search/client_bm25.py:23
↓ 3 callersMethod_get_scope_key
Return the key used to partition file storage. Defaults to ``ctx.session_id``, which is stable for stdio, SSE, and stateful HTTP. The
fastmcp_slim/fastmcp/apps/file_upload.py:166
↓ 3 callersMethod_get_token_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:105
↓ 3 callersMethod_get_token_expiry_cache_key
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:111
↓ 3 callersMethod_get_tool
Get a specific tool by name. Default implementation filters _list_tools() and picks the highest version that matches the spec.
fastmcp_slim/fastmcp/server/providers/base.py:369
↓ 3 callersMethod_get_unique_name
Ensure the name is unique by appending numbers if needed.
fastmcp_slim/fastmcp/server/providers/openapi/provider.py:213
↓ 3 callersFunction_has_read_only_properties
Quick check if schema has any readOnly properties.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:188
↓ 3 callersFunction_has_ref
Check if a schema contains any $ref.
fastmcp_slim/fastmcp/server/middleware/dereference.py:67
↓ 3 callersFunction_has_write_only_properties
Quick check if schema has any writeOnly properties.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:198
↓ 3 callersMethod_initialize
Load stored tokens and client info, properly setting token expiry.
fastmcp_slim/fastmcp/client/auth/oauth.py:327
↓ 3 callersFunction_is_backend_tool
Check whether a tool is handled specially as backend tool Tools registered via ``@app.tool()`` (without ``model=True``) have ``meta["ui"]["vi
fastmcp_slim/fastmcp/server/server.py:183
↓ 3 callersFunction_is_prefab_tool
True if *tool* was marked as needing a Prefab renderer at registration.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:35
↓ 3 callersMethod_list_prompts
Return all available prompts. Override to provide prompts dynamically. Returns ALL versions of all prompts. The server handles dedupl
fastmcp_slim/fastmcp/server/providers/base.py:455
↓ 3 callersMethod_list_resource_templates
Return all available resource templates. Override to provide resource templates dynamically. Returns ALL versions. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:424
↓ 3 callersMethod_list_resource_templates_mcp
List all available resource templates, in the format expected by the low-level MCP server. Supports pagination when list_page_size is
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:143
↓ 3 callersMethod_list_resources
Return all available resources. Override to provide resources dynamically. Returns ALL versions of all resources. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:393
↓ 3 callersMethod_list_tools
Return all available tools. Override to provide tools dynamically. Returns ALL versions of all tools. The server handles deduplicatio
fastmcp_slim/fastmcp/server/providers/base.py:361
↓ 3 callersMethod_list_tools
(self)
tests/server/providers/test_base_provider.py:31
↓ 3 callersMethod_log_message
( self, message: dict[str, str | int | float], log_level: int | None = None )
fastmcp_slim/fastmcp/server/middleware/logging.py:119
↓ 3 callersMethod_make_access_token
(self, aud: str)
tests/server/auth/providers/test_propelauth.py:198
↓ 3 callersMethod_make_oauth_with_redirect
Build a HeadlessOAuth with a fake stored 302 response.
tests/utilities/test_tests.py:55
↓ 3 callersMethod_make_state_key
Create session-prefixed key for state storage.
fastmcp_slim/fastmcp/server/context.py:1245
↓ 3 callersMethod_make_tools
(self)
tests/cli/test_generate_cli.py:412
↓ 3 callersMethod_merge_schema_with_precedence
Merge two schemas, with the override schema taking precedence. Args: base_schema: Base schema to start with override_
fastmcp_slim/fastmcp/tools/tool_transform.py:832
↓ 3 callersFunction_normalize_google_scope
Normalize a Google scope shorthand to its canonical full URI. Google accepts shorthand scopes like "email" and "profile" in authorization req
fastmcp_slim/fastmcp/server/auth/providers/google.py:47
↓ 3 callersFunction_normalize_resource_url
Normalize a resource URL by removing query parameters and trailing slashes. RFC 8707 allows clients to include query parameters in resource URLs,
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:102
↓ 3 callersFunction_prefab_to_json
Call PrefabApp.to_json() with the hash-based resolver. The resolver prefixes peer-tool references with a deterministic hash derived from the
fastmcp_slim/fastmcp/tools/base.py:538
↓ 3 callersFunction_prefix
(local_name: str)
fastmcp_slim/fastmcp/apps/app.py:72
↓ 3 callersMethod_read
Server entry point - read file directly without creating ephemeral resource. Note: task_meta is ignored - this template doesn't support backg
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:101
↓ 3 callersMethod_read_consent_bindings
Read the consent binding map from the signed cookie. Returns a dict of {txn_id: consent_token} for all pending flows.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:169
↓ 3 callersMethod_read_resource_mcp
Handle MCP 'readResource' requests. Extracts task metadata from MCP request context and passes it explicitly to read_resource(). The
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:248
↓ 3 callersMethod_register_and_store_code
( self, provider: AzureProvider, *, code: str, idp_tokens: dict, )
tests/server/auth/providers/test_azure.py:1207
↓ 3 callersFunction_render_tools
Render tools at the requested detail level. The same detail value produces the same output format regardless of which discovery tool calls th
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:215
↓ 3 callersMethod_run_in_child_context
(self, fn)
tests/server/providers/proxy/test_stateful_proxy_client.py:222
↓ 3 callersFunction_sanitize_name
Convert string to valid Python identifier.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:519
↓ 3 callersFunction_scan_claude_desktop
Scan the Claude Desktop config file.
fastmcp_slim/fastmcp/cli/discovery.py:140
↓ 3 callersFunction_scan_project_mcp_json
Check for ``mcp.json`` in *start_dir*.
fastmcp_slim/fastmcp/cli/discovery.py:223
↓ 3 callersMethod_sign_cookie
Sign a cookie payload with HMAC-SHA256. Returns: base64(payload).base64(signature)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:80
↓ 3 callersFunction_spans_named
(exporter: InMemorySpanExporter, name: str)
tests/server/telemetry/test_sampling_tracing.py:20
↓ 3 callersFunction_submit_task_id
Submit a background task and return its server-assigned task id.
tests/server/tasks/test_task_security.py:84
↓ 3 callersMethod_text_reply
(text: str = "some text")
tests/client/test_sampling_result_types.py:450
↓ 3 callersFunction_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_regex.py:46
↓ 3 callersFunction_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_bm25.py:46
↓ 3 callersMethod_transform_uri
Apply namespace to a URI: protocol://path → protocol://namespace/path.
fastmcp_slim/fastmcp/server/transforms/namespace.py:74
↓ 3 callersMethod_translate_scopes_from_idp
Translate IdP-returned scopes into the client-facing form. Some IdPs (notably Azure) require scopes on the wire in a form that differ
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1288
↓ 3 callersMethod_uses_alternate_verification
Return True when id_token verification is enabled. This ensures ``load_access_token`` always patches the validated result with upstre
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:467
↓ 3 callersMethod_wait_terminal
Wait until task reaches a terminal state (completed, failed, cancelled). Unlike wait(), this will not return on input_required — it continues
fastmcp_slim/fastmcp/client/tasks.py:273
↓ 3 callersMethodadd_resource
Add a resource to this provider's storage. Accepts either a Resource/ResourceTemplate object or a decorated function with __fastmcp__ metadat
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/resources.py:38
↓ 3 callersMethodadd_resources
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:179
↓ 3 callersMethodbuild
Constructs a final httpx.Request object, handling all OpenAPI serialization. Args: route: HTTPRoute containing OpenAPI o
fastmcp_slim/fastmcp/utilities/openapi/director.py:36
↓ 3 callersMethodcallback_handler
Handle OAuth callback and return (auth_code, state).
fastmcp_slim/fastmcp/client/auth/oauth.py:363
↓ 3 callersFunctioncheck_distributed_backend
Check if Docket is configured with a distributed backend. The CLI worker runs as a separate process, so it needs Redis/Valkey to coordinate w
fastmcp_slim/fastmcp/cli/tasks.py:22
↓ 3 callersMethodclear
(self)
fastmcp_slim/fastmcp/client/auth/oauth.py:114
↓ 3 callersMethodclose
(self)
tests/client/client/test_client.py:439
↓ 3 callersMethodcopy
(self, **kwargs: Any)
fastmcp_slim/fastmcp/server/middleware/middleware.py:61
↓ 3 callersFunctioncreate_elicitation_callback
( elicitation_handler: ElicitationHandler, )
fastmcp_slim/fastmcp/client/elicitation.py:38
↓ 3 callersFunctioncreate_info_box
Create an info box. Args: content: HTML content for the info box is_error: True for error styling, False for normal
fastmcp_slim/fastmcp/utilities/ui.py:539
↓ 3 callersMethodcreate_initialization_options
( self, notification_options: NotificationOptions | None = None, experimental_capabili
fastmcp_slim/fastmcp/server/low_level.py:178
↓ 3 callersFunctioncreate_mcp_config_server
Create a FastMCP server from a MCPConfig.
fastmcp_slim/fastmcp/cli/run.py:110
↓ 3 callersFunctioncreate_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider_bearer.py:39
↓ 3 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_parameter_collisions.py:11
↓ 3 callersFunctioncreate_openapi_server
Helper to create a FastMCP server with OpenAPIProvider.
tests/server/providers/openapi/test_performance_comparison.py:13
↓ 3 callersFunctioncreate_sampling_callback
( sampling_handler: SamplingHandler, )
fastmcp_slim/fastmcp/client/sampling/__init__.py:44
↓ 3 callersFunctioncreate_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_sse.py:17
↓ 3 callersFunctioncreate_test_server
Create a FastMCP server with tools, resources, and prompts.
tests/client/test_streamable_http.py:19
↓ 3 callersMethoddisconnect
(self)
fastmcp_slim/fastmcp/client/transports/stdio.py:126
↓ 3 callersMethodexchange_refresh_token
Exchange FastMCP refresh token for new FastMCP access token. Implements two-tier refresh: 1. Verify FastMCP refresh token 2.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1397
↓ 3 callersFunctionextract_query_params
Extract query parameter names from RFC 6570 `{?param1,param2}` syntax.
fastmcp_slim/fastmcp/resources/template.py:35
↓ 3 callersFunctionforward_raw
Forward directly to parent tool without transformation. This function bypasses all argument transformation and validation, calling the parent
fastmcp_slim/fastmcp/tools/tool_transform.py:76
↓ 3 callersMethodfrom_file
Load configuration from a JSON file. Args: file_path: Path to the configuration file Returns: MCPServerConfi
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:223
↓ 3 callersFunctionget_fn_name
(fn: Callable[..., Any])
fastmcp_slim/fastmcp/utilities/types.py:34
← previousnext →601–700 of 10,312, ranked by callers