Skip to content

[bug] wiki_get_draft and wiki_refine_draft (Path B) are defined but never registered as MCP tools #579

Closed

Description

@cdeust

What happened

mcp_server/handlers/wiki_refine.py defines Path B of the wiki pipeline (ADR-0467): handler_get (wiki_get_draft) hands an LLM a draft, its source claims and the kind contract, and handler_refine (wiki_refine_draft) takes the refined prose back. Neither is registered as an MCP tool. mcp_server/tool_registry_wiki.py registers ten wiki tools, none of them these two, and git log -S wiki_refine over the tool_registry*.py files finds no commit that ever registered them.

The only caller in the tree is tests_py/handlers/test_wiki_pipeline_sqlite.py::test_refine_lists_pending_drafts (for handler_get) and, since #578, tests_py/handlers/test_wiki_refine_confidence.py (for handler_refine). The maintainer's PostgreSQL store holds one refined_llm memo, written on 2026-04-14 by a test_runner_v1 run; all 546 drafts carry synth_model template_v1.

handler_get's instructions tell the caller to "call wiki_refine_draft", a tool no client can see.

Expected behavior

One of the two, decided by the owner: register both tools (with their tool_profiles.py and latency_class.py entries and the docs/mcp-tools.md count), or remove the module and its tests with an ADR that supersedes ADR-0467.

Evidence required to close

Either the two tools listed by the server's tools/list, or the module gone with no remaining reference outside wiki/adr and docs/adr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions