test

test is a command for Claude Code from Matt-Dionis/claude-code-configs. It costs 7 tokens per session (1,608 once invoked), scanned A, original, MIT.

A test-generation command for a Memory MCP Server. It creates tests for the MCP protocol, input validation, database-backed memory operations, embeddings, and vector similarity search.

In plain words
What is it for?
Use it to test JSON-RPC requests, required parameters, memory creation and updates, similarity thresholds, result limits, empty searches, and API failure handling.
Why use it?
It reduces the chance that changes break request handling, error responses, memory storage, search results, or failures from external services.

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/matt-dionis/claude-code-configs/test
Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/test.svg)](https://agentmods.dev/commands/matt-dionis/claude-code-configs/test)
Your own site
<a href="https://agentmods.dev/commands/matt-dionis/claude-code-configs/test"><img src="https://agentmods.dev/badge/commands/matt-dionis/claude-code-configs/test.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,608 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 $0.00007 $0.01608
Opus 5 $0.00003 $0.00804
Sonnet 5 $0.00001 $0.00322
Haiku 4.5 $0.00001 $0.00161

Measured 4d ago against content hash 929b976955d3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 4d 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.

configurations/mcp-servers/memory-mcp-server/.claude/commands/test.md · 306 lines

How it starts

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

Memory MCP Server Test Generation

Generate comprehensive test cases for $ARGUMENTS with focus on MCP protocol compliance and memory operations:

Unit Tests

MCP Protocol Tests

// Test MCP message handling
describe('MCP Protocol', () => {
  it('should handle JSON-RPC 2.0 requests', async () => {
    // Test request with id
    // Test notification without id
    // Test batch requests
  });
  
  it('should return proper error codes', async () => {
    // -32700: Parse error
    // -32600: Invalid request
    // -32601: Method not found
    // -32602: Invalid params
    // -32603: Internal error
  });
  
  it('should validate tool parameters with Zod', async () => {
    // Test required fields
    // Test type validation
    // Test nested schemas
  });
});

Memory Operations Tests

// Test memory CRUD operations
describe('Memory Operations', () => {
  it('should create memory with embeddings', async () => {
    // Test successful creation
    // Test OpenAI API failure handling
    // Test vector dimension validation
  });
  
  it('should perform vector similarity search', async () => {
    // Test similarity threshold
    // Test result limit
    // Test empty results
    // Test index usage
  });
  
  it('should handle memory lifecycle', async () => {
    // Test expiration
    // Test archival
    // Test soft delete
    // Test importance decay
  });
  
  it('should consolidate memories', async () => {
    // Test deduplication
    // Test summarization
    // Test relationship creation
  });
});

Database Tests

// Test database operations
describe('Database Operations', () => {
  it('should handle transactions', async () => {
    // Test commit on success
    // Test rollback on error
    // Test isolation levels
  });
  
  it('should use pgvector correctly', async () => {
    // Test vector operations
    // Test distance calculations
    // Test index scans
  });
  
  it('should maintain referential integrity', async () => {
    // Test foreign keys
    // Test cascade deletes
    // Test orphan prevention
  });
});

Read the full file on GitHub · 306 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. 4d ago First seen · 306 lines · 7 tokens per session scan A 929b976955d3

Subscribe to this mod's changes

test is a command published in the GitHub repository Matt-Dionis/claude-code-configs (625 stars, last pushed 1y ago), licensed MIT. It adds 7 tokens to every session and 1,608 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.