wrap-api-as-plugin
name: wrap-api-as-plugin
description: >-
Use when wrapping an HTTP API, OpenAPI/spec, or "wrap X" into a Cursor/Agent
Plugin (MCP + skills). Prefer before scaffolding files.
Wrap an API as a plugin
Data shape first
Name the domain type before any files. One line, e.g. FxQuote = { amount, base, date, rates } or PokemonSummary = { id, name, height, weight, types }.
Organize tools around that shape, not around whatever the upstream JSON dumps.
Choose format
Docs: https://cursor.com/docs/plugins and https://cursor.com/docs/reference/plugins
Scaffold (smallest)
plugin.json with name, description, version, author.
- If MCP:
mcp.json with matching Agent Plugins $schema, stdio server, cwd: "${PLUGIN_ROOT}", command/args to the server entry.
- One thin skill whose description says when to call the tools. Never invent API data in the skill.
- Public no-auth HTTP: zero-dep stdio MCP (hand-rolled JSON-RPC +
fetch) until an SDK earns its install.
- Auth APIs: declare plugin
variables for secrets; put only ${VAR} placeholders in mcp.json. Never commit keys.
Repo work
Non-trivial repo edits go to a CloudAgent. Do not clone product monorepos onto the agent machine for scaffolding.
Prove + publish
Run prove-plugin-local. When the owner wants it listed, run publish-cursor-plugin: ask once if they work at the company/service — yes (or they insist) → Marketplace, no/unsure → cursor.directory. Trust the answer; the approve gate still blocks submit.
Do not
- Submit anywhere without an explicit owner ask + approve gate
- Paste secrets into chat
- Build host-product Slack bot accounts
1---2name: tinkabot-wrap-api-as-plugin3description: "Use when wrapping an HTTP API, OpenAPI/spec, or \"wrap X\" into a Cursor/Agent Plugin (MCP + skills). Prefer before scaffolding files."4version: 1.0.05platforms: [linux, macos, windows]6metadata:7 source: https://skillmd.com/skills/brokep/tinkabot-wrap-api-as-plugin8 hermes:9 tags: ["tinkabot", "grok-bot", "from-grok-bot-team", "engineering"]10 related_skills: ["tinkabot--prove-plugin-local", "tinkabot--publish-cursor-plugin"]11---1213# wrap-api-as-plugin1415---16name: wrap-api-as-plugin17description: >-18 Use when wrapping an HTTP API, OpenAPI/spec, or "wrap X" into a Cursor/Agent19 Plugin (MCP + skills). Prefer before scaffolding files.20---21# Wrap an API as a plugin2223## Data shape first2425Name the domain type before any files. One line, e.g. `FxQuote = { amount, base, date, rates }` or `PokemonSummary = { id, name, height, weight, types }`.26Organize tools around that shape, not around whatever the upstream JSON dumps.2728## Choose format2930- **Default: Agent Plugin** at repo root: `plugin.json` (`$schema` https://agent-plugins.org/schemas/1.0.0/plugin.schema.json), optional `mcp.json`, `skills/<name>/SKILL.md`.31- **Cursor Plugin** (`.cursor-plugin/plugin.json`) only when you need rules, hooks, agents, or commands.3233Docs: https://cursor.com/docs/plugins and https://cursor.com/docs/reference/plugins3435## Scaffold (smallest)36371. `plugin.json` with `name`, `description`, `version`, `author`.382. If MCP: `mcp.json` with matching Agent Plugins `$schema`, stdio server, `cwd: "${PLUGIN_ROOT}"`, `command`/`args` to the server entry.393. One thin skill whose description says **when** to call the tools. Never invent API data in the skill.404. Public no-auth HTTP: zero-dep stdio MCP (hand-rolled JSON-RPC + `fetch`) until an SDK earns its install.415. Auth APIs: declare plugin `variables` for secrets; put only `${VAR}` placeholders in `mcp.json`. Never commit keys.4243## Repo work4445Non-trivial repo edits go to a CloudAgent. Do not clone product monorepos onto the agent machine for scaffolding.4647## Prove + publish4849Run prove-plugin-local. When the owner wants it listed, run publish-cursor-plugin: ask once if they work at the company/service — yes (or they insist) → Marketplace, no/unsure → cursor.directory. Trust the answer; the approve gate still blocks submit.5051## Do not5253- Submit anywhere without an explicit owner ask + approve gate54- Paste secrets into chat55- Build host-product Slack bot accounts