MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,312 in github.com/PrefectHQ/fastmcp

↓ 3 callersMethodget_oidc_configuration
Gets the OIDC configuration for the specified configuration URL. Args: config_url: The OIDC configuration URL strict:
fastmcp_slim/fastmcp/server/auth/oidc_proxy.py:476
↓ 3 callersFunctionget_property
(tool: Tool, name: str)
tests/tools/tool_transform/test_schemas.py:18
↓ 3 callersMethodget_routes
Get OAuth routes with custom handlers for better error UX. This method creates standard OAuth routes and replaces: - /authorize endpo
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1985
↓ 3 callersMethodget_span_attributes
(self)
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:143
↓ 3 callersFunctionget_task_capabilities
Return the SEP-1686 task capabilities. Returns task capabilities as a first-class ServerCapabilities field, declaring support for list, cance
fastmcp_slim/fastmcp/server/tasks/capabilities.py:13
↓ 3 callersMethodget_tasks
Return components eligible for background task execution. Returns components that have task_config.mode != 'forbidden'. This includes
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:449
↓ 3 callersMethodget_tool
Get tool by namespaced name.
fastmcp_slim/fastmcp/server/transforms/namespace.py:103
↓ 3 callersFunctionget_visibility_rules
Load visibility rule dicts from session state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:300
↓ 3 callersFunctionhandle_task_input
Handle input sent to a background task via tasks/sendInput. This is called when a client sends input in response to an elicitation request fr
fastmcp_slim/fastmcp/server/tasks/elicitation.py:292
↓ 3 callersFunctioninstall_stdio
Generate the stdio command for running a FastMCP server. Args: file: Path to the server file server_object: Optional server objec
fastmcp_slim/fastmcp/cli/install/stdio.py:21
↓ 3 callersFunctionis_already_in_uv_subprocess
Check if we're already running in a FastMCP uv subprocess.
fastmcp_slim/fastmcp/utilities/cli.py:28
↓ 3 callersMethodlifespan_context
Access the server's lifespan context. Returns the context dict yielded by *this* server's lifespan function. For a mounted child this
fastmcp_slim/fastmcp/server/context.py:354
↓ 3 callersMethodlist_prompts_mcp
Send a prompts/list request and return the complete MCP protocol result. Args: cursor: Optional pagination cursor from a previous
fastmcp_slim/fastmcp/client/mixins/prompts.py:36
↓ 3 callersMethodlist_resource_templates_mcp
Send a resources/listResourceTemplates request and return the complete MCP protocol result. Args: cursor: Optional pagination cur
fastmcp_slim/fastmcp/client/mixins/resources.py:111
↓ 3 callersMethodlist_resources_mcp
Send a resources/list request and return the complete MCP protocol result. Args: cursor: Optional pagination cursor from a previo
fastmcp_slim/fastmcp/client/mixins/resources.py:35
↓ 3 callersMethodlist_roots
List the roots available to the server, as indicated by the client.
fastmcp_slim/fastmcp/server/context.py:784
↓ 3 callersMethodlist_tasks
List background tasks. Sends a 'tasks/list' MCP protocol request to the server. If the server returns an empty list (indicating clien
fastmcp_slim/fastmcp/client/mixins/task_management.py:85
↓ 3 callersMethodlist_tools
Prefix tool names with namespace.
fastmcp_slim/fastmcp/server/transforms/namespace.py:97
↓ 3 callersFunctionmake_issue
(author_association: str = "NONE")
tests/scripts/test_auto_close_needs_mre.py:8
↓ 3 callersMethodon_message
Handle errors for all messages.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:120
↓ 3 callersMethodon_request
Apply sliding window rate limiting to requests.
fastmcp_slim/fastmcp/server/middleware/rate_limiting.py:219
↓ 3 callersMethodprepare_source
Prepare the source for loading. Delegates to the source's prepare() method.
fastmcp_slim/fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py:374
↓ 3 callersMethodquery
(search: str)
tests/test_fastmcp_app.py:138
↓ 3 callersMethodread_resource
( self: Client, uri: AnyUrl | str, *, version: str | None = None, meta
fastmcp_slim/fastmcp/client/mixins/resources.py:246
↓ 3 callersFunctionresolve_task_config
Resolve task config, defaulting None to False.
fastmcp_slim/fastmcp/decorators.py:17
↓ 3 callersFunctionresolve_ui_mime_type
Return the appropriate MIME type for a resource URI. For ``ui://`` scheme resources, defaults to ``UI_MIME_TYPE`` when no explicit MIME type
fastmcp_slim/fastmcp/utilities/mime.py:10
↓ 3 callersFunctionrestore_task_snapshot
Worker-level Docket dependency that restores the task-context snapshot. Runs before each fastmcp-owned task, populating the snapshot ContextVar
fastmcp_slim/fastmcp/server/tasks/context.py:233
↓ 3 callersMethodrun_stdio_async
Run the server using stdio transport. Args: show_banner: Whether to display the server banner log_level: Log level fo
fastmcp_slim/fastmcp/server/mixins/transport.py:185
↓ 3 callersFunctionsave_visibility_rules
Save visibility rule dicts to session state and send notifications. Args: context: The context to save rules for. rules: The visi
fastmcp_slim/fastmcp/server/transforms/visibility.py:305
↓ 3 callersMethodset_setting
Set a setting. If the setting contains one or more `__`, it will be treated as a nested setting.
fastmcp_slim/fastmcp/settings.py:161
↓ 3 callersFunctionshow_surface
Show what's visible through a filtered server.
examples/versioning/version_filters.py:60
↓ 3 callersFunctiontext_resource
(uri: str, text: str)
tests/utilities/test_skills.py:40
↓ 3 callersMethodto_mcp_prompt
Convert the prompt to an MCP prompt.
fastmcp_slim/fastmcp/prompts/base.py:210
↓ 3 callersMethodto_mcp_template
Convert the resource template to an SDKResourceTemplate.
fastmcp_slim/fastmcp/resources/template.py:310
↓ 3 callersFunctiontool
(fn: F)
fastmcp_slim/fastmcp/tools/function_tool.py:398
↓ 3 callersFunctionuse_client
Use the client with a small delay to ensure overlap
tests/client/client/test_client.py:684
↓ 3 callersFunctionvalidate_get_oidc_configuration
Validate get_oidc_configuration call.
tests/server/auth/test_oidc_proxy.py:361
↓ 3 callersMethodverify_token
Verify and decode a FastMCP token. Validates JWT signature, expiration, issuer, audience, and token type. Args: token: J
fastmcp_slim/fastmcp/server/auth/jwt_issuer.py:218
↓ 3 callersMethodverify_token
Verify token against static token dictionary.
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:626
↓ 3 callersMethodwrite_to_file
Write configuration to JSON file.
fastmcp_slim/fastmcp/mcp_config.py:332
↓ 2 callersFunctionTokenClaim
Get a specific claim from the access token. This dependency extracts a single claim value from the current access token. It's useful for gett
fastmcp_slim/fastmcp/server/dependencies.py:1356
↓ 2 callersMethod__aenter__
(self)
tests/server/test_dependencies.py:23
↓ 2 callersMethod__aexit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
fastmcp_slim/fastmcp/server/dependencies.py:1232
↓ 2 callersMethod__anext__
(self)
tests/client/auth/test_oauth_client.py:299
↓ 2 callersMethod__init__
( self, client: httpx.AsyncClient, route: HTTPRoute, director: RequestDirector
fastmcp_slim/fastmcp/server/providers/openapi/components.py:143
↓ 2 callersMethod__init__
Initialize WorkOS OAuth provider. Args: client_id: WorkOS client ID client_secret: WorkOS client secret a
fastmcp_slim/fastmcp/server/auth/providers/workos.py:160
↓ 2 callersMethod__init__
(self, name: str, calls: list[str])
tests/server/providers/test_fastmcp_provider.py:17
↓ 2 callersMethod__init__
(self, name: str, calls: list[str])
tests/server/tasks/test_task_mount.py:689
↓ 2 callersFunction_aggregate_by
(rows: list[dict], key: str)
examples/apps/explorer/explorer_server.py:321
↓ 2 callersFunction_all_lists
Return state updates for all three status lists.
examples/apps/approvals/approvals_server.py:147
↓ 2 callersFunction_build_resource_for_tool
Synthesize a TextResource for a prefab tool. Returns None if prefab_ui isn't installed.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:74
↓ 2 callersFunction_build_routes
Build all component management routes.
fastmcp_slim/fastmcp/contrib/component_manager/component_manager.py:50
↓ 2 callersMethod_build_upstream_authorize_url
Build Azure authorization URL with prefixed scopes. Overrides parent to prefix scopes with identifier_uri before sending to Azure, wh
fastmcp_slim/fastmcp/server/auth/providers/azure.py:466
↓ 2 callersMethod_call_tool
Helper method to call a tool with the provided arguments.
fastmcp_slim/fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py:120
↓ 2 callersMethod_chat_completion_to_create_message_result
( chat_completion: ChatCompletion, )
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:387
↓ 2 callersMethod_cleanup_expired
Remove all entries whose TTL has elapsed.
fastmcp_slim/fastmcp/utilities/token_cache.py:150
↓ 2 callersMethod_cleanup_expired_jtis
Remove expired JTIs from cache.
fastmcp_slim/fastmcp/server/auth/cimd.py:489
↓ 2 callersFunction_coerce_tool_transform_configs
(tools: dict[str, Any])
fastmcp_slim/fastmcp/mcp_config.py:74
↓ 2 callersFunction_collect_stats
Collect a full snapshot of system stats.
examples/apps/system_monitor/system_monitor_server.py:48
↓ 2 callersFunction_compute_summary
(rows: list[dict])
examples/apps/explorer/explorer_server.py:300
↓ 2 callersMethod_connect
Establish or reuse a session connection. This method implements the reentrant context manager pattern: - First call: Creates
fastmcp_slim/fastmcp/client/client.py:540
↓ 2 callersFunction_content_block_to_dict
Serialize a single content block to a JSON-safe dict.
fastmcp_slim/fastmcp/cli/client.py:452
↓ 2 callersFunction_convert_nullable_field
Convert OpenAPI nullable field to JSON Schema type array.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:152
↓ 2 callersFunction_convert_to_single_content_block
( item: Any, serializer: ToolResultSerializerType | None = None, )
fastmcp_slim/fastmcp/tools/base.py:495
↓ 2 callersMethod_convert_tools_to_anthropic
Convert MCP tools to Anthropic tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:362
↓ 2 callersMethod_cookie_signing_key
Return the key used for HMAC-signing consent cookies. Uses the upstream client secret when available, falling back to the JWT signing
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:69
↓ 2 callersMethod_create_basic_auth_header
Create HTTP Basic Auth header value from client credentials.
fastmcp_slim/fastmcp/server/auth/providers/introspection.py:150
↓ 2 callersFunction_create_client_factory
Create a client factory from the given target. Internal helper that handles the session strategy based on the target type: - Connected Client
fastmcp_slim/fastmcp/server/providers/proxy.py:803
↓ 2 callersFunction_create_dataclass
Create dataclass from object schema.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:633
↓ 2 callersFunction_create_numeric_type
Create numeric type with optional constraints.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:318
↓ 2 callersFunction_decode_jwt_part
Decode a JWT part (header or payload) without signature verification. Args: token: JWT token string (header.payload.signature) pa
fastmcp_slim/fastmcp/utilities/auth.py:10
↓ 2 callersFunction_dict_to_enum_schema
Convert dict enum to SEP-1330 compliant schema pattern. Args: enum_dict: {"low": {"title": "Low Priority"}, "medium": {"title": "Medium P
fastmcp_slim/fastmcp/server/elicitation.py:343
↓ 2 callersFunction_dispatch_decorator
Shared dispatch logic for @app.tool() and @app.ui() calling patterns.
fastmcp_slim/fastmcp/apps/app.py:109
↓ 2 callersFunction_elicit_keys
Build (request, response, status) Redis keys for a task's elicitation.
fastmcp_slim/fastmcp/server/tasks/elicitation.py:41
↓ 2 callersMethod_extract_upstream_claims
Extract upstream claims to embed in FastMCP JWT. Override this method to decode upstream tokens, call userinfo endpoints, or otherwis
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1334
↓ 2 callersFunction_filter_rows
( rows: list[dict], region: str = "All", product: str = "All", )
examples/apps/explorer/explorer_server.py:287
↓ 2 callersFunction_get_arguments_str
Get a string representation of the arguments.
fastmcp_slim/fastmcp/server/middleware/caching.py:538
↓ 2 callersFunction_get_candidate_from_response
Extract the first candidate from a response.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:310
↓ 2 callersMethod_get_client
Gets a client instance by calling the sync or async factory.
fastmcp_slim/fastmcp/server/providers/proxy.py:132
↓ 2 callersMethod_get_component_identity
Get the identity (type, name/uri) for a component. Returns: A tuple of (component_type, logical_name) where logical_name is
fastmcp_slim/fastmcp/server/providers/local_provider/local_provider.py:113
↓ 2 callersMethod_get_data
Get raw image data as base64-encoded string.
fastmcp_slim/fastmcp/utilities/types.py:278
↓ 2 callersFunction_get_duration_ms
(start_time: float, /)
fastmcp_slim/fastmcp/server/middleware/logging.py:255
↓ 2 callersMethod_get_execute_tool
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:584
↓ 2 callersFunction_get_fastmcp_app_name
Read the FastMCPApp name from a tool's metadata, if present.
fastmcp_slim/fastmcp/tools/base.py:550
↓ 2 callersFunction_get_result
Extract the value from a CallToolResult (structured or text).
examples/code_mode/client.py:26
↓ 2 callersMethod_get_tool
(self, name: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:396
↓ 2 callersMethod_get_visible_tools
Get the auth-filtered tool catalog, excluding pinned tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:257
↓ 2 callersMethod_handle_idp_callback
Handle callback from upstream IdP and forward to client. This implements the DCR-compliant callback forwarding: 1. Receive IdP callba
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:2117
↓ 2 callersFunction_head_matches_pinned
Return True when CLONE_DIR is already checked out at the pinned commit.
tests/utilities/json_schema_type/test_real_world_schemas.py:188
↓ 2 callersFunction_import_key_for_algorithm
(key: str | bytes | JWKKeyData, algorithm: str)
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:32
↓ 2 callersFunction_inject_log_panel
Inject the MCP message log panel before </body>.
fastmcp_slim/fastmcp/cli/apps_dev.py:908
↓ 2 callersFunction_is_simple_type
Check if a schema represents a simple (non-complex) type.
fastmcp_slim/fastmcp/cli/generate.py:32
↓ 2 callersFunction_json_schema_type_to_str
Produce a short Python-style type string from a JSON-Schema fragment.
fastmcp_slim/fastmcp/cli/client.py:356
↓ 2 callersMethod_list_resources
List all resources from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:674
↓ 2 callersMethod_list_tools
(self)
tests/server/test_providers.py:76
↓ 2 callersFunction_lookup_task_execution
Look up task execution and metadata from Redis. Consolidates the common pattern of fetching task metadata from Redis, validating it exists, a
fastmcp_slim/fastmcp/server/tasks/requests.py:72
↓ 2 callersMethod_make_call_tool
Create the call_tool proxy that executes discovered tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:223
↓ 2 callersMethod_make_client_key
Create a stable key for consent tracking from client_id and redirect_uri.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:58
↓ 2 callersFunction_make_dev_app
Build the Starlette dev server application.
fastmcp_slim/fastmcp/cli/apps_dev.py:1373
↓ 2 callersMethod_make_get_prompt_tool
Create the get_prompt tool.
fastmcp_slim/fastmcp/server/transforms/prompts_as_tools.py:126
← previousnext →701–800 of 10,312, ranked by callers