Skip to content

fix(mcp): declare public and irreversible tool effects - #501

Merged
imshashank merged 3 commits into
mainfrom
fix/mcp-comment-replacement-annotations
Sep 24, 2026
Merged

imshashank merged 3 commits into
mainfrom
fix/mcp-comment-replacement-annotations

Conversation

@imshashank

@imshashank imshashank commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

MCP clients currently receive non-destructive annotations for comment replacement, saved-view filter replacement, sprint completion, and workflow-category changes. These operations can discard previous content/configuration or change completion history without a supported undo. Mark them destructive so clients can request suitable confirmation.

Document publishing, edits, archive/restore/delete, and attachment uploads can affect documents exposed on the web. Invitations can target people outside the current workspace. Mark these seven tools open-world instead of advertising every operation as confined to a private workspace. Also correct get_me to describe an OAuth grant and invite_member to state that it creates a pending invitation without sending an email itself.

This changes tool metadata only. Authorization, OAuth scopes, handlers, mutation behavior, and the database schema are unchanged. Existing read-only operations retain their annotations.

Validation:

  • Extended the integration assertion over the actual MCP tools/list response to verify the complete destructive and open-world tool sets.
  • Lint, comment policy, and all package type checks passed.
  • Full bun run verify on final head 5035d3b passed against isolated local test databases: 6,242 passed, five skipped, zero failures. This includes lint, comment policy, all type checks, and serialized MCP annotation regression coverage.
  • Current main is incorporated. Latest-head CI must finish before merge.
  • The exact nine-file diff was reviewed manually. No unresolved review threads; CodeRabbit reported its review limit and did not review this PR.
  • Reviewed the relevant comment, invitation, document, saved-view, sprint, and workflow-state handlers against the tool annotation definitions.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: Noveum/orbit/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 89644c10-9546-41c5-823d-f699de0291b4

📥 Commits

Reviewing files that changed from the base of the PR and between fb17c33 and 5035d3b.

📒 Files selected for processing (9)
  • packages/mcp-server/src/tools/admin.ts
  • packages/mcp-server/src/tools/docs.ts
  • packages/mcp-server/src/tools/identity.ts
  • packages/mcp-server/src/tools/issues.ts
  • packages/mcp-server/src/tools/org.ts
  • packages/mcp-server/src/tools/scrum.ts
  • packages/mcp-server/src/tools/taxonomy.ts
  • packages/mcp-server/src/tools/workspace.ts
  • packages/mcp-server/tests/tools.test.ts

Comment @coderabbitai help to get the list of available commands.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions github-actions Bot added tests Test coverage and test infrastructure area: mcp The MCP server, its tools and its OAuth labels Sep 24, 2026
@vercel

vercel Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
orbit Ready Ready Preview Sep 24, 2026 9:35am UTC

Request Review

@imshashank
imshashank merged commit 41691a5 into main Sep 24, 2026
16 checks passed
@imshashank
imshashank deleted the fix/mcp-comment-replacement-annotations branch September 24, 2026 09:39

This branch was successfully deployed

1 active deployment
Preview — 5035d3b2 Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: mcp The MCP server, its tools and its OAuth tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant