ProSkillsLibraryFreePassScan
Agent Ops

Agent Ops · agent skill

MCP Builder

A small, safe MCP server for your internal API.

What it does

Loads when it is needed

Your agent loads it when the user builds or fixes an MCP server. It carries 5 rules and reads a profile.md with your details before it starts, so the output matches your brand and project.

Same prompt, with and without

Wrap inventory API as MCP tools

Prompt · Wrap our internal inventory REST API as an MCP server so the agent can look up SKUs and check stock. Read-only to start.

Base URL: https://inventory.internal.example/v2 (bearer token, scope inventory:read; limit 60 req/min)
GET /skus?q=&warehouse=&limit=&page=      list, page-based, max limit 100
GET /skus/{sku}                           SKU format: two letters, dash, four digits (AB-1234)
GET /skus/{sku}/stock?warehouse=          on_hand, reserved, as_of
GET /warehouses
POST /skus/{sku}/adjust                   stock adjustment (write)
...14 more endpoints: exports, webhooks, supplier admin
Errors: JSON {"error": "...", "request_id": "..."}; 429 sends Retry-After.
Jobs people want: find a SKU by name, check stock in a warehouse, see a SKU's details.

Profile used: Agents: Claude Code; Project: warehouse inventory service; Stack: TypeScript, Node 20; Team size: 3

Without the skill
Plan for a small read-only MCP server (TypeScript, @modelcontextprotocol/sdk, stdio, zod for schemas). **Tools** (just your three jobs; skip adjust, exports, webhooks and supplier admin): 1. `search_skus` { query?, warehouse?, limit (max 100, default 20), page } -> GET /skus 2. `get_sku` { sku } -> GET /skus/{sku}; validate with `^[A-Z]{2}-\d{4}$` 3. `check_stock` { sku, warehouse? } -> GET /skus/{sku}/stock (on_hand, reserved, as_of; you can add available = on_hand - reserved) 4. `list_warehouses` -> GET /warehouses, so the agent knows valid warehouse values. **Implementation notes** - Token from env var `INVENTORY_TOKEN` (scope inventory:read), never hardcoded or logged. - One `api()` helper using fetch with a timeout. On errors return `isError: true` with the message and request_id. - On 429, wait for Retry-After and retry once; otherwise tell the agent to slow down. A small client-side limiter keeps you under 60 req/min. - Return compact JSON and cap list sizes so results don't flood context. Include pagination info (page, whether more exist). - Write clear tool descriptions with example SKUs. **Register** with `claude mcp add inventory -e INVENTORY_TOKEN=... -- node dist/index.js`. Try it in MCP Inspector first. Leaving write endpoints out is a good first safeguard; add adjust later behind confirmation.
With the skill
Jobs: find a SKU, read one SKU, check stock, name a warehouse: 4 of 18 endpoints. `adjust` (the only write), exports, webhooks and supplier admin are left out on purpose. find_skus (read): q, warehouse?, limit 1-50 (default 20), cursor? -> sku, name, unit, url, next_cursor. For one known SKU use get_sku. get_sku (read): sku, pattern ^[A-Z]{2}-\d{4}$ -> name, unit, supplier, reorder_level. For stock use get_stock. get_stock (read): sku, warehouse? -> on_hand, reserved, available, as_of. list_warehouses (read): id, name, region. Safety: INVENTORY_API_URL and INVENTORY_API_TOKEN read from the environment at startup (clear exit if missing); no URL argument; token never in errors or logs; 15s timeout; client limit 50/min; output capped at 20,000 characters. Errors say what next. 404: "No SKU AB-1234. Use find_skus to search by name." 429: "Rate limited. Retry in 12 seconds. Do not call again before then." 403: "The API rejected the token (403). It may lack inventory:read. Ask the user to check INVENTORY_API_TOKEN." Mock-API tests: bad input, 401/403/404/429/500/timeout, 5,000-row list, cursor round trip, token absent from output. .mcp.json diff, waiting for your yes: + "inventory": { "command": "node", "args": ["dist/server.js"], "env": { "INVENTORY_API_URL": "https://inventory.internal.example/v2", "INVENTORY_API_TOKEN": "${INVENTORY_API_TOKEN}" } }

Both answers from the same model (Claude sonnet), 2026-10-16. The one without the skill was written in a separate session that never saw it. Shortened where marked with …

Install

One command, in your project

It detects your agent; add --agent all for every agent.

npx proskills-cli add mcp-builder --order <order id from your receipt>

Or copy the skill folder (the one holding SKILL.md) into the directory your agent reads, then restart it or start a new session.

AgentThis projectEvery project
Claude Code.claude/skills/~/.claude/skills/
Cursor.agents/skills/ (or .cursor/skills/)~/.cursor/skills/
Codex.agents/skills/~/.agents/skills/
Gemini CLI.agents/skills/ (or .gemini/skills/)~/.gemini/skills/

Changelog

What changed

  • v1.0.0 · 2026-10-16
    • First versioned release: A small, safe MCP server for your internal API.
    • Scanned 100/100 before release.

Keep it current with npx proskills-cli update; your profile.md is never touched. Everyone who bought it gets the update free and an email when it lands.

Same collection

More from Agent Ops

The scan checks spec compliance, token cost, clarity and security patterns. A clean scan is not a guarantee: static scanners can be evaded. Scan any skill yourself.