generate-config

generate-config is a skill for Claude Code from mroops0111/openapi-mcp-gateway. It costs 119 tokens per session (3,020 once invoked), scanned A, original, MIT.

A guide for creating a YAML configuration that turns a REST API described by OpenAPI into MCP tools. OpenAPI is a machine-readable description of an API, while REST is a common way for software services to exchange data over HTTP.

In plain words
What is it for?
Use it to connect an API such as GitHub, Asana, or an internal service to an MCP client by generating a runnable config.yml.
Why use it?
It removes the need to design the gateway configuration from scratch, including which API operations to expose and how they authenticate.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Part of the openapi-mcp-gateway plugin — 1 skill shipped together

Good fit Use it to connect an API such as GitHub, Asana, or an internal service to an MCP client by generating a runnable config.yml.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mroops0111/openapi-mcp-gateway/generate-config
Install

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.

Any agent
npx skills add mroops0111/openapi-mcp-gateway --skill generate-config
Clone the repo
git clone --depth 1 https://github.com/mroops0111/openapi-mcp-gateway

Made for: Claude Code.

Or install openapi-mcp-gateway, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for generate-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/mroops0111/openapi-mcp-gateway/generate-config.svg)](https://agentmods.dev/skills/mroops0111/openapi-mcp-gateway/generate-config)
Your own site
<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>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,020 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash c05893f4b190, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

plugin/skills/generate-config/SKILL.md · 169 lines

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 policy block, where allow and deny are globs over operation ids and annotated_only keeps only operations the spec annotates. The operations map only attaches overrides to operations the policy already kept, and it errors on an unknown id. Set policy.allow to narrow a large spec, or every operation becomes a tool.
  • Complete Spec, Lean Config. Point spec at the full upstream document and never trim it. Narrow the surface with policy.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, bearer or api_key with the provider's header, such as a GitHub personal access token. No OAuth. Expose a handful of operations with policy.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_code is 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.audience to the API, so the provider mints a token the API will accept rather than one for its own default audience. Reach for flow: token_exchange only when the provider should also issue for the MCP endpoint itself, which needs RFC 8693 support on its side.

Read the full file on GitHub · 169 lines

Changes

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.

  1. 4d ago Changed · +9 lines c05893f4b190
  2. 8d ago First seen · 160 lines · 119 tokens per session scan A 38d1e422e485

Subscribe to this mod's changes

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.