Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add mroops0111/openapi-mcp-gateway --skill generate-configgit clone --depth 1 https://github.com/mroops0111/openapi-mcp-gatewayWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mroops0111/openapi-mcp-gateway/generate-config)<a href="https://agentmods.dev/skills/mroops0111/openapi-mcp-gateway/generate-config"><img src="https://agentmods.dev/badge/skills/mroops0111/openapi-mcp-gateway/generate-config.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00119 | $0.03020 |
| Opus 5 | $0.00060 | $0.01510 |
| Sonnet 5 | $0.00024 | $0.00604 |
| Haiku 4.5 | $0.00012 | $0.00302 |
Grade A, and why
generate-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate a Gateway Config
Role
openapi-mcp-gateway reads an OpenAPI spec at startup and exposes its operations as MCP tools, then calls the upstream REST API on each tool call. One config file can mount several servers.
Your job is to hand the user a runnable config.yml, starting from nothing more than an API they name or a spec they point at. The user may be non-technical, so you own the OpenAPI details and confirm intent in plain language.
Most of the work is choosing which operations to expose and how to authenticate. Reach for shaping (params / strategy and JSONata) only when a raw operation makes a poor tool. A config that exposes the right operations under the right auth, with no shaping, is a fine result.
Config Model
This skill carries the config keys you need. The Stage 2 guidance covers the tool block, and the Stage 3 skeleton shows the whole config shape. For the CLI flags and their allowed values, such as the transports and auth types, run:
uvx openapi-mcp-gateway --help
Do not invent a key you have not seen in one of those.
Follow these two rules:
- Policy Selects, Operations Override. The tool surface comes from the
policyblock, whereallowanddenyare globs over operation ids andannotated_onlykeeps only operations the spec annotates. Theoperationsmap only attaches overrides to operations the policy already kept, and it errors on an unknown id. Setpolicy.allowto narrow a large spec, or every operation becomes a tool. - Complete Spec, Lean Config. Point
specat the full upstream document and never trim it. Narrow the surface withpolicy.allow, so the user can widen it later with a one-line change instead of re-acquiring the spec.
Features by Scenario
Match features to the user's situation, do not reach for all of them.
- Local, Single User, One API (stdio). A static token is enough,
bearerorapi_keywith the provider's header, such as a GitHub personal access token. No OAuth. Expose a handful of operations withpolicy.allow. - A Huge Spec of Hundreds of Operations. Prefer dynamic exposure, which fronts the spec with a few meta-tools, over listing every operation, so the tool list never floods the model. Still scope it with
policy.allow. - A Messy API That Makes Poor Tools. Shape it. Hide the knobs the model should not set, and trim the response.
- Multiple Users, or a Provider That Mandates It. Use
oauth2, so each user signs in with their own credentials.authorization_codeis the default and fits nearly every case. - An API Behind an Identity Provider You Run. Point the OAuth URLs at that provider and set
auth.upstream.audienceto the API, so the provider mints a token the API will accept rather than one for its own default audience. Reach forflow: token_exchangeonly when the provider should also issue for the MCP endpoint itself, which needs RFC 8693 support on its side.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago Changed · +9 lines c05893f4b190
- 8d ago First seen · 160 lines · 119 tokens per session scan A 38d1e422e485
generate-config is a skill published in the GitHub repository mroops0111/openapi-mcp-gateway (4 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 3,020 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
fastapi-expert
Expert-level FastAPI development for high-performance Python APIs with async support. Use when the user mentions Python, API, async, REST, OpenAPI, or Pydantic, or when the task involves FastAPI Features.
fastapi
Operational skill for FastAPI: Pydantic models, dependency injection, async routes, OpenAPI, authentication hooks, and TestClient-based testing.
auth
JWT patterns, API key auth, Supabase Auth, OAuth2 flows, RBAC, FastAPI security dependencies.
fastapi-docs
FastAPI 0.115+ — path/query params, Pydantic, dependency injection, OAuth2/JWT, middleware, WebSocket, testing.
fastapi
FastAPI best practices and conventions. Use when working with FastAPI APIs, Pydantic models, dependencies, streaming responses including Server-Sent Events (SSE), and serving frontend apps. Keeps FastAPI code clean and up to date with the latest features and patterns.
printing-press-amend
Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…