Skip to content

AAK-MCP-STATELESS-002: Use of removed tasks/list method

Severity
HIGH
Category
MCP Configuration (mcp-config)
Scanner
agent_audit_kit/scanners/mcp_stateless_migration.py
Auto-fixable
No.
SARIF name
McpTasksListRemoved

What it detects

Server or client code dispatches, handles, or names the tasks/list JSON-RPC method. The ratified MCP 2026-07-28 spec removes tasks/list from the core because it cannot be scoped safely without the protocol-level session: the experimental Tasks primitive (SEP-1686) moves out of the core specification into the Extensions framework (redesigned as SEP-2663), and the stateful list surface has no stateless successor in core.

How to fix

Stop calling and handling tasks/list. If your application needs an enumeration of in-flight work, model it as an extension primitive scoped to an authenticated identity, or store task identifiers client-side and re-query them with tasks/get style point lookups.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-STATELESS-002

Limitations

Reads source files only in a project whose root manifest names an MCP SDK in a form AAK-MCP-STATELESS-001 recognises, and matches the quoted method name tasks/list and calls spelled tasks.list( or tasks_list(. An SDK call named listTasks() is not matched. A source file over 512 KB, a config file over 1 MB or a manifest over 2 MB is not read.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-STATELESS-002.md: the page then shows that text, with the registry reference appended under it.