mcpp-test

mcpp-test is a skill for Claude Code, Codex from mcpp-community/mcpp. It costs 30 tokens per session (427 once invoked), scanned A, original, Apache-2.0.

A test command that builds and runs the C++ test programs in an mcpp project. It can select programs or individual cases and report results as newline-separated JSON records.

In plain words
What is it for?
Use it to run all tests or selected tests, filter cases, inspect machine-readable results, rerun failures, or build tests for another machine without running them there.
Why use it?
It removes the need to build and invoke each test program manually. It also supports rerunning failed tests, splitting tests into groups, and stopping tests that run too long.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run all tests or selected tests, filter cases, inspect machine-readable results, rerun failures, or build tests for another machine without running them there.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mcpp-community/mcpp/mcpp-test"><img src="https://agentmods.dev/badge/skills/mcpp-community/mcpp/mcpp-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 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.00030 $0.00427
Opus 5.5 $0.00012 $0.00171
Sonnet 5.5 $0.00006 $0.00085
Haiku 4.5 $0.00003 $0.00043

Measured today against content hash 408594caf703, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcpp-test 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 today.

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.

docs/mcpp-skills/mcpp-test/SKILL.md · 55 lines

What it actually says

mcpp test

Builds every tests/**/*.cpp as a test program and runs it. Arguments after -- reach each test program.

Examples

mcpp test
mcpp test unit/math
mcpp test unit/math -- --gtest_filter=Math.Adds
mcpp test --list
mcpp test --failed
mcpp test --case "parser/*"
mcpp test --message-format json
mcpp test --since origin/main
mcpp test --shard 1/4
mcpp test --target aarch64-linux-musl --no-run --archive tests.tar

A pattern selects test programs by path. --case selects the cases of a program that speaks the test protocol (mtest); other frameworks take their own filter after --.

Reads, writes, network

What mcpp build reads and writes; the run's results are kept in the project's store, which --failed and --shard read.

Results

--message-format json writes one NDJSON record per test and a summary per member. Exit 0: every test passed; 1: a test failed; 2: a test could not run. --timeout SECS kills a test still running (default 300).

Refusals

  • No test matches the pattern: mcpp test --list lists them.
  • Everything mcpp build refuses.

Waits

As mcpp build; --lock-wait bounds it.

  • mcpp build builds the tests' code; mcpp run starts one program.
  • mcpp add --dev adds a test framework (compat.gtest, mcpplibs.mtest).
  • mcpp why flags states how a test was compiled.
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. today First seen · 55 lines · 30 tokens per session scan A 408594caf703

Subscribe to this mod's changes

mcpp-test is a skill published in the GitHub repository mcpp-community/mcpp (220 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 5.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-12-06.

Related

mcpp-test compared with skills from other repositories

mcpp-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcpp-testmcpp-community/mcppSkill220todayApache-2.0A30Claude Code, Codex
readable-cppcrazyguitar/cppcheatsheetSkill2972d agoMITA63Claude Code
cppcrazyguitar/cppcheatsheetSkill2972d agoMITA0Claude Code
llama-cppgraniet/kheishSkill20928d agoApache-2.0A71Claude Code, Codex
zoom-meeting-sdk-unrealanthropics/knowledge-work-pluginsSkill38kyesterdayApache-2.0A41Claude Code
cudnn-installNVIDIA/skillsSkill4.4ktodayApache-2.0A49Claude Code, Codex
ccclNVIDIA/skillsSkill4.4ktodayApache-2.0A206Claude Code, Codex