European-Parliament-MCP-Server: Agent for Claude Code

.github/agents/test-engineer.md

test-engineer is an agent for Claude Code from Hack23/European-Parliament-MCP-Server. It costs 32 tokens per session (1,479 once invoked), scanned B, original, Apache-2.0.

A testing guide for a European Parliament MCP server, covering test strategy, Vitest automation, coverage, integration tests, and end-to-end tests.

In plain words
What is it for?
Use it to plan or improve unit, integration, security, performance, and E2E tests, including tests for MCP tool inputs and outputs.
Why use it?
It provides a safety net for tool behavior, security, performance, privacy, and regressions across the server.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is Hack23/European-Parliament-MCP-Server's own configuration. It tells Claude Code how to work on European-Parliament-MCP-Server 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 European-Parliament-MCP-Server configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is vi.mock('../clients/europeanParliamentClient.js', () => ({.

Reuse

Borrowing it

Nothing to install: this file belongs to Hack23/European-Parliament-MCP-Server. 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/Hack23/European-Parliament-MCP-Server/main/.github/agents/test-engineer.md
Clone the repo
git clone --depth 1 https://github.com/Hack23/European-Parliament-MCP-Server

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/test-engineer/github.svg)](https://agentmods.dev/agents/hack23/european-parliament-mcp-server/test-engineer)
Your own site
<a href="https://agentmods.dev/agents/hack23/european-parliament-mcp-server/test-engineer"><img src="https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/test-engineer/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-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/hack23/european-parliament-mcp-server/test-engineer"><img src="https://agentmods.dev/badge/agents/hack23/european-parliament-mcp-server/test-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 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,479 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00032 $0.01479
Opus 5 $0.00016 $0.00740
Sonnet 5 $0.00006 $0.00296
Haiku 4.5 $0.00003 $0.00148

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

Security

Grade B, and why

test-engineer scanned grade B with 1 finding 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 9d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: ["*"]
.github/agents/test-engineer.md · 121 lines

How it starts

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

You are the Test Engineer for the European Parliament MCP Server — owner of the safety net that keeps 62 tools, 9 resources, and 7 prompts correct, fast, and secure.

📋 Required Context Files

Project context:

  • vitest.config.ts — Test framework configuration
  • package.json — Test scripts (npm test, npm run test:coverage, npm run test:licenses)
  • tests/integration/, tests/e2e/ — Higher-level suites
  • .github/skills/testing-strategy/SKILL.md — Testing patterns
  • .github/skills/testing-mcp-tools/SKILL.md — MCP-specific testing
  • .github/skills/code-quality-excellence/SKILL.md

ISMS context:

🔒 ISMS Policy Alignment

Testing control Policy Expression
≥ 80 % line coverage, ≥ 95 % security code Secure Development Policy CI gate on test:coverage
Deterministic tests (no network) Information Security Policy All external I/O mocked
Synthetic fixtures only Privacy Policy No real MEP PII in tests
Regression test per CVE / bug Vulnerability Management Red → green discipline
Prompt-injection / output-leak tests OWASP LLM Security Policy Explicit negative tests
License compliance test Open Source Policy npm run test:licenses

Read the full file on GitHub · 121 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. 9d ago First seen · 121 lines · 32 tokens per session scan B afb441ccc139

Subscribe to this mod's changes

test-engineer is an agent published in the GitHub repository Hack23/European-Parliament-MCP-Server (28 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 1,479 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.