Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Mit Google anmelden, um Bewertungen zu schreiben.Prototyp · alle 30 Min. aktualisiert
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

ctxcap

von Naeha-SVersion 0.1.4i★ 0iLäuft auf deinem Computer
Name in der Registryio.github.Naeha-S/ctxcap

So installierst du es

What it does

Offline context-budget MCP server for AI coding agents.

  • Connects Läuft auf deinem Computer
  • Account or key No key needed
  • Category Entwicklertools

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

3/3 Prüfungen bestanden · Läuft auf deinem Computer · ✓ Befehle geprüft am 13. Nov. 2026

Zuerst: Welche KI nutzt du?

Wähle deine App, dann erscheinen die Schritte unten.

Klappt mit Claude, aber erst etwas vorbereiten

Installiere zuerst Node.js auf deinem Computer (nur einmal) · Nur in der Claude-App für den Computer (Windows oder Mac), nicht im Web oder auf dem Handy

  1. Node.js installieren

    Nur einmal; gilt für alle Server, die Node.js brauchen

    Download-Seite von Node.js öffnen ↗

  2. Einstellungsdatei der Claude-Desktop-App öffnen

    SettingsDeveloperEdit Config

  3. Diese Einstellungen einfügen und speichern

    {
      "mcpServers": {
        "ctxcap": {
          "command": "npx",
          "args": [
            "-y",
            "ctxcap-mcp"
          ]
        }
      }
    }
  4. Claude beenden und neu öffnen

  5. Ausprobieren

    Nutze ctxcap und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Claude sagt, dass es ctxcap nutzt, oder ein Werkzeug von ctxcap in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Anthropic abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

ChatGPT kann ctxcap noch nicht verbinden

ctxcap läuft auf deinem Computer, aber ChatGPT verbindet nur Server, die im Web laufen

Das kannst du stattdessen tun

A · Eine App nutzen, die ctxcap verbinden kann

  • Installiere zuerst Node.js auf deinem Computer (nur einmal) · Nur in der Claude-App für den Computer (Windows oder Mac), nicht im Web oder auf dem Handy
  • Installiere zuerst Node.js auf deinem Computer (nur einmal)
  • Installiere zuerst Node.js auf deinem Computer (nur einmal)
  • Installiere zuerst Node.js auf deinem Computer (nur einmal)

B · Andere in Entwicklertools, die mit ChatGPT funktionieren

Aus den meistgenutzten derselben Kategorie, nur solche, die per Adresse ohne Schlüssel verbinden

Klappt mit Claude Code, aber erst etwas vorbereiten

Installiere zuerst Node.js auf deinem Computer (nur einmal)

  1. Node.js installieren

    Nur einmal; gilt für alle Server, die Node.js brauchen

    Download-Seite von Node.js öffnen ↗

  2. Terminal öffnen

    Mac: Command+Leertaste drücken und Terminal tippen · Windows: PowerShell öffnen

  3. Diesen Befehl einfügen und Enter drücken

    claude mcp add --scope user ctxcap -- npx -y ctxcap-mcp
  4. /mcp in Claude Code eingeben

    ctxcap sollte in der Liste als verbunden erscheinen

  5. Ausprobieren

    Nutze ctxcap und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Claude Code sagt, dass es ctxcap nutzt, oder ein Werkzeug von ctxcap in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Anthropic abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Klappt mit Cursor, aber erst etwas vorbereiten

Installiere zuerst Node.js auf deinem Computer (nur einmal)

  1. Node.js installieren

    Nur einmal; gilt für alle Server, die Node.js brauchen

    Download-Seite von Node.js öffnen ↗

  2. Mit diesem Button Cursor öffnen

    In Cursor öffnen

    Cursor fragt nach einer Bestätigung; klicke Install

  3. KI-Chat in Cursor im Agent-Modus öffnen

  4. Ausprobieren

    Nutze ctxcap und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn Cursor sagt, dass es ctxcap nutzt, oder ein Werkzeug von ctxcap in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von Cursor abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Klappt mit VS Code, aber erst etwas vorbereiten

