Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/mcpModel Context Protocol tools, system resources, and promptstype/bugType bug: the code does not do what it must
Milestone
Description
Summary
Found in the release/v0.2.23 review (line numbers at 7fdaa9d).
- Most MCP tools are unreachable.
- The server advertises 37 of its 156 tools, and hydrating a domain sends no
notifications/tools/list_changed(src/devops_cli/ai/mcp/server.py:3008-3068). Clients that cache the tool list never see the hydrated tools. That includes this project's ownMCPToolset, whichcreate_devops_mcp_toolsetbuilds withcache_tools=True. - The docstring advertises a nonexistent
secretsdomain and omitsvault,ssh,tls,ragandrepos.hydrate_tool_domain("secrets")still returnshydrated: True.
- The server advertises 37 of its 156 tools, and hydrating a domain sends no
pr_check_readiness(require_ready=True)always errors. It exits 2 with "No such option", because the MCP tool still passes--require-ready(server.py:2280-2281) after the flag was removed (src/devops_cli/commands/pr.py:1461-1468).tests/test_fastmcp_contracts.py:505-537asserts the invalid argv. Tracked atdocs/ROADMAP.md:763.pr check-readinesspasses when it cannot see the checks. The check-runs gate reads one unpaginated page of 30 runs and treats any API failure or empty output as "no checks" (pr.py:1256-1270,:1293-1320). It also ignores commit statuses. A red check on page 2, a token withoutchecks:read, or a 5xx lets the command certify the PR.tests/test_pr_check_runs.py:40-62asserts the fail-open result. Tracked atdocs/ROADMAP.md:768.devops ai runs checkpasses with nothing checked. Runs with no matching metrics produce no checks, andall([])passes (src/devops_cli/ai/run_store.py:517-529,:741;src/devops_cli/commands/ai_runs.py:642-650). prompt-eval and sample-validation runs always "pass". Corpus-score runs checkrecall_foundbut neverrecall_reported.- An ambiguous run-id prefix acts on an arbitrary run. A prefix that matches several runs picks one in filesystem glob order (
run_store.py:361-364). - The coverage index fails open for test helpers (latent). A changed
tests/helper or fixture is selected as a test itself, rather than the tests that import it (src/devops_cli/core/coverage_index.py:205-207).find("/src/")also matches the first/src/in an absolute path (:111). Nothing calls this yet.
Remediation Plan
- Send
notifications/tools/list_changedafter hydration. Reject unknown domains, and correct the docstring. - Remove
--require-readyfrom the MCP tool, or restore the CLI flag, and fix the contract test. - Paginate check runs, include commit statuses, and fail closed on API errors, updating
tests/test_pr_check_runs.py. - Fail
runs checkwhen no metric applies, and checkrecall_reportedas well asrecall_found. - Refuse an ambiguous prefix and list the matching runs.
- Map changed test helpers to the tests that import them, and anchor the
/src/lookup to the repository root. - Add tests for each item.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/mcpModel Context Protocol tools, system resources, and promptstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(mcp): hydrate lazy domains, fail closed on readiness, pin tree-si…
dan-petty commentedon Sep 28, 2026
Closed by #674, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.