MCP write tools open without authentication: add OAuth before listing
Shipyard warns when a no-auth server lists create, update or delete tools. Require OAuth for writes; no-auth fits only public read-only data.
Require OAuth for tools that create, update or delete. The rule auth.write-tools-unauthenticated is a major finding, but it reports a warning because it is a heuristic. The fix text says the MCP spec requires access controls, and both directories accept no-auth only for public read-only data.
What you see
- A scan reports
auth.write-tools-unauthenticatedas a warning: "No auth, yet write-like tools are listed: <names>". - It only runs when the probe finds no authentication on the server (auth mode none).
Why it happens
The rule looks at tool names with a write verb (create, update, delete, send, cancel and others) that are not marked readOnlyHint: true. It skips intake-style names such as feedback, contact, demo, waitlist, subscribe, quote, support and book_a_call, because those write to the vendor's own inbox.
It cannot see whether a server checks a key on each call. The scan never calls a write tool, so a server that lists create_order without connection-level auth may still reject the call. If so, the warning is a false positive for that server, but a client still cannot tell.
The MCP tools spec says servers MUST implement proper access controls, among other requirements.
Check it yourself
curl -s -o /dev/null -w '%{http_code}\n' -X POST https://mcp.acme.example/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
A 200 with write tools in the list, from a caller with no token, is the case the rule flags. A 401 with WWW-Authenticate means the connection is protected.
Fix
- Add OAuth 2.1 and answer unauthenticated calls with
401and aresource_metadatapointer; seeauth.prm-missingandauth.challenge-401. - Or split into two servers: a public read-only one (no auth) and an authenticated one with write tools.
- Mark read tools
readOnlyHint: trueso the rule has less to flag. - Enforce permissions again inside each tool handler.
Verify
Re-run the curl command: write tools no longer appear for a caller with no token, or the request gets a 401. Re-scan.
Which clients care
Tagged general, Claude and ChatGPT.
Source
MCP tools spec: https://modelcontextprotocol.io/specification/2026-07-28/server/tools
Run a free scan at https://mcpshipyard.com/scan to check every rule at once.
Check every rule at once
A free scan runs this check and the other 152 against your live URL.
Related fixes
- Add Client ID Metadata Documents (CIMD) next to Dynamic Client Registration
- API key or token in the MCP server URL (?key=): why it fails and how to fix
- ChatGPT MCP: dynamic client registration not supported (CIMD or DCR required)
- Claude says "Couldn't reach the MCP server": missing protected resource metadata