Skip to content

MCP: delete_project, for organization admins with their own token, with the project's full org/project name as confirm; the web app's soft delete, purged after 7 days, restorable through support - #204

Merged
ndbroadbent merged 1 commit into
mainfrom
mcp-delete-project
Dec 4, 2026

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

A delete_project tool in the customer MCP server (Nathan decided; this reverses #177's "no MCP delete tool").

  • Organization admins only, using their own token. A project token is refused before anything else, and so is a member or read-only role.
  • confirm must repeat the project's full org/project name. The bare slug is refused.
  • It calls the same code as the web app, domain::project_deletion::delete: a soft delete, checks re-posted as neutral, PR comments edited, the gallery purged and the purge queued for 7 days later.
  • The answer says the project is hidden now, is purged after 7 days, and that support can restore it until then.
  • The server instructions say to delete a project only when the person you work for asks.
  • Docs: access.md, agents.md, llms-header, the visualci-review skill and design.md.

Tests: delete_project_takes_an_admin_and_the_projects_full_name covers a project token, a member and a wrong name (all refused, and the project stays live), then a successful delete. Afterwards get_project is a "no project" error and the old project token gets a 401. The tools-list goldens gain the tool. The full visualci-app suite passes locally, and clippy -D warnings and fmt are clean.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #713 · 4 changed, 5 added, 506 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

blog/index from main's #194 (the case studies), not this PR; the same images were approved on #195.

This PR vs base: 11 changed, 28 added since #625, across 4 builds

Snapshot Before After
screenshots/blog/index/1440-dark (changed)
screenshots/blog/index/1440-light (changed)
screenshots/blog/index/390-dark (changed)
screenshots/blog/index/390-light (changed)
json/mcp/delete_project_takes_an_admin_and_the_projects_full_name/delete_project (added) text text, see the build
json/mcp/delete_project_takes_an_admin_and_the_projects_full_name/delete_project-2 (added) text text, see the build
json/mcp/delete_project_takes_an_admin_and_the_projects_full_name/delete_project-3 (added) text text, see the build
json/mcp/delete_project_takes_an_admin_and_the_projects_full_name/delete_project-4 (added) text text, see the build
and 1 more in the build

docspring/visualci · journeys · build #711 · 50 unchanged · no changes

This PR vs base: nothing since #623, across 4 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent force-pushed the mcp-delete-project branch 2 times, most recently from 32866ae to c300b28 Compare December 4, 2026 12:34
…th the project's full org/project name as confirm; the web app's soft delete, purged after 7 days, restorable through support
@ndbroadbent
ndbroadbent merged commit cb5b28d into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the mcp-delete-project branch December 4, 2026 13:22
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