id: task-307 title: Add dual-mode MCP guidance for workflow docs status: Done assignee:
- '@codex' created_date: '2025-10-22 19:18' updated_date: '2025-10-22 20:35' labels: [] dependencies: []
Description
We need to support both modern MCP clients (with resource support) and legacy/simple clients (tools-only) when providing the Backlog workflow documentation.
Implementation sketch:
- Mirror the existing workflow resources with tool handlers (e.g.
get_workflow_overview,get_task_creation_guide, etc.) so clients that cannot callresources/readcan still access the content. - Update the MCP agent nudge copy so it tells agents to prefer
backlog://workflow/overviewwhen their client supports resources, and to call the new tools otherwise. - Keep the existing resources in place for modern clients.
- Ensure the new tools share the same content as the resource handlers and are discoverable through
tools/list.
This keeps guidance consistent and makes the connector work for a broader set of agents.
Acceptance Criteria
- [x] #1 MCP server registers tool handlers that return the same markdown as the existing workflow resources (overview, task creation, task execution, task completion).
- [x] #2 Agent nudge text references both the resource URIs and the fallback tools, clarifying when to use each.
- [x] #3 Existing resource handlers remain available and their content continues to match the tool output.
- [x] #4 Tests or docs are updated if needed to reflect the dual-mode behavior.
Implementation Plan
- Add workflow documentation tools that mirror the existing resources.
- Refactor resource registration to share content with the new tools.
- Update the MCP agent nudge text to mention resource URIs and tool fallbacks.
- Adjust or add tests/docs to cover the dual-mode behavior.