Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

CleanHAR MCP server for deterministic, offline sanitization and forensics of HTTP Archive (.har 1.2) files, browser DevTools Copy-as-cURL dumps, raw HTTP traces, .env/DSN strings, and JWT tokens. Replaces sensitive tokens with correlation-preserving HMAC-SHA256 tags ([JWT#1_9f4c · EXPIRED] vs [JWT#2_3a81 · exp:+15m]) so AI agents can diagnose auth race conditions, 4xx/5xx/CORS errors, and latency bottlenecks with 0% raw secret exposure.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}
prompts
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
sanitize_har_archiveA

Scrub a browser HTTP Archive (HAR 1.2 JSON or single HAR request entry) with correlation-preserving HMAC-SHA256 token tags (e.g. [JWT#1_9f4c · alg:HS256 · EXPIRED -10m] vs [JWT#2_3a81 · alg:HS256 · exp:+15m]) across headers, cookies, query strings, JSON/form bodies, and Base64 responses so AI agents can debug auth race conditions with 0% secret exposure.

sanitize_curl_and_http_dumpA

Scrub browser DevTools "Copy as cURL" commands (including multi-line continuations and ANSI-C $'...' quotes), raw HTTP/1.1 request dumps, and .env or database DSN strings into safe, shareable repro commands with correlation-preserving token tags.

diagnose_har_failuresA

Analyze an HTTP Archive (HAR 1.2 JSON) to extract 4xx/5xx errors, CORS/network blocks, expired-JWT auth race conditions, slow requests, and P50/P95/max waterfall latencies, returning structured diagnostics and a sanitized GitHub/Jira Markdown incident summary.

inspect_jwt_metadata_safeA

Safely decode a JWT or Authorization Bearer header to inspect header alg, sanitized issuer domain (iss), claim count, and clock-skew/expiry status (exp, iat, nbf) without returning raw sub, PII claims, or signature bytes.

Prompts

Interactive templates invoked by user choice

NameDescription
debug-auth-race-from-harScrub a HAR 1.2 capture with correlation-preserving JWT tags and diagnose 401/403 token-refresh race conditions or CORS failures.
prepare-safe-bug-reproSanitize a DevTools Copy-as-cURL command or raw HTTP trace into a zero-secret reproducible bug report.

Resources

Contextual data attached and managed by the client

NameDescription
Correlation-Preserving HMAC-SHA256 Redaction SpecificationExplains how CleanHAR replaces JWTs, Bearer tokens, Cookies, and PII with deterministic session-salted correlation tags while preserving auth race-conditionforensics.
GitHub Action PR HAR & Secret Leak Gate SetupCopy-paste .github/workflows YAML for blocking unredacted .har, cURL, and Bearer secrets in pull requests via z121245017-ai/cleanhar-mcp@v1.

TDQS

A4/5.0

Scored across 4 tools

Disambiguation5/5

The four tools have clearly distinct jobs: sanitizing HAR archives, sanitizing cURL/raw HTTP/.env/DSN inputs, inspecting JWT metadata safely, and diagnosing HAR failures. Although two tools both sanitize, their input types and outputs are explicitly differentiated.

Naming Consistency5/5

All tool names use consistent snake_case with a leading verb followed by a noun phrase. The pattern is predictable: sanitize_*, inspect_*, and diagnose_*.

Tool Count5/5

Four tools is well-scoped for a focused HAR sanitization and diagnostics server. Each tool covers a distinct workflow, and there are no redundant or filler tools.

Completeness4/5

The surface covers the core workflows: sanitizing HAR data, sanitizing related cURL/dump/DSN artifacts, safe JWT inspection, and HAR failure diagnosis. Minor gaps exist around generic log/console sanitization or configurable policy controls, but core use cases are covered.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues