---
title: "Comment by Parlup on \"How to Turn an OpenAPI Spec Into an MCP Server (Without Giving Agents Every Endpoint)\" | Hashnode"
description: "Great breakdown—especially calling out that readOnlyHint and destructiveHint are hints, not security boundaries. Two edge cases we keep seeing when wrapping Ope"
url: "https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058/comment/6b06d61bc34cba277822ad54"
---

[Discussion](https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058)

Comment [How to Turn an OpenAPI Spec Into an MCP Server (Without Giving Agents Every Endpoint)](https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058)

[Parlup](https://hashnode.com/@parlup)

[2h ago](https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058/comment/6b06d61bc34cba277822ad54)

Great breakdown—especially calling out that `readOnlyHint` and `destructiveHint` are hints, not security boundaries.

Two edge cases we keep seeing when wrapping OpenAPI specs into MCP servers:

1.  **HTTP verbs in OpenAPI lie:** `POST /search` or `POST /preview` is read-only, while some `GET` endpoints trigger side effects or expensive exports, and `POST` covers everything from idempotent creates to irreversible charges. Relying on raw HTTP method mapping misclassifies risk—keeping an explicit side-effect + idempotency manifest per task-shaped tool (and pairing destructive writes with dry-run previews or protocol-level Elicitation) avoids nasty surprises.
2.  **Shared downstream credentials collapse blast radius:** Keeping the upstream API key on the MCP server protects the secret, but if every connected agent shares one downstream bucket, one looping agent triggers `429`s for everyone else and muddies the audit log. Propagating a per-agent or per-session identifier into rate-limit keys and audit headers keeps attribution intact without leaking the underlying credential.
