rohlik-mcp: Skill for Claude Code

.claude/skills/test-mcp/SKILL.md

test-mcp is a skill for Claude Code from tomaspavlin/rohlik-mcp. It costs 41 tokens per session (543 once invoked), scanned A, original, MIT.

A testing guide for building and checking MCP tools, which let an agent call external services through a standard tool interface. It covers direct API calls, response checking, debugging, and MCP Inspector testing.

In plain words
What is it for?
Use it to build the project, inspect raw API responses, verify tool output, and investigate or debug MCP endpoints.
Why use it?
It helps reveal what an API actually returns and catches incorrect or missing field mappings after tool changes. This reduces guesswork when a tool behaves unexpectedly.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

This is tomaspavlin/rohlik-mcp's own configuration. It tells Claude Code how to work on rohlik-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything rohlik-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tomaspavlin/rohlik-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tomaspavlin/rohlik-mcp/main/.claude/skills/test-mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tomaspavlin/rohlik-mcp

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 test-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomaspavlin/rohlik-mcp/test-mcp/github.svg)](https://agentmods.dev/skills/tomaspavlin/rohlik-mcp/test-mcp)
Your own site
<a href="https://agentmods.dev/skills/tomaspavlin/rohlik-mcp/test-mcp"><img src="https://agentmods.dev/badge/skills/tomaspavlin/rohlik-mcp/test-mcp/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 test-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomaspavlin/rohlik-mcp/test-mcp"><img src="https://agentmods.dev/badge/skills/tomaspavlin/rohlik-mcp/test-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 543 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.00041 $0.00543
Opus 5 $0.00020 $0.00271
Sonnet 5 $0.00008 $0.00109
Haiku 4.5 $0.00004 $0.00054

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

Security

Grade A, and why

test-mcp 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 10d 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.

.claude/skills/test-mcp/SKILL.md · 61 lines

What it actually says

Testing MCP Tools

Use this skill whenever you need to:

  • Investigate what an API endpoint returns (e.g. before updating a tool's field mappings)
  • Verify that tool changes correctly map API response fields
  • Debug why a tool returns wrong or missing data
  • Test tool changes after implementation

1. Build the project

Run npm run build to compile TypeScript. Fix any compilation errors before proceeding.

2. Call the API directly

Call API methods directly using Node with the .env file for credentials:

node --env-file=.env --input-type=module -e "
import { RohlikAPI } from './dist/rohlik-api.js';
const api = new RohlikAPI({ username: process.env.ROHLIK_USERNAME, password: process.env.ROHLIK_PASSWORD });
const result = await api.methodName(args);
console.log(JSON.stringify(result, null, 2));
"

Replace methodName and args with the appropriate API method. Check src/rohlik-api.ts for available methods.

This lets you inspect the raw API response shape to understand what fields are available, verify field names, and confirm your tool's output matches the actual data.

3. MCP Inspector (manual testing)

If the user wants to test the full MCP tool flow (not just the API), tell them to run npm run inspect in a separate terminal. The Inspector provides a web UI to invoke individual MCP tools with custom arguments.

If the user provides a specific tool name via $ARGUMENTS, suggest they test that tool.

4. Debugging with console.error

MCP servers communicate over stdout (used for the JSON-RPC protocol), so console.log output is invisible in the Inspector.

Always use console.error for debug logging. It writes to stderr, which is visible in the terminal where the Inspector was launched.

Example:

console.error('[ROHLIK_DEBUG] Response:', JSON.stringify(response, null, 2));

Remember to remove debug logging before committing.

5. Unit tests

For logic-only changes (no API calls), run npm test to execute unit tests. Use npm run test:watch during development.

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. 10d ago First seen · 61 lines · 41 tokens per session scan A d363f72be97e

Subscribe to this mod's changes

test-mcp is a skill published in the GitHub repository tomaspavlin/rohlik-mcp (120 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 543 once invoked, about $0.0002 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-30.