mcp-dev-environment

mcp-dev-environment is a cursor rule for Cursor from kaminari-ad/mcp. It costs 0 tokens per session (1,019 once invoked), scanned A, original, MIT.

A Docker-based development setup for a TypeScript MCP project. It uses Make commands to run linting, formatting, type checks, tests, security checks, and other quality checks inside Docker.

In plain words
What is it for?
Use it to run the development environment, unit and integration tests, coverage, code checks, dependency audits, and licence checks.
Why use it?
It avoids differences between developers' installed Node.js versions and gives the project one consistent way to run checks.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to run the development environment, unit and integration tests, coverage, code checks, dependency audits, and licence checks.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kaminari-ad/mcp/mcp-dev-environment
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.

Clone the repo
git clone --depth 1 https://github.com/kaminari-ad/mcp

Made for: Cursor.

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 mcp-dev-environment

README.md
[![agentmods](https://agentmods.dev/badge/rules/kaminari-ad/mcp/mcp-dev-environment/github.svg)](https://agentmods.dev/rules/kaminari-ad/mcp/mcp-dev-environment)
Your own site
<a href="https://agentmods.dev/rules/kaminari-ad/mcp/mcp-dev-environment"><img src="https://agentmods.dev/badge/rules/kaminari-ad/mcp/mcp-dev-environment/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 mcp-dev-environment

Your own site · 80×15
<a href="https://agentmods.dev/rules/kaminari-ad/mcp/mcp-dev-environment"><img src="https://agentmods.dev/badge/rules/kaminari-ad/mcp/mcp-dev-environment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,019 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.00000 $0.01019
Opus 5.5 $0.00000 $0.00408
Sonnet 5.5 $0.00000 $0.00204
Haiku 4.5 $0.00000 $0.00102

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

Security

Grade A, and why

mcp-dev-environment 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.

.cursor/rules/mcp-dev-environment.mdc · 105 lines

How it starts

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

Dev Environment — mcp/

Everything runs in Docker

Production runs node:20-alpine in a pinned image. To avoid host-Node version drift, all dev commands execute inside the same image via make (run from mcp/).

cd mcp/

make lint              # eslint --max-warnings 0
make lint-fix          # eslint --fix
make format            # prettier --write
make format-check      # prettier --check
make typecheck         # tsc --noEmit
make test              # vitest run (all suites)
make test-unit         # vitest run tests/unit
make test-integration  # vitest run tests/integration
make test-isolation    # vitest run tests/isolation (mandatory merge gate)
make test-cov          # vitest run --coverage
make check             # everything; ~3 min on first run

# Architecture / quality gates (run inside `make check`)
make check-file-sizes
make check-imports
make check-shared-state
make check-tool-naming

# Security
make audit             # npm audit --audit-level=moderate
make license-check     # license-checker, MIT/Apache/BSD/ISC whitelist

Rules:

  • NEVER run tsc, eslint, vitest, or node directly on the host. Use make. (You may run them via your IDE for inline feedback; commit-time validation is make check.)
  • NEVER install project dependencies on host Node. The Docker image owns node_modules via a named volume.
  • Use make build to rebuild the image after dependency changes.

Dependency management — npm

make install           # npm ci (or npm install if no lockfile)
# Manual deps still go through docker-compose run
docker compose -f docker-compose.dev.yml run --rm mcp-dev npm install <pkg>
docker compose -f docker-compose.dev.yml run --rm mcp-dev npm install --save-dev <pkg>

.npmrc enforces save-exact=true. Always commit package.json AND package-lock.json.

Secrets & .env

  • .env in mcp/ root, gitignored.
  • .env.example documents every var with safe defaults.
  • The TypeScript Config schema (src/shared/config.ts, zod-based) is the ONLY way src/ reads env vars. Direct process.env.X outside Config is a code-review blocker.

Read the full file on GitHub · 105 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 First seen · 105 lines · 0 tokens per session scan A f6429cd16bb3

Subscribe to this mod's changes

mcp-dev-environment is a cursor rule published in the GitHub repository kaminari-ad/mcp (0 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,019 tokens. 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-11-05.