Installiere zuerst Node.js auf deinem Computer (nur einmal)

  1. Node.js installieren

    Nur einmal; gilt für alle Server, die Node.js brauchen

    Download-Seite von Node.js öffnen ↗

  2. Mit diesem Button VS Code öffnen

    In VS Code öffnen

    VS Code fragt nach einer Bestätigung; klicke Install

  3. KI-Chat in VS Code im Agent-Modus öffnen

  4. Ausprobieren

    Nutze ctxcap und sag mir, was du für mich tun kannst; zeig mir dann eine Sache

    ✓ Wenn VS Code sagt, dass es ctxcap nutzt, oder ein Werkzeug von ctxcap in der Antwort zeigt, bist du verbunden

Menünamen am 11. Nov. 2026 mit der Hilfe von VS Code abgeglichen · dein Bildschirm kann je nach App-Version leicht abweichen

Andere Apps mit MCP, etwa Windsurf, Zed oder Gemini CLI, fügen Server unterschiedlich hinzu. Sieh in der App-Liste nach

Alle Apps mit MCP ansehen →

JSON-Einstellungen stehen unten unter „Für Entwickler“

Hängst du fest? Frag Leute, die ctxcap nutzen💬 Diskussion →
Für Entwickler: Terminal-Befehle und JSON-Einstellungen

Auf deinem Computer installiert

Claude Code

claude mcp add --scope user ctxcap -- npx -y ctxcap-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "ctxcap": {
      "command": "npx",
      "args": [
        "-y",
        "ctxcap-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "ctxcap": {
      "command": "npx",
      "args": [
        "-y",
        "ctxcap-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "ctxcap": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "ctxcap-mcp"
      ]
    }
  }
}

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Auf einen Blick

Downloads pro Wochei
Nicht auf npm/PyPI
Verbindung
Läuft auf deinem Computer
Neueste Versioni
0.1.4
In der Registry veröffentlichti
13. Nov. 2026
Code zuletzt geänderti
13. Nov. 2026
Entwickler
Naeha-S
Pakete
npm: ctxcap-mcp
Website
github.com
Registry-Status
Aktiv

Welche Apps ihn nutzen können

Basierend darauf, wie sich dieser Server verbindet, und auf der eigenen Doku jeder App, geprüft am 10. Nov. 2026.

Laufen auf deinem Computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

Alle Apps, mit Vor- und Nachteilen →

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 13. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto Naeha-S bestätigt, dem das Repo gehört

  • ✓ Bestanden

    Wird noch gepflegt

    Code zuletzt geändert: heute

  • ✓ Bestanden

    Hat eine Lizenz

    Nutzt MIT

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Diskussion

Fragen, Tipps teilen oder melden, dass etwas nicht geht. Sortiert nach „hilfreich“.

Noch keine Beiträge. Stell die erste Frage oder teile einen Tipp.

Beiträge hier stammen von Nutzern, nicht vom PopNx-Team.

Mit Google anmelden, um zu posten

Nutzerbewertungen

Noch keine Bewertungen

Mit Google anmelden, um zu bewerten

Im Vergleich mit anderen in Entwicklertoolsi

  • Mehr Sterne als 0 % der anderen 5839 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 99 % der anderen 5839 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 5839 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist ctxcap sicher?

Er hat 3 von 3 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt heute geändert, und die neueste Version (0.1.4) kam heute in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: REA, GitHub, Serena MCP: the IDE for your agent

Andere in derselben Kategorie

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

von morlutoWeit verbreitet↓ 388.706/Wo.★ 455.411Aktualisiert gestern

Läuft auf deinem Computer

GitHub

Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

von githubWeit verbreitet★ 34.415Aktualisiert vor 10 Tagen

Computer oder Cloud

Serena MCP: the IDE for your agent

A powerful toolkit for coding, providing semantic retrieval and editing capabilities.

von oraiosWeit verbreitet↓ 35.170/Wo.★ 31.336Aktualisiert vor 6 Monaten

Läuft auf deinem Computer

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

ctxcap

