MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 3 callersFunction_normalize_origin
(origin: str)
fastmcp_slim/fastmcp/server/http.py:188
↓ 3 callersMethod_parse_call_tool_result
Parse an mcp.types.CallToolResult into our CallToolResult dataclass. Args: name: Tool name (for schema lookup) result
fastmcp_slim/fastmcp/client/mixins/tools.py:184
↓ 3 callersFunction_parse_mcp_servers
Parse an ``mcpServers``-style dict into discovered servers.
fastmcp_slim/fastmcp/cli/discovery.py:90
↓ 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:180
↓ 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 callersFunction_requested_version
(meta: mt.RequestParams.Meta | None)
fastmcp_slim/fastmcp/server/middleware/authorization.py:52
↓ 3 callersMethod_run_in_child_context
(self, fn)
tests/server/providers/proxy/test_stateful_proxy_client.py:222
↓ 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 callersFunction_schema_section
(schema: dict[str, Any] | None, title: str)
fastmcp_slim/fastmcp/server/transforms/search/base.py:114
↓ 3 callersFunction_set_auth
Install an auth context for a given client_id/sub. Returns the reset token.
tests/server/tasks/test_task_security.py:72
↓ 3 callersMethod_set_token
(token)
tests/server/middleware/test_caching.py:732
↓ 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:91
↓ 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 callersFunction_tool
Build a real Tool component (a FastMCPComponent) with a version.
tests/server/versioning/test_versioning.py:89
↓ 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:1305
↓ 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:477
↓ 3 callersMethod_validate_client_redirect_uri
Validate a stored transaction redirect URI before sending a browser to it.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:64
↓ 3 callersMethod_verify_cookie
Verify and extract payload from signed cookie. Returns: payload if signature valid, None otherwise
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:101
↓ 3 callersFunction_version_request_meta
( version: VersionSpec | None, )
fastmcp_slim/fastmcp/server/server.py:104
↓ 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 callersFunction_watch_filter
Filter for files that should trigger reload.
fastmcp_slim/fastmcp/cli/run.py:339
↓ 3 callersMethodadd_resources
(self, fastmcp: FastMCP, prefix: str = "")
tests/server/middleware/test_caching.py:179
↓ 3 callersMethodasend
(self, value)
tests/client/auth/test_oauth_client.py:305
↓ 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 callersMethodcancel
Send a cancellation notification for an in-progress request.
fastmcp_slim/fastmcp/client/client.py:809
↓ 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 callersMethodcoerce_task_arguments
Validate client arguments against their declared parameter types. The synchronous ``run()`` path validates arguments through the func
fastmcp_slim/fastmcp/tools/function_tool.py:524
↓ 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 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:1414
↓ 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:81
↓ 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 callersFunctionfunc
(x: int, y: int)
tests/tools/tool_transform/test_args.py:334
↓ 3 callersFunctionget_dataclass_field
(type: type, field_name: str)
tests/utilities/json_schema_type/test_advanced.py:16
↓ 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:486
↓ 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:2002
↓ 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 transformed name.
fastmcp_slim/fastmcp/server/transforms/tool_transform.py:75
↓ 3 callersFunctionget_visibility_rules
Load visibility rule dicts from session state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:300
↓ 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 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
Retrieve all resources available on the server. This method automatically fetches all pages if the server paginates results, returnin
fastmcp_slim/fastmcp/client/mixins/resources.py:64
↓ 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
Mark tools by visibility state.
fastmcp_slim/fastmcp/server/transforms/visibility.py:196
↓ 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:232
↓ 3 callersFunctionparse_verify
Interpret the --verify value as a boolean toggle or a CA bundle path.
fastmcp_remote/fastmcp_remote/cli.py:88
↓ 3 callersFunctionparse_version_key
Parse a version string into a sortable key. Args: version: The version string, or None for unversioned. Returns: A VersionKe
fastmcp_slim/fastmcp/utilities/versions.py:197
↓ 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 callersMethodreset
Clear all recorded calls.
tests/server/middleware/test_middleware.py:109
↓ 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 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:216
↓ 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 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:318
↓ 3 callersFunctiontool
(fn: F)
fastmcp_slim/fastmcp/tools/function_tool.py:565
↓ 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 using the configured token verifier.
fastmcp_slim/fastmcp/server/auth/auth.py:468
↓ 3 callersFunctionversion_sort_key
Get a sort key for a component based on its version. Use with sorted() or max() to order components by version. The key is a `(VersionKey, r
fastmcp_slim/fastmcp/utilities/versions.py:209
↓ 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_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 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_calculate_delay
Calculate delay for the given attempt number.
fastmcp_slim/fastmcp/server/middleware/error_handling.py:197
↓ 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 callersFunction_catalog_hash
SHA256 hash of sorted tool searchable text for staleness detection.
fastmcp_slim/fastmcp/server/transforms/search/bm25.py:80
← previousnext →601–700 of 10,524, ranked by callers