프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.프로토타입 · 30분마다 업데이트
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

ctxcap

제작자: Naeha-S버전 0.1.4i★ 0i내 컴퓨터에서 실행
레지스트리 이름io.github.Naeha-S/ctxcap

설치 방법

What it does

Offline context-budget MCP server for AI coding agents.

  • Connects 내 컴퓨터에서 실행
  • Account or key No key needed
  • Category 개발자 도구

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

검사 3/3 통과 · 내 컴퓨터에서 실행돼요 · ✓ 명령 확인 2026년 11월 13일

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. 컴퓨터용 Claude 앱 설정 파일 열기

    SettingsDeveloperEdit Config

  3. 이 설정을 붙여 넣고 저장

    {
      "mcpServers": {
        "ctxcap": {
          "command": "npx",
          "args": [
            "-y",
            "ctxcap-mcp"
          ]
        }
      }
    }
  4. Claude를 끄고 다시 열기

  5. 해 보기

    ctxcap을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 ctxcap을 쓰고 있다고 하거나 답에 ctxcap 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 ctxcap에 연결할 수 없어요

ctxcap는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요

대신 이렇게 할 수 있어요

A · ctxcap에 연결되는 앱 쓰기

  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

B · 개발자 도구에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  3. 이 명령을 붙여 넣고 Enter

    claude mcp add --scope user ctxcap -- npx -y ctxcap-mcp
  4. Claude Code에서 /mcp 입력

    ctxcap이 목록에 있고 연결됨으로 보이면 돼요

  5. 해 보기

    ctxcap을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 ctxcap을 쓰고 있다고 하거나 답에 ctxcap 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  3. Cursor에서 AI 채팅을 Agent 모드로 열기

  4. 해 보기

    ctxcap을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 ctxcap을 쓰고 있다고 하거나 답에 ctxcap 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있지만 먼저 준비가 필요해요

먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  3. VS Code에서 AI 채팅을 Agent 모드로 열기

  4. 해 보기

    ctxcap을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 ctxcap을 쓰고 있다고 하거나 답에 ctxcap 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? ctxcap을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

컴퓨터에 설치

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"
      ]
    }
  }
}

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

주간 다운로드i
npm/PyPI에 없음
연결 방식
내 컴퓨터에서 실행
최신 버전i
0.1.4
카테고리i
개발자 도구
레지스트리 공개i
2026년 11월 13일
코드 마지막 변경i
2026년 11월 13일
제작자
Naeha-S
패키지
npm: ctxcap-mcp
웹사이트
github.com
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

내 컴퓨터에서 실행하는 앱

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

모든 앱과 장단점 →

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 13일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 Naeha-S 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 오늘

  • ✓ 통과

    라이선스 있음

    MIT 사용

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

Google로 로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

Google로 로그인하고 리뷰 쓰기

개발자 도구 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 5839개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 5839개 중 99%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 5839개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

ctxcap, 안전한가요?

해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 오늘 변경됐고, 최신 버전(0.1.4)은 오늘 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: REA, GitHub, Serena MCP: the IDE for your agent

같은 카테고리의 다른 것

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

REA

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

제작자: morluto널리 사용됨↓ 38.9만/주★ 45.5만어제 업데이트

내 컴퓨터에서 실행

GitHub

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

제작자: github널리 사용됨★ 3.4만10일 전 업데이트

컴퓨터 또는 클라우드

Serena MCP: the IDE for your agent

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

제작자: oraios널리 사용됨↓ 3.5만/주★ 3.1만6개월 전 업데이트

내 컴퓨터에서 실행

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

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.