Offline token-budget linter for agent context files. It measures CLAUDE.md, AGENTS.md, prompts/**, and .cursor/rules/**, finds references that no longer resolve, and hands your agent a ranked, verifiable plan to get back under budget.

No config, API key, network, or telemetry. Node >= 20. Two runtime dependencies: fast-glob and gpt-tokenizer.

npx ctxcap --json

The loop

Context files get trimmed by agents badly: the agent rewrites the file from memory, drops the ## Never rules, hits the budget, and ships a worse file. ctxcap closes that loop with line ranges, safety flags, and verification.

npx ctxcap --plan --budget 40000              # ranked plan, JSON

npx ctxcap --plan --budget 40000 --apply # splice atomically npx ctxcap --verify # catch drift and violations

Three rules for the agent:

  1. Splice by startLine/endLine. Never rewrite a file from scratch.
  2. Never cut a span listed in preserve.
  3. If satisfiable is false, report minAchievable and stop.
Where plans live

CLI plans are written to .ctxcap/plans/ .json. Add .ctxcap/ to .gitignore; plans are local working state, not source. Plans expire after 24 hours. If a plan is missing or expired, verification returns the structured PLAN_EXPIRED error and you should generate a new plan. Run --apply on a clean tree, then review with git diff before committing. Do not run --apply in CI.

Agents can fetch the five-line loop from llms.txt.

Before and after

This is a real measurement from the ctxcap repository itself:

$ npx ctxcap --json

total: 476 baseline: 363 delta: +113 files: 2

$ npx ctxcap --plan --budget 400 satisfiable: false current: 476 minAchievable: 476 tokensRemaining: 76 plan: [] preserve: AGENTS.md:19-20, llms.txt:17-30

The result correctly stops instead of cutting load-bearing instructions. For a successful before/after case study, use a public repository with a larger context file and publish the commit, JSON reports, plan, and verification result together.

To publish a reproducible case study, include the repository commit, the ctxcap --json report before and after, the plan JSON, and the verification result. This makes the reclaim measurable and lets readers reproduce it.

Context can be stale as well as large. Run the dead-reference pass to find paths, commands, globs, and @path/#path references that no longer resolve:

npx -y ctxcap --stale --json

It reports reclaimable tokens and emits inline SARIF annotations with --sarif. Use --fail-on stale to gate CI, or --stale-fix to print a deletion diff without modifying files.

The stale pass skips fenced code blocks and suspicious tokens containing ~, $, ://, or <. Add to a line to suppress that line. --stale-fix prints a deletion diff; there is deliberately no --stale --apply mode.

Why

Agent context files — CLAUDE.md, AGENTS.md, prompts/**, .cursor/rules/ — grow every sprint. They get pasted into every request and silently burn your context window. Nothing gates them at the repo level.

ctxcap fixes that: it measures context files, tracks token deltas against a committed baseline, finds stale references, produces ranked plans, verifies edits, fails CI when you define a budget, and exposes an MCP server so agents can check themselves.

How this differs from tokenlint

tokenlint hooks your editor and reminds you per turn about wasteful habits. ctxcap gates the repo: it measures context files against a committed baseline, reports the delta on every PR, and fails only when you ask it to. Different layer — CI and review, not keystrokes.

No baseline, stale-reference pass, ranked plan, verify step, SARIF, or MCP surface there. If you want per-turn nudges inside Claude Code, use theirs; if you want a gate on prompts/**, use this.

Install

npm i -D ctxcap

npx ctxcap --update-baseline

Or run without installing:

npx -y ctxcap --json

Test another repository

Run the unpinned latest ctxcap from the repository you want to inspect. It reads the current working directory, so no files need to be copied into the ctxcap repository:

cd path/to/your-repo

npx ctxcap --json npx ctxcap --stale --json npx ctxcap --plan --budget 40000

Use the pinned version in release checks or reproducible CI. For a real edit loop, review the plan, apply it, then verify the saved plan:

npx -y ctxcap@1.2.0 --plan --budget 40000

npx -y ctxcap@1.2.0 --plan --budget 40000 --apply npx -y ctxcap@1.2.0 --verify

Start with a baseline when you want pull requests to report growth:

npx -y ctxcap@1.2.0 --update-baseline

git add ctxcap-baseline.json git commit -m "Add ctxcap baseline"

Add a .ctxcap.json file to customize included paths, ignored paths, or budgets. The default scan is intentionally limited to common agent context files.

CLI

FlagEffect
--jsonMachine-readable JSON report on stdout
--sarifSARIF 2.1.0 on stdout
--suggestInclude compression suggestions
--staleFind dead paths, commands, globs, and references
--stale-globInclude globs that match zero files
--stale-fixPrint a deletion diff; never writes files
`--fail-on increase\budget\stale\never`When to exit 1 (default: never)
--baseline Read baseline from a git ref (CI uses merge base automatically)
--update-baselineWrite ctxcap-baseline.json and exit
--config Config file path (default: .ctxcap.json)
--root Working directory (default: .)
--planPrint a ranked context-budget edit plan
--applyApply the generated plan atomically
--verify Verify a saved plan and preserve spans
--budget Target budget for --plan

Exit codes: 0 clean, 1 breach under --fail-on, 2 internal error.

Config

.ctxcap.json — all fields optional:

{

"include": ["AGENTS.md", "prompts/", ".cursor/rules/"], "ignore": ["prompts/archive/**"], "budgets": { "total": 40000, "AGENTS.md": 500, "prompts/system.md": 8000 }, "failOn": "budget" }

Defaults (when no config exists): scans CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, prompts/**, *.prompt, .cursor/rules/**.

GitHub Action

permissions:

contents: read pull-requests: write security-events: write # for SARIF upload; drop if you set upload-sarif: false

steps:

  • uses: actions/checkout@v4 with: { fetch-depth: 0 }
  • uses: Naeha-S/ctxcap@v1 with: { fail-on: increase }

Pinned form for reproducibility: uses: Naeha-S/ctxcap@v1.2.0

Inputs:

InputDefaultDescription
fail-onneverincrease \budget \stale \never
config.ctxcap.jsonPath to config file
path.Root directory to lint
commenttruePost sticky PR comment
upload-sariftrueUpload SARIF to code scanning
stalefalseRun the stale-reference pass
stale-globfalseInclude zero-match globs

What you get on every run:

  • Workflow annotations on over-budget files
  • Job step summary with token table and delta

When the token can write (non-fork PRs):

  • Sticky PR comment, updated in place (one comment, not a new one each run)
  • SARIF upload to GitHub code scanning
Fork PRs

With plain pull_request, fork PRs get a read-only token: annotations and job summary only. For the full experience on forks, use pull_request_target as shown in examples/pull-request-target.yml.

Code scanning requires GitHub Advanced Security on private repos; SARIF upload silently no-ops without it.

MCP

Run the MCP server directly — no config needed:

npx -y ctxcap-mcp

Configure in your MCP client:

{

"mcpServers": { "ctxcap": { "command": "npx", "args": ["-y", "ctxcap-mcp"] } } }

The same stdio command works with Claude Code, Codex, and Cursor. See the MCP package guide for client-specific setup. The server reads the MCP client's current working directory and makes no network calls. Registry metadata is prepared in server.json; publication is manual and intentionally not performed by this repository workflow.

Tools exposed:

ToolDescription
measure_contextReturns the full JSON report for the current working directory
context_budget_planReturns a deterministic ranked splice plan with safety classifications and preserve spans
context_budget_verifyReports missed edits and preserve-span violations after applying a plan
trim_to_budgetDeprecated alias for context_budget_plan; always returns apply: false

The agent loop is also available as the five-line llms.txt contract. The standalone MCP wrapper keeps plan verification in the same server process; the CLI persists plans under .ctxcap/plans/.

Output schema

{

"schema": "ctxcap/v1", "approximate": true, "tokenizer": "gpt-tokenizer@3.0.1", "total": 1247, "totalBudget": 40000, "delta": +82, "over": false, "baselineFound": true, "files": [ { "path": "AGENTS.md", "tokens": 420, "delta": +12, "budget": 500 } ], "suggestions": [] }

Full report schema: schema/report.schema.json. Plan schema: schema/plan.schema.json. Plan responses include ranked plan entries, preserve spans, and a diff summary.

Accuracy

Counts, tokensFreed, and confidence use heuristics and are approximate against Claude and Gemini (±5% for token counts). Every report carries "approximate": true and the tokenizer ID. Compare deltas, not absolutes; review the plan before applying it.

Packages

PackageDescription
ctxcapCLI + GitHub Action + embedded MCP server
ctxcap-mcpStandalone MCP server wrapper (thin bin, pulls ctxcap as a dep)

Publish and share

The packages are published on npm:

npm view ctxcap version       # 1.2.0

npm view ctxcap-mcp version # 0.1.2

Share the npm packages, the GitHub repository, or the pinned GitHub Action:

For a release post, show a real before/after from another repository, include the plan and verification loop, and link to the cold-install results. Ask early users to report false positives from their context-file layouts.

MIT.