mcpgawk 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/.github/workflows/ci.yml +6 -14
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/CHANGELOG.md +9 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/PKG-INFO +2 -2
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/README.md +1 -1
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/pyproject.toml +1 -1
- mcpgawk-0.1.4/.github/workflows/publish-openvsx.yml +0 -38
- mcpgawk-0.1.4/editors/vscode/.vscodeignore +0 -5
- mcpgawk-0.1.4/editors/vscode/CHANGELOG.md +0 -18
- mcpgawk-0.1.4/editors/vscode/LICENSE +0 -201
- mcpgawk-0.1.4/editors/vscode/README.md +0 -22
- mcpgawk-0.1.4/editors/vscode/extension.js +0 -177
- mcpgawk-0.1.4/editors/vscode/media/icon.png +0 -0
- mcpgawk-0.1.4/editors/vscode/package.json +0 -39
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/.github/workflows/mcpgawk-gate-selftest.yml +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/.github/workflows/publish-pypi.yml +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/.gitignore +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/BRAND.md +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/CONTRIBUTING.md +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/LICENSE +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/NOTICE +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/SECURITY.md +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/THREAT-MODEL.md +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/action.yml +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/demo.gif +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/favicon.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/identity-board.html +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/nativerse-mark.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/social-preview.png +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/social-preview.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/wordmark-dark.png +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/wordmark-dark.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/wordmark-light.png +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/assets/brand/wordmark-light.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/.gitignore +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/CNAME +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/api/lead.js +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/brand/favicon.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/brand/nativerse-mark.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/brand/social-preview.png +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/brand/social-preview.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/alibaba.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/anthropic.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/baidu.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/cerebras.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/cloudflare.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/cohere.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/copilot.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/cursor.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/deepseek.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/discord.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/docker.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/figma.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/framer.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/gemini.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/github.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/gitlab.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/gojek.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/google.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/grab.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/grok.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/huawei.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/huggingface.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/inflection.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/infosys.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/kakaotalk.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/kimi.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/klarna.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/langchain.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/line.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/linear.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/mercadolibre.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/meta.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/microsoft.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/midjourney.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/mistral.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/naver.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/netlify.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/notion.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/nubank.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/nvidia.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/ollama.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/openai.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/paytm.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/perplexity.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/postgresql.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/python.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/qwen.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/rakuten.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/replicate.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/replit.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/revolut.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/runway.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/sap.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/sentry.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/shopee.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/slack.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/sony.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/spotify.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/stability.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/stripe.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/suno.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/supabase.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/swiggy.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/tiktok.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/togetherai.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/vercel.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/wechat.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/weibo.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/wise.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/xai.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/xiaomi.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/zoho.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/assets/logos/zomato.svg +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/index.html +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/logofield.js +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/report.html +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/docs/styles.css +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/examples/mcp.json +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/scripts/ci_gate.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/__init__.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/__main__.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/ambient.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/cli.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/consent.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/discover.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/drift.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/fleet.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/grade.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/history.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/label.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/mcp_server.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/measure.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/oauth_login.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/oauth_scopes.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/probe.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/servercard.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/signals.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/supplychain.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/src/mcpgawk/transport.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/supabase/leads.sql +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/supabase/lockdown.sql +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_ambient.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_cli_integration.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_drift.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_grade.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_label_axes.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_layer_invariants.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_mcp_server.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_measure.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_no_egress.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_oauth_scopes.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_servercard.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_signals.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_supplychain.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/tests/test_thin_guidance.py +0 -0
- {mcpgawk-0.1.4 → mcpgawk-0.1.5}/uv.lock +0 -0
|
@@ -37,17 +37,9 @@ jobs:
|
|
|
37
37
|
/tmp/smoke/bin/pip install dist/*.whl
|
|
38
38
|
/tmp/smoke/bin/mcpgawk --help
|
|
39
39
|
|
|
40
|
-
version-consistency
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
PY_VERSION=$(grep -m1 '^version = ' pyproject.toml | sed -E 's/version = "(.*)"/\1/')
|
|
47
|
-
EXT_VERSION=$(node -p "require('./editors/vscode/package.json').version")
|
|
48
|
-
echo "pyproject.toml: $PY_VERSION"
|
|
49
|
-
echo "editors/vscode/package.json: $EXT_VERSION"
|
|
50
|
-
if [ "$PY_VERSION" != "$EXT_VERSION" ]; then
|
|
51
|
-
echo "::error::Version mismatch — CLI is $PY_VERSION but the VS Code extension is $EXT_VERSION. Bump editors/vscode/package.json (and its CHANGELOG.md) alongside every pyproject.toml release."
|
|
52
|
-
exit 1
|
|
53
|
-
fi
|
|
40
|
+
# version-consistency lived here and compared pyproject.toml against editors/vscode/package.json.
|
|
41
|
+
# Both were removed on 2026-07-21: editors/vscode was a hand-written extension that is NOT the one
|
|
42
|
+
# published to Open VSX, and this job was green because those two stale sides agreed with each
|
|
43
|
+
# other. The extension we ship is built from the platform repo's packages/vscode, so the check
|
|
44
|
+
# moved there (platform-ci.yml, "Version consistency"), where it can see both real artefacts.
|
|
45
|
+
# This repo holds the engine only; it has nothing to compare a version against.
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to mcpgawk. Format: [Keep a Changelog](https://keepachangelog.com/); versioning: [SemVer](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [0.1.5] — 2026-07-21
|
|
6
|
+
|
|
7
|
+
A version realignment. **No engine changes** — 0.1.5 is byte-for-byte 0.1.4 plus this note.
|
|
8
|
+
|
|
9
|
+
The VS Code extension and this CLI ship under one version. Open VSX 0.1.4 was spent on a stale
|
|
10
|
+
bundle published by accident, so the extension had to re-ship its real 0.1.4 content as 0.1.5,
|
|
11
|
+
leaving the CLI a number behind. The CLI moves up to meet it. If you are on 0.1.4, there is nothing
|
|
12
|
+
here to upgrade for.
|
|
13
|
+
|
|
5
14
|
## [0.1.4] — 2026-07-20
|
|
6
15
|
|
|
7
16
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcpgawk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: A local-first CLI that measures what an MCP server costs and what it can do. Nothing leaves your machine.
|
|
5
5
|
Project-URL: Homepage, https://mcp.gawk.dev
|
|
6
6
|
Project-URL: Documentation, https://mcp.gawk.dev
|
|
@@ -86,7 +86,7 @@ pip install mcpgawk # or: uv tool install mcpgawk
|
|
|
86
86
|
mcpgawk scan mcp.json
|
|
87
87
|
```
|
|
88
88
|
|
|
89
|
-
**Editor** (VS Code / Cursor): install **mcpgawk** from the marketplace ([Open VSX](https://open-vsx.org/extension/gawk-dev/mcpgawk)). It scans your workspace `mcp.json` and shows cost + capability flags inline.
|
|
89
|
+
**Editor** (VS Code / Cursor): install **mcpgawk** from the marketplace ([Open VSX](https://open-vsx.org/extension/gawk-dev/mcpgawk)). It scans your workspace `mcp.json` and shows cost + capability flags inline. The extension drives this engine as a subprocess — it is built and released separately, so its source is not in this repository.
|
|
90
90
|
|
|
91
91
|
**CI** (GitHub Action): gate every PR on token budget / drift ([Marketplace](https://github.com/marketplace/actions/mcpgawk-mcp-hygiene-gate)):
|
|
92
92
|
```yaml
|
|
@@ -57,7 +57,7 @@ pip install mcpgawk # or: uv tool install mcpgawk
|
|
|
57
57
|
mcpgawk scan mcp.json
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
**Editor** (VS Code / Cursor): install **mcpgawk** from the marketplace ([Open VSX](https://open-vsx.org/extension/gawk-dev/mcpgawk)). It scans your workspace `mcp.json` and shows cost + capability flags inline.
|
|
60
|
+
**Editor** (VS Code / Cursor): install **mcpgawk** from the marketplace ([Open VSX](https://open-vsx.org/extension/gawk-dev/mcpgawk)). It scans your workspace `mcp.json` and shows cost + capability flags inline. The extension drives this engine as a subprocess — it is built and released separately, so its source is not in this repository.
|
|
61
61
|
|
|
62
62
|
**CI** (GitHub Action): gate every PR on token budget / drift ([Marketplace](https://github.com/marketplace/actions/mcpgawk-mcp-hygiene-gate)):
|
|
63
63
|
```yaml
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mcpgawk"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.5"
|
|
8
8
|
description = "A local-first CLI that measures what an MCP server costs and what it can do. Nothing leaves your machine."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: Publish VS Code extension (Open VSX)
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
paths:
|
|
7
|
-
- "editors/vscode/package.json"
|
|
8
|
-
workflow_dispatch: {}
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
publish:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
defaults:
|
|
14
|
-
run:
|
|
15
|
-
working-directory: editors/vscode
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v4
|
|
18
|
-
|
|
19
|
-
- uses: actions/setup-node@v4
|
|
20
|
-
with:
|
|
21
|
-
node-version: "20"
|
|
22
|
-
|
|
23
|
-
- name: Fail loudly if the Open VSX token isn't configured
|
|
24
|
-
run: |
|
|
25
|
-
if [ -z "${{ secrets.OVSX_PAT }}" ]; then
|
|
26
|
-
echo "::error::OVSX_PAT secret is not set — add it under repo Settings > Secrets before this can publish."
|
|
27
|
-
exit 1
|
|
28
|
-
fi
|
|
29
|
-
|
|
30
|
-
- run: npm install -g @vscode/vsce ovsx
|
|
31
|
-
|
|
32
|
-
- name: Package
|
|
33
|
-
run: vsce package --no-dependencies
|
|
34
|
-
|
|
35
|
-
- name: Publish to Open VSX
|
|
36
|
-
env:
|
|
37
|
-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
|
|
38
|
-
run: ovsx publish *.vsix -p "$OVSX_PAT"
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
## 0.1.4
|
|
2
|
-
- Version sync with CLI 0.1.4 (`--login` OAuth scanning, dynamic tool-dispatch detection, typed
|
|
3
|
-
error handling so a failed probe never reads CLEAN, faster remote-scan timeout, corrected signal
|
|
4
|
-
labels). No extension code change — the panel reads `tool_count`, `cost_index_tokens`,
|
|
5
|
-
`tools[].write/exfil_capable`, and `bounded_signals`, all unchanged additive fields in the label schema.
|
|
6
|
-
|
|
7
|
-
## 0.1.3
|
|
8
|
-
- Version sync with CLI 0.1.3 (5-axis report, `--verbose`, opt-in `--supply-chain`/`--oauth-scopes`). No
|
|
9
|
-
extension code change — the panel reads `tool_count`, `cost_index_tokens`, `tools[].write/exfil_capable`,
|
|
10
|
-
and `bounded_signals`, all of which are unchanged, additive-only fields in the 0.1.3 label schema.
|
|
11
|
-
|
|
12
|
-
## 0.1.1
|
|
13
|
-
- Robust CLI resolution: auto-detect mcpgawk (tries `mcpgawk`, `uvx mcpgawk`, `python -m mcpgawk`) and augment PATH with common install dirs, so it works even when the editor's GUI process doesn't see your shell PATH. Clearer 'not found' recovery (offers uvx, needs no install).
|
|
14
|
-
|
|
15
|
-
# Changelog
|
|
16
|
-
|
|
17
|
-
## 0.1.0
|
|
18
|
-
- First release: scan the workspace `mcp.json`, per-server cost + capability panel, status-bar token total.
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2025 Invariant Labs AG
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# mcpgawk — MCP cost & hygiene
|
|
2
|
-
|
|
3
|
-
See what your MCP servers cost and expose, right in your editor. **Local — nothing leaves your machine.**
|
|
4
|
-
|
|
5
|
-
Every MCP server you connect loads all its tools into your AI's context, on every request. This extension
|
|
6
|
-
runs the [mcpgawk](https://mcp.gawk.dev) CLI on your workspace's `mcp.json` and shows, per server, the tokens
|
|
7
|
-
loaded at connect, the write / network-capable tools, and any bounded signals.
|
|
8
|
-
|
|
9
|
-
## Use
|
|
10
|
-
|
|
11
|
-
1. Install the CLI once: `pip install mcpgawk`
|
|
12
|
-
2. Open a folder with an `mcp.json` (also detects `.cursor/mcp.json`, `.vscode/mcp.json`).
|
|
13
|
-
3. Run **mcpgawk: Scan MCP servers** from the command palette — or click the token count in the status bar.
|
|
14
|
-
|
|
15
|
-
## Settings
|
|
16
|
-
|
|
17
|
-
- `mcpgawk.configPath` — path to a specific config (default: auto-detect).
|
|
18
|
-
- `mcpgawk.command` — how to invoke the CLI (`mcpgawk`, `uvx mcpgawk`, or an absolute path).
|
|
19
|
-
|
|
20
|
-
## Privacy
|
|
21
|
-
|
|
22
|
-
The scan runs entirely on your machine via the local CLI. No inventory is uploaded. Apache-2.0 · part of nativerse · gawk.dev
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
// mcpgawk — VS Code / Cursor extension.
|
|
2
|
-
// Runs the local mcpgawk CLI on your workspace MCP config and shows what each
|
|
3
|
-
// server costs and exposes. Nothing leaves your machine.
|
|
4
|
-
const vscode = require("vscode");
|
|
5
|
-
const cp = require("child_process");
|
|
6
|
-
const path = require("path");
|
|
7
|
-
const fs = require("fs");
|
|
8
|
-
const os = require("os");
|
|
9
|
-
|
|
10
|
-
let statusBar;
|
|
11
|
-
let resolvedCmd; // cache: the invocation that worked, e.g. "mcpgawk" or "uvx mcpgawk"
|
|
12
|
-
|
|
13
|
-
function activate(context) {
|
|
14
|
-
statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, 100);
|
|
15
|
-
statusBar.command = "mcpgawk.scan";
|
|
16
|
-
context.subscriptions.push(statusBar);
|
|
17
|
-
context.subscriptions.push(vscode.commands.registerCommand("mcpgawk.scan", () => scan(true)));
|
|
18
|
-
scan(false); // quiet pass to populate the status bar
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function cfg(key, dflt) {
|
|
22
|
-
return vscode.workspace.getConfiguration("mcpgawk").get(key, dflt);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function workspaceRoot() {
|
|
26
|
-
const f = vscode.workspace.workspaceFolders;
|
|
27
|
-
return f && f.length ? f[0].uri.fsPath : undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// GUI apps on macOS often don't inherit the shell PATH, so `mcpgawk`/`uvx` in
|
|
31
|
-
// ~/.local/bin etc. aren't found. Prepend the usual install locations.
|
|
32
|
-
function childEnv() {
|
|
33
|
-
const extra = [
|
|
34
|
-
path.join(os.homedir(), ".local", "bin"),
|
|
35
|
-
"/opt/homebrew/bin",
|
|
36
|
-
"/usr/local/bin",
|
|
37
|
-
path.join(os.homedir(), ".cargo", "bin"),
|
|
38
|
-
];
|
|
39
|
-
const env = Object.assign({}, process.env);
|
|
40
|
-
env.PATH = extra.join(":") + ":" + (env.PATH || "");
|
|
41
|
-
return env;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function tryHelp(cmd) {
|
|
45
|
-
return new Promise((resolve) => {
|
|
46
|
-
cp.exec(`${cmd} --help`, { env: childEnv(), timeout: 60000 }, (err) => resolve(!err));
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Resolve how to call the CLI: explicit setting → mcpgawk → uvx mcpgawk → python -m mcpgawk.
|
|
51
|
-
async function resolveCommand() {
|
|
52
|
-
const explicit = (cfg("command", "") || "").trim();
|
|
53
|
-
if (explicit) return explicit;
|
|
54
|
-
if (resolvedCmd) return resolvedCmd;
|
|
55
|
-
for (const cand of ["mcpgawk", "uvx mcpgawk", "python3 -m mcpgawk", "python -m mcpgawk"]) {
|
|
56
|
-
if (await tryHelp(cand)) { resolvedCmd = cand; return cand; }
|
|
57
|
-
}
|
|
58
|
-
return undefined; // not found anywhere
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function findConfig(root) {
|
|
62
|
-
const explicit = cfg("configPath", "");
|
|
63
|
-
if (explicit) return path.isAbsolute(explicit) ? explicit : path.join(root, explicit);
|
|
64
|
-
for (const rel of ["mcp.json", ".cursor/mcp.json", ".vscode/mcp.json"]) {
|
|
65
|
-
const p = path.join(root, rel);
|
|
66
|
-
if (fs.existsSync(p)) return p;
|
|
67
|
-
}
|
|
68
|
-
return undefined;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function extractJson(text) {
|
|
72
|
-
const m = text.match(/(\[[\s\S]*\]|\{[\s\S]*\})/);
|
|
73
|
-
if (!m) return null;
|
|
74
|
-
try { return JSON.parse(m[1]); } catch (_) { return null; }
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
async function promptInstall() {
|
|
78
|
-
const pick = await vscode.window.showErrorMessage(
|
|
79
|
-
"mcpgawk CLI not found. The easiest fix needs no install — run it with uvx.",
|
|
80
|
-
"Use uvx", "pip install", "Docs");
|
|
81
|
-
if (pick === "Use uvx") {
|
|
82
|
-
await vscode.workspace.getConfiguration("mcpgawk").update("command", "uvx mcpgawk", vscode.ConfigurationTarget.Global);
|
|
83
|
-
vscode.window.showInformationMessage("Set mcpgawk to run via `uvx mcpgawk`. Run the scan again.");
|
|
84
|
-
} else if (pick === "pip install") {
|
|
85
|
-
const t = vscode.window.createTerminal("Install mcpgawk");
|
|
86
|
-
t.show(); t.sendText("pip install mcpgawk");
|
|
87
|
-
} else if (pick === "Docs") {
|
|
88
|
-
vscode.env.openExternal(vscode.Uri.parse("https://mcp.gawk.dev"));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
async function scan(interactive) {
|
|
93
|
-
const root = workspaceRoot();
|
|
94
|
-
if (!root) { if (interactive) vscode.window.showWarningMessage("mcpgawk: open a folder with an mcp.json first."); return; }
|
|
95
|
-
const config = findConfig(root);
|
|
96
|
-
if (!config) {
|
|
97
|
-
statusBar.hide();
|
|
98
|
-
if (interactive) vscode.window.showWarningMessage("mcpgawk: no mcp.json found in this workspace.");
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (interactive) statusBar.text = "$(sync~spin) mcpgawk…";
|
|
103
|
-
const base = await resolveCommand();
|
|
104
|
-
if (!base) { statusBar.hide(); if (interactive) await promptInstall(); return; }
|
|
105
|
-
|
|
106
|
-
const cmd = `${base} scan ${JSON.stringify(config)} --json`;
|
|
107
|
-
const result = await new Promise((resolve) => {
|
|
108
|
-
cp.exec(cmd, { cwd: root, env: childEnv(), timeout: 120000, maxBuffer: 8 * 1024 * 1024 },
|
|
109
|
-
(err, stdout, stderr) => resolve({ err, stdout: stdout || "", stderr: stderr || "" }));
|
|
110
|
-
});
|
|
111
|
-
const data = extractJson(result.stdout);
|
|
112
|
-
|
|
113
|
-
if (!data) {
|
|
114
|
-
statusBar.hide();
|
|
115
|
-
const notFound = /not found|ENOENT|No module named|No such file/i.test((result.err && result.err.message) || result.stderr);
|
|
116
|
-
if (notFound) { resolvedCmd = undefined; await promptInstall(); }
|
|
117
|
-
else if (interactive) vscode.window.showErrorMessage("mcpgawk: scan failed. " + ((result.stderr || "").trim().split("\n").pop() || ""));
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
const servers = Array.isArray(data) ? data : [data];
|
|
122
|
-
const rows = servers.map((s) => {
|
|
123
|
-
const x = s["x-mcpgawk"] || {};
|
|
124
|
-
return {
|
|
125
|
-
name: s.name || "?",
|
|
126
|
-
tools: x.tool_count || 0,
|
|
127
|
-
tokens: x.cost_index_tokens || 0,
|
|
128
|
-
flagged: (x.tools || []).filter((t) => t.write || t.exfil_capable).length,
|
|
129
|
-
signals: (x.bounded_signals || []).length,
|
|
130
|
-
};
|
|
131
|
-
});
|
|
132
|
-
const total = rows.reduce((a, r) => a + r.tokens, 0);
|
|
133
|
-
|
|
134
|
-
statusBar.text = `$(shield) ${total.toLocaleString()} tok`;
|
|
135
|
-
statusBar.tooltip = `mcpgawk — ${rows.length} MCP server(s) load ${total.toLocaleString()} tokens at connect. Click for the breakdown.`;
|
|
136
|
-
statusBar.show();
|
|
137
|
-
|
|
138
|
-
if (interactive) showPanel(rows, total, path.basename(config));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function showPanel(rows, total, configName) {
|
|
142
|
-
const panel = vscode.window.createWebviewPanel("mcpgawk", "mcpgawk — MCP scan", vscode.ViewColumn.Active, {});
|
|
143
|
-
const tr = rows.map((r) => `<tr>
|
|
144
|
-
<td class="name">${esc(r.name)}</td>
|
|
145
|
-
<td class="num">${r.tools}</td>
|
|
146
|
-
<td class="num tok">${r.tokens.toLocaleString()}</td>
|
|
147
|
-
<td class="num">${r.flagged}</td>
|
|
148
|
-
<td class="num ${r.signals ? "warn" : ""}">${r.signals}</td>
|
|
149
|
-
</tr>`).join("");
|
|
150
|
-
panel.webview.html = `<!doctype html><meta charset="utf-8">
|
|
151
|
-
<style>
|
|
152
|
-
body{font-family:var(--vscode-font-family);color:var(--vscode-foreground);padding:20px 24px}
|
|
153
|
-
h1{font-size:18px;margin:0 0 2px}
|
|
154
|
-
.sub{color:var(--vscode-descriptionForeground);font-size:12px;margin:0 0 18px}
|
|
155
|
-
.accent{color:#7B83F0;font-weight:600}
|
|
156
|
-
table{border-collapse:collapse;width:100%;font-size:13px}
|
|
157
|
-
th,td{padding:8px 10px;border-bottom:1px solid var(--vscode-panel-border);text-align:right}
|
|
158
|
-
th:first-child,td:first-child{text-align:left}
|
|
159
|
-
th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--vscode-descriptionForeground)}
|
|
160
|
-
td.name{font-weight:600}.num{font-variant-numeric:tabular-nums}
|
|
161
|
-
.tok{color:#7B83F0}.warn{color:var(--vscode-editorWarning-foreground)}
|
|
162
|
-
.foot{margin-top:16px;color:var(--vscode-descriptionForeground);font-size:11.5px}
|
|
163
|
-
code{background:var(--vscode-textCodeBlock-background);padding:1px 5px;border-radius:4px}
|
|
164
|
-
</style>
|
|
165
|
-
<h1>mcpgawk</h1>
|
|
166
|
-
<p class="sub">${esc(configName)} · <span class="accent">${total.toLocaleString()} tokens</span> loaded at connect, across ${rows.length} server(s).</p>
|
|
167
|
-
<table>
|
|
168
|
-
<thead><tr><th>Server</th><th>Tools</th><th>Tokens@connect</th><th>Write/exfil</th><th>Signals</th></tr></thead>
|
|
169
|
-
<tbody>${tr}</tbody>
|
|
170
|
-
</table>
|
|
171
|
-
<p class="foot">Measured locally by mcpgawk — nothing left your machine. Full scan in a terminal: <code>mcpgawk scan mcp.json</code></p>`;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function esc(s) { return String(s).replace(/[&<>"]/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """ }[c])); }
|
|
175
|
-
|
|
176
|
-
function deactivate() {}
|
|
177
|
-
module.exports = { activate, deactivate };
|
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mcpgawk",
|
|
3
|
-
"displayName": "mcpgawk — MCP cost & hygiene",
|
|
4
|
-
"description": "See what your MCP servers cost and expose, right in your editor. Local — nothing leaves your machine.",
|
|
5
|
-
"version": "0.1.4",
|
|
6
|
-
"publisher": "gawk-dev",
|
|
7
|
-
"license": "Apache-2.0",
|
|
8
|
-
"icon": "media/icon.png",
|
|
9
|
-
"engines": { "vscode": "^1.85.0" },
|
|
10
|
-
"categories": ["Linters", "Other"],
|
|
11
|
-
"keywords": ["mcp", "model context protocol", "tokens", "security", "cursor", "agents"],
|
|
12
|
-
"repository": { "type": "git", "url": "https://github.com/gawk-dev/mcpgawk" },
|
|
13
|
-
"homepage": "https://mcp.gawk.dev",
|
|
14
|
-
"bugs": { "url": "https://github.com/gawk-dev/mcpgawk/issues" },
|
|
15
|
-
"galleryBanner": { "color": "#16160F", "theme": "dark" },
|
|
16
|
-
"activationEvents": ["workspaceContains:**/mcp.json", "workspaceContains:**/.cursor/mcp.json"],
|
|
17
|
-
"main": "./extension.js",
|
|
18
|
-
"contributes": {
|
|
19
|
-
"commands": [
|
|
20
|
-
{ "command": "mcpgawk.scan", "title": "mcpgawk: Scan MCP servers", "category": "mcpgawk" }
|
|
21
|
-
],
|
|
22
|
-
"configuration": {
|
|
23
|
-
"title": "mcpgawk",
|
|
24
|
-
"properties": {
|
|
25
|
-
"mcpgawk.configPath": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"default": "",
|
|
28
|
-
"description": "Path to an mcp.json config to scan (relative to the workspace). Leave empty to auto-detect."
|
|
29
|
-
},
|
|
30
|
-
"mcpgawk.command": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"default": "",
|
|
33
|
-
"description": "How to invoke the mcpgawk CLI. Leave empty to auto-detect (tries mcpgawk, then 'uvx mcpgawk', then 'python -m mcpgawk'). Override with e.g. 'uvx mcpgawk' or an absolute path."
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"scripts": {}
|
|
39
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|