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

@deslint/mcp

v0.8.0

Published

MCP server for Deslint, the verification layer for AI-generated code — deterministic checks Claude Code, Cursor, Codex, and Windsurf call before writing a file

Readme

@deslint/mcp

The verification layer for AI-generated code — MCP server.

MCP npm license

Local-first Model Context Protocol server that lets Claude Code, Cursor, Claude Desktop, Windsurf, and any MCP-compatible client verify and auto-fix AI-generated code in real time — before it writes the file. Pure local static analysis. Zero LLM in the hot path. Zero code leaves your machine.

Install

Pick the flow that matches your editor. All of them end up configuring the same @deslint/mcp binary as an MCP server — choose whatever is least friction on your machine.

Claude Code (recommended)

claude mcp add deslint -- npx -y @deslint/mcp serve

Cursor — one-click install

Install in Cursor

Auto-detect every supported editor

# Writes config for Cursor + Claude Desktop on macOS, Linux, and Windows
npx @deslint/mcp install

Remove the configuration at any time with npx @deslint/mcp uninstall.

Manual JSON

If auto-install doesn't work, add to your MCP config:

{
  "mcpServers": {
    "deslint": {
      "command": "npx",
      "args": ["-y", "@deslint/mcp", "serve"]
    }
  }
}

Typical config locations:

| Client | Path | | --- | --- | | Claude Code | ~/.claude/mcp.json | | Cursor | ~/.cursor/mcp.json | | Claude Desktop (macOS) | ~/Library/Application Support/Claude/claude_desktop_config.json | | Claude Desktop (Windows) | %APPDATA%\Claude\claude_desktop_config.json |

Requirements: Node.js v20+

Tools

Every tool is declared with MCP annotations (readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false) and returns typed structuredContent in addition to a human-readable text block, so agents can parse results without scraping stringified JSON.

analyze_file

Lint a single file and return violations with a file-level score.

  • Inputs: filePath (required), projectDir (optional, defaults to cwd)
  • Returns: violations[], score (0–100), totalErrors, totalWarnings

analyze_project

Scan an entire project for design-quality violations.

  • Inputs: projectDir (optional), maxFiles (optional, default 200, max 5000)
  • Returns: overallScore (0–100), grade, per-category breakdown (colors, spacing, typography, responsive, consistency), topViolations[]

analyze_and_fix

Analyze a file and return the auto-fixed version. Never modifies the file on disk — the agent decides whether to apply fixedCode.

  • Inputs: filePath (required), projectDir (optional)
  • Returns: fixedCode, fixedViolations count, remainingViolations[], hasChanges boolean

compliance_check

Run a WCAG 2.2 compliance evaluation on a project.

  • Inputs: projectDir (optional), maxFiles (optional)
  • Returns: levelReached (A/AA/AAA/none), wcag21LevelReached (ADA Title II legal floor), per-criterion pass/fail status

get_rule_details

Get metadata for a specific Deslint rule — category, auto-fix capability, remediation effort, WCAG mapping, documentation URL.

  • Inputs: ruleId (required; accepts either no-arbitrary-colors or deslint/no-arbitrary-colors)

suggest_fix_strategy

Suggest which design violations to fix first, ordered by impact-per-effort.

  • Inputs: projectDir (optional), maxFiles (optional), maxSuggestions (optional, default 10, max 100)
  • Returns: Suggestions ranked by impactScore, with per-rule effort estimates and actionable recommendations.

How it works

Runs locally via stdio (JSON-RPC 2.0). All analysis happens on your machine — no code leaves your environment.

AI self-correction loop:

  1. AI generates code
  2. MCP tool analyzes the file for design violations
  3. AI receives violation details (rule, message, fix suggestion)
  4. AI corrects the code
  5. Re-analyze to confirm fixes

See it in action

This repo ships a real JSON-RPC client you can run against the compiled server to watch the loop end-to-end — no mock, no LLM, no cloud:

pnpm --filter @deslint/mcp build
node packages/mcp/demo/self-correction-loop.mjs

The script spawns @deslint/mcp over stdio, runs initializetools/listanalyze_fileanalyze_and_fix against a deliberately broken Button.tsx, and pretty-prints every protocol beat. The same recording powers the "Real terminal session" tab on deslint.com.

Security

  • Local-only. The stdio transport runs as a subprocess of your editor; no HTTP listener, no remote endpoints.
  • Path traversal guarded. All file paths are resolved relative to the declared projectDir; the containment check is cross-platform (uses path.relative rather than separator-string prefix).
  • File-size cap. Files larger than 10 MB are rejected to prevent memory exhaustion.
  • Scan-count cap. analyze_project, compliance_check, and suggest_fix_strategy clamp maxFiles to ≤ 5000 per request.
  • No source code ever leaves the machine. Rules run through the local ESLint engine; nothing is sent over the network.

Compatibility

  • MCP protocol: 2025-06-18 (stdio transport)
  • SDK: @modelcontextprotocol/sdk ^1.29
  • Node: ≥ 20.19

License

MIT