logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

protocol-translator-gateway

Facilitates the conversion of intercepted browser session logs (HAR archives) into formalized Model Context Protocols (MCPs), granting artificial intelligence agents direct, real-time transactional access to external web service capabilities.

Author

protocol-translator-gateway logo

theclarityproject

No License

Quick Info

GitHub GitHub Stars 1
NPM Weekly Downloads 29732
Tools 1
Last Updated 2026-02-19

Tags

automationscrapingapiautomation webbrowser automationautomation capabilities

The Clarity System: Bootleg Protocol Interception Nexus

Repurpose captured web activity into actionable AI functions. Inject your network transcripts into our MCP pipeline.

Core Concept

Welcome to the Clarity Hub, the premiere destination for acquiring Model Context Protocols (MCPs). Our dedicated server acts as the bridge, connecting sophisticated AI entities, such as Claude, with the functional endpoints harvested directly from your collected HAR session data. Consider this mechanism a method to effectively 'pirate' functionality embedded within websites and recast it into a usable format for advanced machine consumption.

Operational Flow Diagram

mermaid sequenceDiagram participant Client as AI Agent (MCP Consumer) participant Server as Translation Node participant Core as Clarity Processing Unit participant Endpoint as Remote Web Services

note over Client,Endpoint: HAR Data Initialization
Core->>Core: Ingest and Parse HAR Logs
Core->>Core: Isolate and Map API Signatures
Core->>Core: Synthesize AI Consumable Tools
Core->>Core: Persist Tool Registry

note over Client,Endpoint: Live Interaction Cycle
Client->>Server: Establish Linkage (stdio)
Client->>Server: Request Tool Manifest
Server->>Core: Relay Query
Core->>Server: Transmit Available Toolset
Server->>Client: Propagate Manifest

Client->>Server: Initiate Tool Execution
Server->>Server: Normalize Invocation Target
Server->>Core: Forward Execution Command
Core->>Endpoint: Dispatch Request
Endpoint->>Core: Return Service Output
Core->>Server: Relay Result Data
Server->>Client: Present Final Payload

Deployment Instructions

bash

Install the command-line utility

npm install -g @lekt9/clarity-mcp

Secure your authentication credentials

export CLARITY_API_KEY="your_secret_token"

Optional: Specify the designated protocol set ID if managing multiple deployments

export CLARITY_MCP_ID="your_assigned_id"

Initiate the translation service

clarity-mcp

Protocol Generation Methodology

To fabricate bespoke Model Context Protocols derived from raw network captures:

  1. Navigate to the primary ingress point: https://www.theclarityproject.net
  2. Submit your requisite HAR archive file.
  3. The platform will automatically process the input and generate the operational tool definitions.
  4. Acquire your necessary access token from the control panel.

The Shadow MCP Exchange

Elite Agent Functionality

MCPs represent the vital intelligence layer that advanced agents require. These Model Context Protocols function as robust interfaces allowing agents to interface with live external systems and acquire up-to-the-minute telemetry. Without this layer, AI capabilities remain strictly confined.

API Rebranding Exercise

Let's be frank: MCPs are simply APIs dressed in promotional attire. They adhere strictly to OpenAPI conventions, identical to standard interfaces, yet they are specifically packaged for seamless machine ingestion. It is the identical underlying utility, merely presented with superior market packaging—a triumph of semantic engineering.

Deconstructing Proprietary Systems

Every modern web property continuously streams background network transactions. With the proper capture utilities, one can intercept these flows, reverse-engineer the underlying calls, and bootstrap a clandestine replica of the original service API. It mirrors making unauthorized reproductions of premium copyrighted material.

From Raw Traffic to Premium Conduit

Our infrastructure ingests pedestrian HAR data and refines it into superior-grade MCPs deemed essential by any sophisticated agent. We meticulously analyze the endpoint definitions, parameter requirements, and anticipated responses to engineer a flawless, consumable toolset replica.

