test-tools

test-tools is a command for Claude Code from utensils/mcp-nixos. It costs 9 tokens per session (4,389 once invoked), scanned A, original, MIT.

A command that runs a complete test plan for MCP NixOS Tools, a project that lets an agent query information about the NixOS operating system. It divides the tests into eight groups and runs them in parallel through subagents.

In plain words
What is it for?
Use it to test NixOS searches, including valid and nonexistent queries, dotted package names, and other cases listed in its test plan.
Why use it?
It checks the tool across package, option, program, channel, and related queries instead of relying on a few manual checks, then collects every result in one summary.

Command for Claude Code

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.

agentmods
npx agentmods add commands/utensils/mcp-nixos/test-tools
Clone the repo
git clone --depth 1 https://github.com/utensils/mcp-nixos

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-tools

README.md
[![agentmods](https://agentmods.dev/badge/commands/utensils/mcp-nixos/test-tools.svg)](https://agentmods.dev/commands/utensils/mcp-nixos/test-tools)
Your own site
<a href="https://agentmods.dev/commands/utensils/mcp-nixos/test-tools"><img src="https://agentmods.dev/badge/commands/utensils/mcp-nixos/test-tools.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,389 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00009 $0.04389
Opus 5 $0.00005 $0.02194
Sonnet 5 $0.00002 $0.00878
Haiku 4.5 $0.00001 $0.00439

Measured today against content hash 567b4373389b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

test-tools 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.

.claude/commands/test-tools.md · 435 lines

How it starts

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

Test MCP NixOS Tools

CRITICAL INSTRUCTIONS:

  1. You MUST dispatch ALL test groups below to subagents running IN PARALLEL
  2. Each subagent MUST run EVERY test in its assigned group - no skipping
  3. After ALL subagents complete, compile a SINGLE summary table with pass/fail for EVERY test
  4. Do NOT stop early - all 8 test groups must be executed

Dispatch Strategy

Launch these 8 subagents IN PARALLEL (single message with multiple Task tool calls):


Group 1: Core NixOS Source Tests

Subagent prompt:

Test the mcp__nixos__nix tool for the core NixOS source. Run EVERY test below and record pass/fail:

SEARCH:
- action=search, source=nixos, type=packages, query=firefox
- action=search, source=nixos, type=options, query=nginx
- action=search, source=nixos, type=programs, query=vim, limit=3
- action=search, source=nixos, channel=stable, query=firefox, limit=3
- action=search, source=nixos, query=xyznonexistent12345 (expect "No packages found")

DOTTED/NAMESPACED PACKAGE SEARCH (issue #118 regression):
- action=search, source=nixos, type=packages, query=kdePackages.qt6ct (expect results containing qt6ct)
- action=search, source=nixos, type=packages, query=python314Packages.matplotlib (expect results containing matplotlib)
- action=search, source=nixos, type=packages, query=rocmPackages.clang (expect results containing clang)
- action=search, source=nixos, type=packages, query=llvmPackages_22.systemLibcxxClang (expect results; may match clang variants)
- action=search, source=nixos, type=packages, query=flang (expect exact match - control test)

INFO:
- action=info, source=nixos, type=package, query=firefox
- action=info, source=nixos, type=option, query=services.nginx.enable
- action=info, source=nixos, query=nonexistentpkg123 (expect NOT_FOUND)
- action=info, source=nixos, type=package, query=kdePackages.qt6ct (issue #118: should find qt6ct via attr path)
- action=info, source=nixos, type=package, query=qt6ct (should show attribute path in output)

STATS:
- action=stats, source=nixos

CHANNELS:
- action=channels

Return a markdown table with Test | Expected | Actual | Status (PASS/FAIL) for each test.

Read the full file on GitHub · 435 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. today Changed 567b4373389b
  2. 6d ago First seen · 435 lines · 9 tokens per session scan A 5baa32ef0a5b

Subscribe to this mod's changes

test-tools is a command published in the GitHub repository utensils/mcp-nixos (823 stars, last pushed today), licensed MIT. It adds 9 tokens to every session and 4,389 once invoked, about $0.0000 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.