Something went wrong. Try again.
mirror of github.com/PrefectHQ/fastmcp
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334---title: capabilitiessidebarTitle: capabilities---
# `fastmcp.server.tasks.capabilities`
SEP-1686 task capabilities declaration.
## Functions
### `get_task_capabilities` <sup><a href="https://github.com/PrefectHQ/fastmcp/blob/main/src/fastmcp/server/tasks/capabilities.py#L13" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
```pythonget_task_capabilities() -> ServerTasksCapability | None```
Return the SEP-1686 task capabilities.
Returns task capabilities as a first-class ServerCapabilities field,declaring support for list, cancel, and request operations per SEP-1686.
Returns None if a compatible pydocket is not installed (no task support).Uses the canonical ``is_docket_available()`` check so that capabilityadvertisement and handler registration stay in sync — otherwise a serverwith an old transitive pydocket would advertise task support and thenreturn "method not found" when clients invoked it.
Note: prompts/resources are passed via extra_data since the SDK typesdon't include them yet (FastMCP supports them ahead of the spec).