Check if the connected client supports a given MCP extension.Inspects the extensions extra field on ClientCapabilities
sent by the client during initialization.
Override to set capabilities.tasks as a first-class field per SEP-1686.This ensures task capabilities appear in capabilities.tasks instead of
capabilities.experimental.tasks, which is required by the MCP spec and
enables proper task detection by clients like VS Code Copilot 1.107+.
Decorator for registering a read_resource handler with CreateTaskResult support.The MCP SDK’s read_resource decorator does not support returning CreateTaskResult
for background task execution. This decorator wraps the result in ServerResult.This decorator can be removed once the MCP SDK adds native CreateTaskResult support
for resources.
Decorator for registering a get_prompt handler with CreateTaskResult support.The MCP SDK’s get_prompt decorator does not support returning CreateTaskResult
for background task execution. This decorator wraps the result in ServerResult.This decorator can be removed once the MCP SDK adds native CreateTaskResult support
for prompts.