Skip to content

feat: add MCP004 for readOnlyHint vs write-verb tools - #48

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/mcp004-readonly-hint-b60c
Sep 12, 2026
Merged

feat: add MCP004 for readOnlyHint vs write-verb tools#48
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/mcp004-readonly-hint-b60c

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

Adds MCP004: flag tools that advertise readOnlyHint: true while the name/description matches write or destructive verbs.

Test plan

  • npm test

Fixes #33

Detect mutating/destructive tools that set readOnlyHint, which can
mislead clients into auto-approving state-changing actions.

Fixes AgentPostmortem#33

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
@royalpinto007
royalpinto007 merged commit 6e5fe35 into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

Merged, @sharadvc. Thank you for taking the time.

Contributions like this are what keep MCP-audit moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

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.

New rule MCP004: flag write-verb tools advertising readOnlyHint

2 participants