id: task-289 title: >- Implement resource templates list handler to return empty list instead of error status: In Progress assignee:
- '@codex' created_date: '2025-10-15 18:25' updated_date: '2025-10-15 18:47' labels:
- mcp
- enhancement dependencies: [] priority: low
Description
MCP Inspector shows a "List Templates" button which calls resources/templates/list method. Currently this returns error -32601 (Method not found) because the MCP server doesn't implement this handler.
Since Backlog.md doesn't use resource templates, we should implement the handler to return an empty list instead of throwing an error. This will improve the user experience in MCP Inspector and other MCP clients.
Related to GitHub issue #399 - the "List Templates" error shown in screenshots.
Acceptance Criteria
- [x] #1 MCP server responds to resources/templates/list request without error
- [x] #2 Handler returns empty array when no templates are available
- [x] #3 MCP Inspector 'List Templates' button works without showing error
- [x] #4 Implementation follows MCP protocol specification for resource templates
Implementation Notes
Implemented resources/templates/list handler returning an empty array and added test coverage. Ran bun test src/test/mcp-server.test.ts to verify.