MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions10,524 in github.com/PrefectHQ/fastmcp

↓ 1 callersFunction_send_progress_notification
Send notifications/tasks/status when progress updates. Args: session: MCP ServerSession task_id: Client-visible task ID t
fastmcp_slim/fastmcp/server/tasks/subscriptions.py:163
↓ 1 callersFunction_send_status_notification
Send notifications/tasks/status to client. Per SEP-1686 line 454: notification SHOULD NOT include related-task metadata (taskId is already in
fastmcp_slim/fastmcp/server/tasks/subscriptions.py:93
↓ 1 callersMethod_serialize_payload
(self, context: MiddlewareContext[Any])
fastmcp_slim/fastmcp/server/middleware/logging.py:33
↓ 1 callersMethod_serialize_query_params
Serialize query parameter values according to their OpenAPI style/explode settings. By default (style=form, explode=true), list valu
fastmcp_slim/fastmcp/utilities/openapi/director.py:284
↓ 1 callersMethod_session_runner
Background task that manages the actual session lifecycle. This task runs in the background and: 1. Establishes the transpor
fastmcp_slim/fastmcp/client/client.py:686
↓ 1 callersMethod_set_auth
(self, auth: httpx.Auth | Literal["oauth"] | str | None)
fastmcp_slim/fastmcp/client/transports/http.py:101
↓ 1 callersFunction_set_token
Set the access token in the auth context var.
tests/server/versioning/test_visibility_version_fallback.py:31
↓ 1 callersFunction_set_visibility_metadata
Set visibility state in tool metadata. This uses the same metadata format as the Visibility transform, so tools marked here will be filtered
fastmcp_slim/fastmcp/tools/tool_transform.py:942
↓ 1 callersMethod_setup_handlers
Set up core MCP protocol handlers. List handlers use SDK decorators that pass the request object to our handler (needed for paginatio
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:54
↓ 1 callersMethod_setup_proxy_ping_handler
(self)
fastmcp_slim/fastmcp/server/providers/proxy.py:920
↓ 1 callersMethod_setup_task_protocol_handlers
Register SEP-1686 task protocol handlers with SDK. Only registers handlers if docket is installed. Without docket, task protocol requ
fastmcp_slim/fastmcp/server/mixins/lifespan.py:240
↓ 1 callersFunction_should_skip
(example: CodeExample)
tests/docs/test_doc_examples.py:49
↓ 1 callersMethod_should_validate_host
(self, scope: Scope)
fastmcp_slim/fastmcp/server/http.py:279
↓ 1 callersMethod_should_validate_origin
(self, scope: Scope, host: str)
fastmcp_slim/fastmcp/server/http.py:286
↓ 1 callersMethod_show_consent_page
Display consent page or auto-approve/deny based on cookies.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:322
↓ 1 callersFunction_single_pass_optimize
Optimize JSON schemas in a single traversal for better performance. This function combines three schema cleanup operations that would normal
fastmcp_slim/fastmcp/utilities/json_schema.py:448
↓ 1 callersFunction_slugify
Convert text to a URL-friendly slug format. Only contains lowercase letters, uppercase letters, numbers, and underscores.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:115
↓ 1 callersFunction_spec_files_for_provider
Find all spec files for a given provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:234
↓ 1 callersFunction_stamp_prefab_marker
Mark a tool as needing a Prefab renderer resource. Sets ``meta["ui"]["resourceUri"]`` to a placeholder URI. The server recognizes the placeho
fastmcp_slim/fastmcp/server/providers/local_provider/decorators/tools.py:76
↓ 1 callersFunction_start_user_server
Start the user's MCP server as a subprocess on mcp_port.
fastmcp_slim/fastmcp/cli/apps_dev.py:1674
↓ 1 callersFunction_stdio_transport_connect_task
A standalone connection task for a stdio transport. It is not a part of the StdioTransport class to ensure that the connection task does not hold
fastmcp_slim/fastmcp/client/transports/stdio.py:175
↓ 1 callersFunction_stream_and_cleanup
(resp: httpx.Response)
fastmcp_slim/fastmcp/cli/apps_dev.py:1553
↓ 1 callersFunction_strip_discriminator
Recursively remove OpenAPI ``discriminator`` keys from a schema. Pydantic emits ``discriminator.mapping`` with values like ``#/$defs/ClassNam
fastmcp_slim/fastmcp/utilities/json_schema.py:77
↓ 1 callersMethod_submit_consent
Handle consent approval/denial, set cookies, and redirect appropriately.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:469
↓ 1 callersFunction_terminate_process
Terminate a subprocess and all its children. Sends SIGTERM to the process group first for graceful shutdown, then falls back to SIGKILL if th
fastmcp_slim/fastmcp/cli/run.py:344
↓ 1 callersFunction_test_provider
Run json_schema_to_type on every schema for one provider.
tests/utilities/json_schema_type/test_real_world_schemas.py:257
↓ 1 callersMethod_text_reply
(text: str = "some text")
tests/client/test_sampling_result_types.py:450
↓ 1 callersMethod_to_server_and_underlying_transport
Turn the transforming server into a FastMCP proxy and return its transport.
fastmcp_slim/fastmcp/mcp_config.py:122
↓ 1 callersFunction_tool_call
Build a regular tool-use reply.
tests/client/test_sampling_result_types.py:569
↓ 1 callersMethod_tool_reply
(value: int)
tests/client/test_sampling_result_types.py:461
↓ 1 callersFunction_tool_skill_section
Generate a SKILL.md section for a single tool.
fastmcp_slim/fastmcp/cli/generate.py:567
↓ 1 callersFunction_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_regex.py:46
↓ 1 callersFunction_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/search/client_bm25.py:46
↓ 1 callersFunction_tool_table
( tools: list[dict], *, ranked: bool = False, show_params: bool = False )
examples/code_mode/client.py:49
↓ 1 callersFunction_tool_title
(tool: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev.py:1067
↓ 1 callersFunction_tools_to_json
Serialize a list of tools to JSON-safe dicts.
fastmcp_slim/fastmcp/cli/client.py:473
↓ 1 callersMethod_translate_scopes_from_idp
Strip ``{identifier_uri}/`` from custom API scopes Azure echoes back. Inverse of :meth:`_prefix_scopes_for_azure`. Azure echoes the prefixed
fastmcp_slim/fastmcp/server/auth/providers/azure.py:446
↓ 1 callersFunction_unclamp_logger
Remove all clamped log filters from the logger.
fastmcp_slim/fastmcp/utilities/logging.py:240
↓ 1 callersMethod_unflatten_arguments
Maps flat arguments back to their OpenAPI locations using the parameter map. Args: route: HTTPRoute with parameter_map c
fastmcp_slim/fastmcp/utilities/openapi/director.py:156
↓ 1 callersFunction_union_type
(branches: list[Any])
fastmcp_slim/fastmcp/server/transforms/search/base.py:80
↓ 1 callersMethod_unscope_stream_id
(self, stream_id: StreamId)
fastmcp_slim/fastmcp/server/event_store.py:50
↓ 1 callersFunction_unwrap_model
Unwrap ``Annotated`` and return the underlying Pydantic model, if any.
fastmcp_slim/fastmcp/tools/function_parsing.py:59
↓ 1 callersFunction_unwrap_result
Extract the logical return value from a ToolResult.
tests/experimental/transforms/test_code_mode_discovery.py:17
↓ 1 callersFunction_unwrap_tool_result
Convert a ToolResult for use in the sandbox. - Output schema present → structured_content dict (matches the schema) - Otherwise → concatenate
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:54
↓ 1 callersFunction_update_all_lists
Actions to update all three status lists from a tool result.
examples/apps/approvals/approvals_server.py:208
↓ 1 callersMethod_uses_alternate_verification
Patch returned token scopes from the upstream token response. Hugging Face OAuth access tokens are opaque. The userinfo endpoint vali
fastmcp_slim/fastmcp/server/auth/providers/huggingface.py:272
↓ 1 callersMethod_uses_alternate_verification
Whether this provider verifies a different token than the access token. When True, ``load_access_token`` patches the validated result with
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1681
↓ 1 callersFunction_validate
()
fastmcp_slim/fastmcp/cli/cimd.py:170
↓ 1 callersMethod_verify_consent_binding_cookie
Verify the consent binding for a specific transaction.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:264
↓ 1 callersFunction_wait_for_server
Poll until the server is accepting connections.
fastmcp_slim/fastmcp/cli/apps_dev.py:1709
↓ 1 callersFunction_walk_provider
(provider: Provider)
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:163
↓ 1 callersFunction_wrap_body_errors
Wrap ``fn`` so a ``pydantic.ValidationError`` raised by its body is re-raised as ``_ToolBodyError``. The wrapper preserves ``fn``'s signature
fastmcp_slim/fastmcp/tools/function_tool.py:75
↓ 1 callersMethod_wrap_list_handler
Wrap a list handler to pass the request and return ServerResult.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:87
↓ 1 callersMethodadd
(a: int, b: int)
tests/client/auth/test_oauth_static_client.py:246
↓ 1 callersMethodadd
(a: int, b: int)
tests/server/middleware/test_middleware_nested.py:180
↓ 1 callersFunctionaddBanner
()
docs/v2-banner.js:5
↓ 1 callersFunctionadd_memory
(content: str, deps: Deps)
examples/memory.py:173
↓ 1 callersMethodadd_server
Add or update a server in the configuration.
fastmcp_slim/fastmcp/mcp_config.py:319
↓ 1 callersMethodadd_to_docket
Schedule this template for background execution via docket. The child's FunctionResourceTemplate.fn is registered (via get_tasks), an
fastmcp_slim/fastmcp/server/providers/fastmcp_provider.py:448
↓ 1 callersFunctionanalyze_data
Filter and analyze sales data. Returns rows, summary, and chart data.
examples/apps/explorer/explorer_server.py:337
↓ 1 callersMethodasend
(self, value)
tests/client/auth/test_oauth_client.py:354
↓ 1 callersFunctionattach_metadata
(fn: F, tool_name: str | None)
fastmcp_slim/fastmcp/tools/function_tool.py:671
↓ 1 callersFunctionattach_metadata
(fn: F)
fastmcp_slim/fastmcp/resources/function_resource.py:323
↓ 1 callersFunctionattach_metadata
(fn: F, prompt_name: str | None)
fastmcp_slim/fastmcp/prompts/function_prompt.py:477
↓ 1 callersFunctionblob_resource
(uri: str, data: bytes)
tests/utilities/test_skills.py:44
↓ 1 callersMethodbody
()
tests/server/providers/proxy/test_stateful_proxy_client.py:234
↓ 1 callersFunctionbounded_execute
(tool_use: ToolUseContent)
fastmcp_slim/fastmcp/server/sampling/run.py:371
↓ 1 callersFunctionbuildPageViewProperties
()
docs/fastmcp-analytics.js:80
↓ 1 callersFunctionbuild_parser
()
fastmcp_remote/fastmcp_remote/cli.py:109
↓ 1 callersFunctionbuild_token_storage
(storage_dir: Path)
fastmcp_remote/fastmcp_remote/cli.py:219
↓ 1 callersMethodcall
Add two numbers.
tests/tools/tool/test_tool.py:426
↓ 1 callersFunctioncall_sampling_handler
Make LLM call using the fallback handler. Note: This function expects the caller (sample_step) to have validated that sampling_handler is set
fastmcp_slim/fastmcp/server/sampling/run.py:200
↓ 1 callersMethodcancel_task
Cancel a task, transitioning it to cancelled state. Sends a 'tasks/cancel' MCP protocol request. Task will halt execution and transit
fastmcp_slim/fastmcp/client/mixins/task_management.py:135
↓ 1 callersMethodclear
(self)
fastmcp_slim/fastmcp/cli/apps_dev.py:160
↓ 1 callersMethodclient_supports_extension
Check whether the connected client supports a given MCP extension. Inspects the ``extensions`` extra field on ``ClientCapabilities``
fastmcp_slim/fastmcp/server/context.py:587
↓ 1 callersMethodclose
(self)
fastmcp_slim/fastmcp/client/transports/config.py:219
↓ 1 callersMethodclose_issue
Close an issue with a comment. Closes first, then comments — so a failed comment never leaves a misleading "closing" notice on a stil
scripts/auto_close_needs_mre.py:222
↓ 1 callersMethodclose_issue
Close an issue with a comment and add duplicate label.
scripts/auto_close_duplicates.py:184
↓ 1 callersMethodclose_obo_credentials
Close all cached OBO credentials.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:677
↓ 1 callersMethodcomplete
Send a completion request to the server. Args: ref (mcp.types.ResourceTemplateReference | mcp.types.PromptReference): The referen
fastmcp_slim/fastmcp/client/client.py:879
↓ 1 callersMethodcomplete_mcp
Send a completion request and return the complete MCP protocol result. Args: ref (mcp.types.ResourceTemplateReference | mcp.types
fastmcp_slim/fastmcp/client/client.py:848
↓ 1 callersFunctioncompute_file_hash
Compute SHA256 hash of a file.
fastmcp_slim/fastmcp/server/providers/skills/_common.py:77
↓ 1 callersMethodconnect_session
( self, **session_kwargs: Unpack[SessionKwargs] )
fastmcp_slim/fastmcp/client/transports/sse.py:117
↓ 1 callersMethodconnect_session
( self, **session_kwargs: Any )
tests/client/client/test_client.py:431
↓ 1 callersMethodconnect_session
(self, **session_kwargs: Any)
tests/client/transports/test_transports.py:22
↓ 1 callersMethodconvert_result
Convert a raw result to ResourceResult. This is used in two contexts: 1. In _read() to convert user function return values to Resourc
fastmcp_slim/fastmcp/resources/base.py:311
↓ 1 callersFunctioncosine_similarity
(a: list[float], b: list[float])
examples/memory.py:48
↓ 1 callersMethodcreate_app
Create the mock OAuth server application.
tests/server/auth/oauth_proxy/conftest.py:63
↓ 1 callersFunctioncreate_client_server
Create a FastMCP server from a client URL. Args: url: The URL to connect to Returns: A FastMCP server instance
fastmcp_slim/fastmcp/cli/run.py:90
↓ 1 callersFunctioncreate_closure
()
tests/tools/test_tool_future_annotations.py:175
↓ 1 callersFunctioncreate_detail_box
Create a detail box with key-value pairs. Args: rows: List of (label, value) tuples Returns: HTML for detail box
fastmcp_slim/fastmcp/utilities/ui.py:568
↓ 1 callersFunctioncreate_final_response_tool
Create a synthetic 'final_response' tool for structured output. This tool is used to capture structured responses from the LLM. The tool's sc
fastmcp_slim/fastmcp/server/sampling/run.py:448
↓ 1 callersFunctioncreate_github_server
Create FastMCP server with GitHub OAuth protection.
tests/integration_tests/auth/test_github_provider_integration.py:43
↓ 1 callersFunctioncreate_github_server_with_mock_callback
Create FastMCP server with GitHub OAuth that mocks the callback for testing.
tests/integration_tests/auth/test_github_provider_integration.py:72
↓ 1 callersFunctioncreate_mcp_server
( public_key: str, auth_kwargs: dict[str, Any] | None = None, )
tests/server/auth/test_jwt_provider.py:117
↓ 1 callersFunctioncreate_post
Create a unified post with optional features. Args: text: Post text (max 300 chars) images: URLs of images to attach (max 4)
examples/atproto_mcp/src/atproto_mcp/_atproto/_posts.py:19
↓ 1 callersFunctioncreate_prompt
( fn: Callable[..., Any], prompt_name: str | None )
fastmcp_slim/fastmcp/prompts/function_prompt.py:460
↓ 1 callersFunctioncreate_server
()
examples/get_file.py:13
↓ 1 callersFunctioncreate_test_server
Create a FastMCP server with a slow tool.
tests/integration_tests/test_timeout_fix.py:13
↓ 1 callersMethodcreate_token
Generate a test JWT token for testing purposes. Args: subject: Subject claim (usually user ID) issuer: Issue
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:128
← previousnext →1,201–1,300 of 10,524, ranked by callers