An MCP server that exposes a TODO list service via the Model Context Protocol for consumption by API Agents. Manages TODO items backed by Cloudflare KV storage with OAuth 2.0 authentication via Stytch.
The TODO Service MCP server defines 3 tools with clear action-verb names (createTodo, markTodoComplete, deleteTodo) and concise descriptions. All tools have input schemas with type definitions and parameter descriptions. However, output schemas are not formally documented in the tool definitions, responses are formatted but the response structure is inferred from code rather than declared. Parameter descriptions are minimal (single phrase), and there is no guidance on error conditions, retryability, or idempotency. Security risk annotations are absent (e.g., no destructiveHint for deleteTodo despite DESTRUCTIVE risk label). The resource interface is present but minimal.
Add a new TODO task
Mark a TODO as deleted
Mark a TODO as complete
Output schema not formally documented in tool definitions. Response format is hardcoded in formatResponse() method but not declared in McpServer.tool() registration. LLMs cannot reliably know what fields to expect from the response.
Tool annotations (destructiveHint, readOnlyHint, idempotentHint) not present. deleteTodo is labeled DESTRUCTIVE but provides no destructiveHint in the schema. This leaves agents without explicit guidance on irreversibility.
No error handling or recovery guidance. If todoID does not exist in markTodoComplete or deleteTodo, what does the tool return? No documented error cases, retryability classification, or actionable error messages for LLM recovery.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 62 | <=2025-11-25 | v2 |
| 2026-03-09 | C | 60 | - | v1 |
No confirmation or dry-run pattern for destructive operations. deleteTodo irreversibly removes a todo. No pattern to ask user for confirmation or preview the consequence before execution.
Parameter descriptions are minimal (single phrase). 'The text content of the TODO item to create' is present for todoText, but no guidance on format, length limits, character restrictions, or examples. Parameter descriptions should hint at constraints without embedding literal example values.
No per-tool audit trail or logging. TodoMCP.ts extracts userID from props.claims.sub but does not explicitly log which user called which tool or what the state change was. Compliance and debugging require traceability.
No idempotency guarantee documented. If createTodo is retried, does it create a duplicate? markTodoComplete and deleteTodo behavior on retry is unclear. Agents must know idempotency before deciding to retry after ambiguous failures.