Skip to content

feat: add remove_document MCP tool#13

Open
brendanwhit wants to merge 2 commits into
tomplex:mainfrom
brendanwhit:remove-document-tool
Open

feat: add remove_document MCP tool#13
brendanwhit wants to merge 2 commits into
tomplex:mainfrom
brendanwhit:remove-document-tool

Conversation

@brendanwhit

Copy link
Copy Markdown
Contributor

What

Adds a remove_document MCP tool — the inverse of add_document. Removes a document tab (and its comments) from the review UI by item id and broadcasts items_changed so open UIs update. The diff tab can't be removed; unknown/unremovable ids return an error payload along with the current items list.

Uses the existing Session.removeItem, so this is server/mcp.ts only.

Tests

npm run lint, npm run format:check, npm run build, npm test all green.

Second commit is the dist/ sync.

🤖 Generated with Claude Code

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