mcp-server icon indicating copy to clipboard operation
mcp-server copied to clipboard

No tool sets destructiveHint; data_cms_tool mixes reads with publish and delete

Open kaspermuutra-dotcom opened this issue 1 month ago • 0 comments

Across src/tools/, the 24 tools set readOnlyHint and openWorldHint but none sets destructiveHint. data_cms_tool (src/tools/cms.ts) also combines list/get actions with publish_collection_items and delete_collection_items in one tool, so a single readOnlyHint: false has to describe both a read and a delete.

Why it matters: MCP clients such as Claude and ChatGPT use readOnlyHint / destructiveHint to decide which tools run without asking the user. Anthropic's Connectors Directory requires a title plus readOnlyHint or destructiveHint on every tool, and OpenAI's app directory requires explicit hint booleans.

Suggested fix: set destructiveHint explicitly on every tool, and split destructive actions (delete, publish) out of the combined data tools so each tool's hints can be accurate.

Disclosure: I build Suncly (suncly.com), which checks MCP tools against their annotations; I found this while reviewing public MCP servers. Happy to help verify a fix.

kaspermuutra-dotcom avatar Oct 22 '26 20:10 kaspermuutra-dotcom