Skip to main content
Glama
tetracoralla

context-surface-analyzer

by tetracoralla

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.

Related MCP server: repo-health

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.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides source-backed design context, route card validation, contract generation, critique and verification reports, evidence packages, Penpot change plans, and anti-repeat checks for design workflows. Does not directly mutate Penpot, but consumes read-only Penpot snapshots.
    11
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides read-only repository health scanning tools for drift detection, module reachability, prompt bloat, evidence calibration, and registration completeness, enabling agents to diagnose repositories via MCP.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides a JSON-RPC MCP server that exposes policy-governed agent tools, including paid tools, tool muxing, and OpenAPI-to-MCP conversion, enabling agents to discover, coordinate, and execute tasks within the ProtoOS ecosystem.
    5
    1
    Apache 2.0
  • A
    license
    Not graded
    quality
    A
    maintenance
    Performs explainable, deterministic static analysis of MCP tool metadata to detect misleading instructions, concealed capabilities, and schema drift without executing tools.
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only XRP Ledger MCP tools with proof-annotation envelopes and signed daily snapshots.

  • Safety-first EVM and Bitcoin RPC tools for balances, contracts, blocks, and transactions

  • Read-only tools over the Safer Agentic AI framework: 238 patterns + 14 heuristics.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tetracoralla/context-surface-analyzer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server