context-surface-analyzer
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@context-surface-analyzerCompare these two tool catalog snapshots and show the schema diffs."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Context Surface Analyzer
Current source: context-surface-analyzer in Agent Host. Development, installation, and current integration documentation now belong to Agent Host. This repository retains the earlier standalone source; the instructions below describe that historical version.
A local, deterministic utility for measuring one explicit Agent tool-catalog snapshot and comparing two snapshots.
It reports canonical UTF-8 bytes and SHA-256 digests, tool/schema counts, exact duplicate schemas, hard name collisions, declared budget checks, and deltas. Optional token counts remain externally measured and fully labeled; the product does not infer tokens from bytes or decide whether a tool is useful.
Run
Requires Node.js 22 or newer and has no third-party runtime dependencies.
npm run check
node src/cli.js analyze examples/baseline.json
node src/cli.js diff examples/baseline.json examples/updated.json
npm startThe web surface opens at http://127.0.0.1:4173. Use --port 0 to select an
ephemeral port. A snapshot can be pasted or loaded from a bounded local JSON
file; the browser does not retain it after the page is closed.
Related MCP server: MCP Tool Security Inspector
Snapshot authority
Acquire each snapshot from the current provider, host, or an authorized
exporter. This product deliberately does not discover a host, start arbitrary
MCP servers, crawl files, or treat repository fixtures as the current installed
catalog. Project the exported catalog into the closed
context-surface.snapshot.v0.1 format before analysis and retain the exporter,
provider, and revision as the source of record.
MCP
Start the newline-delimited JSON-RPC stdio server:
npm run mcpIt exposes two read-only tools:
context.analyze: one snapshot to one analysis;context.diff: earlier and later snapshots to one comparison.
Both accept snapshot JSON as bounded strings, so the Agent route has no ambient filesystem authority. See the product model for the snapshot contract and exact semantics.
This portable runtime intentionally serves the MCP 2025 legacy era through
revision 2025-11-25. Dual-era clients can identify that boundary from the
server/discover method-not-found response and fall back to initialize.
Modern-only 2026 transport is not claimed by this dependency-free plugin.
Local Codex plugin
Build and validate the repository-local plugin, add this repository as a local marketplace, then install the plugin:
npm run check
codex plugin marketplace add <repository-root>
codex plugin add context-surface-analyzer@context-surface-analyzerStart a new Codex task after installation so the Skill and MCP tools are loaded from the same cached plugin version.
Status
This is a local MVP. Development checks, direct runtime probes, installed Codex routing, production load behavior, public-release readiness, and owner visual acceptance remain separate claims. See the review contract and the first real-catalog dogfood note.
License
Apache License 2.0. See LICENSE and NOTICE.
This server cannot be deployed
Maintenance
Related MCP Connectors
A read-only verified record of agent-operable GTM tools: search, fetch, compare, track changes.
Statically audits MCP tool surfaces for token cost, schema quality, and design issues.
Read-only XRP Ledger MCP tools with proof-annotation envelopes and signed daily snapshots.
Verifies Bernstein run receipts and hash chains; lists the shipped presets and adapters. Read-only.
Related MCP Servers
- AlicenseCqualityAmaintenanceEnables coding agents to query, compare, and audit local profiler traces, benchmarks, memory captures, and execution evidence without uploading code or data, using CLI and MCP interfaces.111199 PyPI114MIT
- AlicenseNot gradedqualityAmaintenancePerforms explainable, deterministic static analysis of MCP tool metadata to detect misleading instructions, concealed capabilities, and schema drift without executing tools.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables local static analysis of deployed AI model artifacts over MCP, exposing audit, diff, capabilities, and rule-explanation tools without uploading model bytes.979 npm2Apache 2.0
- FlicenseNot gradedqualityCmaintenanceExposes a version-controlled knowledge base as MCP tools so agents can read merged identity/state summaries and next recommended actions at runtime, plus run deterministic schema validation and cross-reference link checks. This lets agents fetch live state and verify integrity via self-describing calls instead of re-reading raw files.-