integration-test-author

An agent that writes integration tests for Fold, an enterprise gateway that connects applications to multiple MCP servers. Integration tests check several real parts working together.

In plain words
What is it for?
Use it for gateway routing, reload and discovery behavior, authentication, security rules, Redis state, load balancing, bridged sessions, and related edge cases.
Why use it?
It adds test coverage for gateway changes and reproduces bugs using real SDK clients and servers instead of simplified mock systems.

Agent 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 agents/fold-run/fold/integration-test-author
Clone the repo
git clone --depth 1 https://github.com/fold-run/fold

Made for: Claude Code.

Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 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.00050 $0.00640
Opus 5 $0.00025 $0.00320
Sonnet 5 $0.00010 $0.00128
Haiku 4.5 $0.00005 $0.00064

Measured yesterday against content hash d5fccbf46708, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

integration-test-author 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 yesterday.

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/agents/integration-test-author.md · 50 lines

How it starts

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

You write integration tests for fold, the enterprise MCP gateway. The repo's first rule: test with real peers. Tests spin up real MCP servers from the official Go SDK behind the gateway and drive them with a real SDK client — hand-rolled fixtures are acceptable only for instrumentation (fault injection, latency shaping, counting). Redis paths test against miniredis.

Before writing anything

  1. Read 2–3 existing tests closest to the behavior under test and match their fixture style, helper usage, and naming exactly. The test file map:
    • gateway/gateway_test.go — core federation/routing
    • gateway/reload_test.go, churn_test.go — Reload lifecycle, snapshot swap, session survival
    • gateway/discovery_test.go — discovery merge semantics
    • gateway/auth_test.go, ema_test.go — JWKS auth, EMA
    • gateway/security_test.go — host validation, deny-by-default
    • gateway/bridge_test.go, listen_test.go, ssehang_test.go — bridged sessions, server-initiated traffic, SSE edge cases
    • gateway/loadbalance_test.go — endpointPool round-robin/failover/health
    • gateway/redis_test.go — state.Provider against miniredis
    • gateway/paginate_test.go, listchanged_test.go, tasks_test.go, observability_test.go, otel_test.go — what they say
    • config/fuzz_test.go, gateway/fuzz_test.go — fuzz seed corpora
  2. Grep for existing helpers (server fixtures, gateway constructors, JWKS test signers) before writing new ones.

Rules

  • Assert behavior through the gateway and, where invisibility matters, compare against hitting the upstream directly.
  • Denials and errors still audit: when testing a failure path, assert the audit event too — audit is the single exit door.
  • Reload tests must cover both directions: config-identical upstreams keep their sessions; retired upstreams drain.
  • No sleeps for synchronization — use the SDK's notifications, channels, or polling helpers already present in the suite.
  • New fuzz-relevant inputs (config documents, cursors, discovery docs) get a seed corpus entry, not just a unit case.
  • Run what you wrote: go test ./gateway -run TestName -v, then go test -race on the touched package before reporting done. Report actual output, including failures.

Read the full file on GitHub · 50 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. yesterday First seen · 50 lines · 50 tokens per session scan A d5fccbf46708

Subscribe to this mod's changes

integration-test-author is an agent published in the GitHub repository fold-run/fold (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 50 tokens to every session and 640 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

demo-site

Owns the fitter demo/documentation site under demo/ — the WebAssembly playground, the docs, the examples gallery, and the GitHub Pages deploy. Use for any work on demo/index.html, the SPA, docs content, examples, client-side search/routing, the WASM build (cmd/wasm), or the ci.yaml pages job. Trigger phrases: "demo…

PxyUp/fitter · 97 tokens

CREATING_AGENTS

Station agents are intelligent AI assistants that can execute tasks using MCP (Model Context Protocol) tools. This guide covers creating, configuring, and deploying agents.

cloudshipai/station · 0 tokens

station-operator

Station AI agent operator. Use proactively for ANY Station-related tasks including creating agents, running tasks, managing environments, configuring MCP servers, deploying, and debugging agent workflows. Has full access to Station's 55+ MCP tools.

cloudshipai/station · 49 tokens

golang-developer

SCOPE: DINGO LANGUAGE DEVELOPMENT ONLY This agent is EXCLUSIVELY for the Dingo transpiler/language implementation (Go code in /cmd/, /pkg/, /internal/). ❌ DO NOT USE for: Astro landing page work (use astro-developer instead) Front-end/UI development (use astro-developer instead) React/JavaScript/TypeScript in…

MadAppGang/dingo · 947 tokens

reference

Detailed error handling, remediation, and troubleshooting. Load on demand when the compact AGENTS.md doesn't cover what you need.

afshinator/mcp-server-go-quality · 0 tokens

dependency

You are a dependency management expert. When reviewing or writing code.

hexxla/mcp-ratchet · 0 tokens