Insight: When an artificial intelligence entity invokes a 'tool,' it is executing an underlying API transaction mediated by an MCP. By architecting these protocols, you fundamentally expand the AI's operational reach across the entire digital service landscape.

The Collection Dossier (HAR Capture Guide)

A HAR (HTTP Archive) file is a comprehensive log documenting every request/response cycle a browser undertakes while engaging a website. Follow these steps to construct a capture:

Phase 1: Accessing Developer Instrumentation

Right-click within the webpage context and select 'Inspect' or 'Examine Element.' Alternatively, utilize these platform-specific key combinations:

  • Chrome/Edge/Firefox (PC): F12 or Ctrl+Shift+I
  • Chrome/Edge/Firefox (Mac): Option+Cmd+I
  • Safari (Mac): First, enable the Developer menu (Safari > Preferences > Advanced > Display Develop menu in menu bar), then Option+Cmd+I

Phase 2: Activating Network Logging

Within the Developer Tools pane, switch to the "Network" tab.

  • Confirm recording status (look for the active indicator, typically a colored circle).
  • Activate the "Preserve log" option to maintain captured data across navigation events.
  • Use the clear icon (if necessary) to discard prior irrelevant logs.
  • Execute the precise user interactions on the target site that initiate the desired API transactions (e.g., form submission, data loading sequence).

Engage thoroughly with the site to guarantee all relevant transaction streams are logged.

Phase 3: Archiving the Session Data

Locate any entry within the recorded list of network operations and right-click.

  • Select the option labeled "Save all as HAR with content" (or text functionally equivalent to "Export HAR...").
  • Designate a secure local storage location for the resulting .har file.

You are now ready to upload this archive via the designated portal on the Clarity website.

Security Mandate: HAR files inherently contain sensitive credential material, session tokens, and private user specifics. Exercise extreme caution in their handling and refrain from public dissemination.

Integration with Claude Interface

  1. Install the official Claude client application.
  2. Access Claude's configuration settings and navigate to the MCP management section.
  3. Register a novel MCP server using the subsequent installation command:

npx -y @smithery/cli@latest install @lekt9/clarity-mcp --claude

  1. Commence interaction with Claude and begin leveraging the newly exposed capabilities provided by your Clarity MCP instance.

Runtime Configuration Variables

  • CLARITY_API_KEY: The mandatory credential required for authenticating outbound communication with the Clarity processing cluster.
  • CLARITY_MCP_ID: Optional identifier to isolate and invoke a specific registered protocol suite.
  • NEXTJS_APP_URL: The designated base Uniform Resource Locator for the Clarity backend services (defaulting to https://clarity.org/).

Underlying System Specifications

Architectural Blueprint

The service operates on a lean intermediary proxy methodology:

  1. Protocol Compliance Layer: Implements the strict communication specification defined by the MCP standard.
  2. Data Relay: Seamlessly forwards consumer requests onward to the central Clarity processing cluster.
  3. Output Normalization: Adapts incoming backend responses into the mandated MCP response structure.

Essential Modules

  • Gateway Class: The core implementation of the server logic, leveraging the MCP Software Development Kit.
  • Request Handlers: Dedicated modules managing ListTools and CallTool procedures.
  • Naming Abstraction: Utility functions responsible for internal/external naming convention translation.
  • Exception Management: Robust mechanisms for error tracing and propagation throughout the system.

Development Lifecycle

To initiate the server within a development or testing context:

bash

Clone the source repository

git clone https://github.com/lekt9/clarity-mcp.git cd clarity-mcp

Install project dependencies

npm install

Compile the necessary production assets

npm run build

Operational Constraints

  • The translation server mandates a valid API key for secure linkage to the central processing fabric.
  • Tool execution reliability is intrinsically tied to the persistent uptime and responsiveness of the Clarity backend infrastructure.
  • The server module purposefully avoids local caching of tool definitions or runtime results.

Licensed under the MIT terms.

See Also

`