mock-rest-apis

mock-rest-apis is a skill for Claude Code from mendixlabs/mxcli. It costs 76 tokens per session (2,761 once invoked), scanned A, original, Apache-2.0.

A way to replace a live third-party REST API with an HTTP endpoint you control. REST is a common way for applications to exchange data over HTTP; the mock can follow an OpenAPI contract, return fixed data, or forward requests.

In plain words
What is it for?
Use it while building or debugging Mendix REST integrations, testing error handling, running browser or microflow tests offline, and using the app in continuous integration.
Why use it?
It removes network access, rate limits, credentials, and changing third-party responses from development and tests. You can reproduce payload bugs and error responses such as 404, 500, timeouts, or 401 errors.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it while building or debugging Mendix REST integrations, testing error handling, running browser or microflow tests offline, and using the app in continuous integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mendixlabs/mxcli/mock-rest-apis
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 mendixlabs/mxcli --skill mock-rest-apis
Clone the repo
git clone --depth 1 https://github.com/mendixlabs/mxcli

Made for: Claude Code.

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 mock-rest-apis

README.md
[![agentmods](https://agentmods.dev/badge/skills/mendixlabs/mxcli/mock-rest-apis/github.svg)](https://agentmods.dev/skills/mendixlabs/mxcli/mock-rest-apis)
Your own site
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/mock-rest-apis"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/mock-rest-apis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mock-rest-apis

Your own site · 80×15
<a href="https://agentmods.dev/skills/mendixlabs/mxcli/mock-rest-apis"><img src="https://agentmods.dev/badge/skills/mendixlabs/mxcli/mock-rest-apis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 48
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00076 $0.02761
Opus 5.5 $0.00030 $0.01104
Sonnet 5.5 $0.00015 $0.00552
Haiku 4.5 $0.00008 $0.00276

Measured 1mo ago against content hash 0fa94c4a3e05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mock-rest-apis scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sS -i http://127.0.0.1:4020/rates # 200 + the example payload?
.claude/skills/mendix/mock-rest-apis/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Find it fast

sed -n '<from>,<to>p' SKILL.md one section rather than reading the file; ./mxcli syntax <topic> answers how do I write this for a fraction of either.

lines section
34-41 When to Use This Skill
42-54 Two separate problems
55-117 1. Point the app at the mock
118-156 2. Prism: serve an OpenAPI contract as a mock
157-186 3. Forward proxy: when the model cannot change
187-199 Verify the mock before blaming Mendix
200-211 Failure modes, symptoms first
212-218 Related Skills

Mock REST APIs Skill

Use this skill when a REST integration needs an endpoint you control instead of a live third-party API — while building it, while reproducing a bug, or while verifying the app in a browser or a test run.

Developing against the real API means network, rate limits, credentials, and a payload that can change under you. None of that is where Mendix integration defects live: those are in the mapping, the entity types, the error handler, and the BSON. A mock removes the variables that are not the bug.

When to Use This Skill

  • Building a REST client or REST CALL microflow before (or without) real credentials
  • Reproducing a payload-shaped bug deterministically — a shape small enough to read, that behaves the same on every run
  • Exercising error paths: 404, 500, a timeout, a 401 from missing auth
  • Verifying the app (test-app) or running a suite (test-microflows) offline or in CI
  • Redirecting the outbound calls of an app whose model you must not edit

Two separate problems

Almost every wasted hour here comes from conflating them:

Problem Answer
Something must answer the request A mock server: Prism (from a contract), WireMock, mitmproxy
The app must send the request there A constant, a BaseUrl, or a forward proxy — see below

A mock server is not an interceptor. Prism serves one contract at one port and answers only clients that address it. Asking it to "catch all calls the app already makes" is a category error — that is the forward-proxy job, further down.

Read the full file on GitHub · 219 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. 1mo ago Changed · +17 lines 0fa94c4a3e05
  2. 1mo ago Changed 681178b622eb
  3. 1mo ago Changed · +2 lines 0c657480ba6f
  4. 2mo ago Changed 54cec5312015
  5. 3mo ago First seen · 200 lines · 76 tokens per session scan A 0977dd0c400e

Subscribe to this mod's changes

mock-rest-apis is a skill published in the GitHub repository mendixlabs/mxcli (145 stars, last pushed yesterday), licensed Apache-2.0. It adds 76 tokens to every session and 2,761 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mock-rest-apis compared with skills from other repositories

mock-rest-apis next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mock-rest-apismendixlabs/mxcliSkill145yesterdayApache-2.0A76Claude Code
golang-manual-disoulcodex/agenticSkill1010d agoMITA97Claude Code, Codex
terraform-infrastructuresoulcodex/agenticSkill1010d agoMITA96Claude Code, Codex
microservices-architecturesoulcodex/agenticSkill1010d agoMITA61Claude Code, Codex
nosql-database-designsoulcodex/agenticSkill1010d agoMITA71Claude Code, Codex
health-check-endpointssoulcodex/agenticSkill1010d agoMITA58Claude Code, Codex
serverless-architecturesoulcodex/agenticSkill1010d agoMITA62Claude Code, Codex