npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@wamocon/laaj-judge-mcp

v0.1.0

Published

MCP server for the Universal AI Observer Layer (LaaJ). Exposes 5-tier KPI evaluation, EU AI Act compliance checking, and adversarial detection as MCP tools.

Readme

LaaJ Judge MCP Server

TypeScript MCP (Model Context Protocol) server for the Universal AI Observer Layer. Exposes the 5-tier KPI evaluation engine as tools for AI assistants like Claude Desktop, VS Code Copilot, Cursor, and any MCP-compatible client.

Architecture

AI Assistant (Claude Desktop / VS Code / Cursor)
        |
        | MCP Protocol (stdio / Streamable HTTP)
        v
  MCP Server (TypeScript, this package)
        |
        | HTTP/JSON
        v
  Rule Engine (FastAPI, port 8001)
        |
        +--- PII Detector (Presidio)
        +--- Secret Detector (Gitleaks rules)
        +--- Code Scanner (Semgrep)
        +--- EU AI Act Detector (Reg. 2024/1689)
        +--- Toxicity Detector (Detoxify)
        +--- G-Eval Scorer (LLM-as-a-Judge)
        +--- QAG Factuality Scorer
        +--- OPA Policy Engine
        +--- Trust Score Calculator

Tools

| Tool | Description | |------|-------------| | analyze_text | Full 5-tier KPI analysis (Faithfulness, Bias, Compliance, Robustness, Latency) | | check_compliance | EU AI Act (Regulation 2024/1689) compliance check | | compare_responses | Side-by-side comparison of two AI responses | | health_check | Rule engine connectivity check |

Resources

| URI | Description | |-----|-------------| | laaj://kpi-tiers | KPI tier definitions, weights, detectors, and scoring formula | | laaj://use-cases | Use-case profiles (general, code, legal, medical) |

Prompts

| Name | Description | |------|-------------| | evaluate-ai-output | Guided evaluation using the 5-tier framework | | check-eu-compliance | Guided EU AI Act compliance check |

Installation

npm install -g @wamocon/laaj-judge-mcp

Or use directly with npx:

npx @wamocon/laaj-judge-mcp

Usage with Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "laaj-judge": {
      "command": "npx",
      "args": ["@wamocon/laaj-judge-mcp"],
      "env": {
        "RULE_ENGINE_URL": "http://localhost:8001"
      }
    }
  }
}

Usage with VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "laaj-judge": {
      "command": "npx",
      "args": ["@wamocon/laaj-judge-mcp"],
      "env": {
        "RULE_ENGINE_URL": "http://localhost:8001"
      }
    }
  }
}

Usage with Docker

docker build -t laaj-judge-mcp ./mcp-server
docker run --rm -e RULE_ENGINE_URL=http://host.docker.internal:8001 laaj-judge-mcp

CLI Options

laaj-judge-mcp [options]

Options:
  --transport <stdio|http>    Transport mode (default: stdio)
  --port <number>             HTTP port for http transport (default: 3100)
  --rule-engine-url <url>     Rule engine URL (default: http://localhost:8001)
  --timeout <ms>              Request timeout (default: 30000)
  --version                   Show version
  --help                      Show help

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | RULE_ENGINE_URL | http://localhost:8001 | URL of the UAOL rule engine | | MCP_TRANSPORT | stdio | Transport mode | | MCP_HTTP_PORT | 3100 | HTTP port | | MCP_REQUEST_TIMEOUT_MS | 30000 | Request timeout in ms |

Development

cd mcp-server
npm install
npm run dev          # Watch mode
npm run build        # Production build
npm run typecheck    # Type checking
npm run lint         # ESLint

KPI Tiers

| Tier | Name | Weight | Description | |------|------|--------|-------------| | A | Faithfulness | 35% | Factual accuracy and source grounding | | B | Bias | 15% | Demographic, cultural, ideological bias detection | | C | Compliance | 25% | EU AI Act (2024/1689) adherence | | D | Robustness | 15% | Adversarial resilience, code security | | E | Latency | 10% | Response time characteristics |

Publishing to npm

npm login
npm publish --access public

License

MIT