Skip to content

MCP v2.2.0: wiki curation tools (unpublish, archive, delete)#107

Merged
mkreyman merged 1 commit intomasterfrom
feat/mcp-wiki-curation-tools
Apr 22, 2026
Merged

MCP v2.2.0: wiki curation tools (unpublish, archive, delete)#107
mkreyman merged 1 commit intomasterfrom
feat/mcp-wiki-curation-tools

Conversation

@mkreyman
Copy link
Copy Markdown
Owner

Summary

  • Adds three MCP tools — knowledge_unpublish, knowledge_archive, knowledge_delete — so agents can retract low-signal wiki drafts without curl. All three route to REST endpoints that already exist and already require role: :user; this PR only exposes them via MCP.
  • All three gate on LOOPCTL_USER_KEY per the "destructive ops above orchestrator" rule in CLAUDE.md (same pattern as knowledge_bulk_publish and delete_project).
  • Bumps mcp-server to 2.2.0; updates CHANGELOG.md and README.md (tool count 42 → 45, LOOPCTL_USER_KEY description now lists every tool that requires it).

Motivation

Debrief-style skills were creating wiki drafts liberally but there was no retract path via MCP. Bad drafts accumulated until someone did curl. These three tools close the curation loop so orchestrators can clean up after themselves (the debrief skill is being updated separately in claude-config to draft-only behaviour and lean on these new tools).

Trust model check

  • Role requirement unchanged — all three endpoints already required :user in article_controller.ex:24 and article_workflow_controller.ex:1-5.
  • No chain-of-custody impact (not a story lifecycle operation).
  • No new DB tables, no RLS changes.

Test plan

  • mix precommit — compile, format, credo --strict, dialyzer, 2286 tests pass
  • node --check mcp-server/index.js
  • After publish: smoke test knowledge_unpublish / knowledge_archive / knowledge_delete against a real tenant draft
  • Tag mcp-v2.2.0 on the merge commit and npm publish from mcp-server/

Agents could create and publish wiki articles via MCP but had no way
to retract bad drafts — low-signal articles (session summaries, commit
recaps) were piling up with no cleanup path short of curl.

Adds three new MCP tools that gate on LOOPCTL_USER_KEY per the
"destructive ops above orchestrator" rule in CLAUDE.md:

- knowledge_unpublish  → POST /articles/:id/unpublish
- knowledge_archive    → POST /articles/:id/archive
- knowledge_delete     → DELETE /articles/:id (archives under the hood)

No REST API changes — the endpoints already existed and already
required role: user. This PR only exposes them through the MCP server.

Bumps mcp-server to 2.2.0, updates CHANGELOG and README (tool count
42 → 45, LOOPCTL_USER_KEY description expanded to list all tools
that require it).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mkreyman mkreyman merged commit 2155e28 into master Apr 22, 2026
6 checks passed
@mkreyman mkreyman deleted the feat/mcp-wiki-curation-tools branch April 22, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant