context-surface-analyzer

context-surface-analyzer

Enables deterministic analysis of a single Agent tool-catalog snapshot and comparison of two snapshots through read-only JSON-RPC tools, reporting digests, schema statistics, duplicates, collisions, budget checks, and diffs.

Category
Visit Server

README

Context Surface Analyzer

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 start

The 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.

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 mcp

It 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-analyzer

Start 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured