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 mendixlabs/mxcli --skill mock-rest-apisgit clone --depth 1 https://github.com/mendixlabs/mxcliWrote 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/mendixlabs/mxcli/mock-rest-apis)<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.
<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>- NVIDIA SkillSpector warn
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.
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.00076 | $0.02761 |
| Opus 5.5 | $0.00030 | $0.01104 |
| Sonnet 5.5 | $0.00015 | $0.00552 |
| Haiku 4.5 | $0.00008 | $0.00276 |
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? 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 CALLmicroflow 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.
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.
- 1mo ago Changed · +17 lines 0fa94c4a3e05
- 1mo ago Changed 681178b622eb
- 1mo ago Changed · +2 lines 0c657480ba6f
- 2mo ago Changed 54cec5312015
- 3mo ago First seen · 200 lines · 76 tokens per session scan A 0977dd0c400e
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.
mock-rest-apis compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mock-rest-apismendixlabs/mxcli | Skill | 145 | yesterday | Apache-2.0 | A | 76 | Claude Code |
| golang-manual-disoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 97 | Claude Code, Codex |
| terraform-infrastructuresoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 96 | Claude Code, Codex |
| microservices-architecturesoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 61 | Claude Code, Codex |
| nosql-database-designsoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 71 | Claude Code, Codex |
| health-check-endpointssoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 58 | Claude Code, Codex |
| serverless-architecturesoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 62 | Claude Code, Codex |