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

@vibecheckai/mcp-server

v1.2.0

Published

VibeCheck — AI Code Firewall | MCP Server for hallucination prevention in AI-assisted development

Readme

@vibecheckai/mcp-server


What is this?

The VibeCheck MCP Server provides AI agents (like Claude, Cursor, Windsurf) with tools to prevent hallucinations in generated code. It integrates directly with MCP-compatible clients to:

  • Block ghost routes - Prevent AI from referencing API endpoints that don't exist
  • Validate environment variables - Ensure env vars exist before they're used
  • Enforce file locks - Protect critical files from AI modification
  • Generate truthpacks - Create a source of truth from your codebase
  • Provide smart context - Give AI accurate information about your project

Installation

# npm
npm install -g @vibecheckai/mcp-server

# pnpm
pnpm add -g @vibecheckai/mcp-server

# yarn
yarn global add @vibecheckai/mcp-server

Quick Start

Cursor Integration

Add to your Cursor MCP settings (~/.cursor/mcp.json):

{
  "mcpServers": {
    "vibecheck": {
      "command": "vibecheck-mcp"
    }
  }
}

Claude Desktop

Add to your Claude MCP settings (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "vibecheck": {
      "command": "vibecheck-mcp"
    }
  }
}

CLI Usage

# Start with stdio (default, for Cursor/Claude)
vibecheck-mcp

# Start HTTP server (for custom integrations)
vibecheck-mcp --http --port 3001

# Start WebSocket server (for real-time connections)
vibecheck-mcp --websocket --port 3002

# Show help
vibecheck-mcp --help

Available Tools

Truthpack Tools

| Tool | Description | |------|-------------| | truthpack_generate | Scan codebase and generate truthpack (routes, env, auth, contracts) | | truthpack_query | Query truthpack for specific information | | truthpack_validate | Validate truthpack against current codebase | | truthpack_routes | Get API routes with filtering | | truthpack_env | Get environment variables (required/optional) |

Firewall Tools

| Tool | Description | |------|-------------| | firewall_evaluate | Full evaluation with evidence resolution | | firewall_quick_check | Fast hallucination check | | firewall_get_tier | Get confidence tier for a rule | | firewall_should_block | Check if tier should block | | firewall_tier_stats | Get statistics by confidence tier | | firewall_set_mode | Set mode (observe/enforce/lockdown) |

Context Tools

| Tool | Description | |------|-------------| | context_gather | Gather AI context for a coding task | | context_file | Get context for a specific file | | context_smart | Smart context based on task description |

Validation Tools

| Tool | Description | |------|-------------| | validate_code | Validate generated code against truthpack | | validate_imports | Check import statements | | validate_api_calls | Verify API endpoint usage |

Intent (ISL) Tools

| Tool | Description | |------|-------------| | intent_set | Set current coding intent/spec | | intent_get | Get active intent | | intent_clear | Clear current intent | | intent_validate | Validate code against intent |

Hook Tools

| Tool | Description | |------|-------------| | hook_pre_generation | Pre-generation checks with enhanced context | | hook_post_generation | Validate generated code for issues | | hook_file_write | Validate file write operations |

Lock Tools

| Tool | Description | |------|-------------| | lock_check | Check if file/folder is locked | | lock_list | Get all locked files/folders |

Forge Tools

| Tool | Description | |------|-------------| | forge_generate | Generate AI context rules for .cursor/rules | | forge_scan | Scan codebase for rule generation |

DocGuard Tools

| Tool | Description | |------|-------------| | docguard_check | Check documentation quality | | docguard_validate | Validate docs against code |

Translator Tools

| Tool | Description | |------|-------------| | translate_nl_to_isl | Convert natural language to ISL spec | | translate_isl_to_checks | Convert ISL to validation checks |


Confidence Tiers

The firewall uses three confidence tiers:

| Tier | Confidence | Behavior | |------|------------|----------| | hard_block | High | Ghost routes, missing env vars → Always blocks | | soft_block | Medium | Dynamic routes, patterns → Blocks in enforce mode | | warn | Low | Style issues, best practices → Warning only |


Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | VIBECHECK_MODE | Mode (local/cloud/hybrid) | local | | VIBECHECK_TRANSPORT | Transport (stdio/http/websocket) | stdio | | VIBECHECK_PORT | Port for HTTP/WS | 3001 | | VIBECHECK_HOST | Host for HTTP/WS | localhost | | VIBECHECK_PROJECT_ROOT | Project root path | process.cwd() |


Example Usage

Once the MCP server is connected, AI agents can use tools like:

User: Add a new API endpoint for user profiles

AI (using truthpack_routes): Let me check existing routes...
   Found 15 routes. Similar patterns: GET /api/v1/users/:id

AI (using hook_pre_generation): Running pre-generation checks...
   ✓ No conflicts with existing routes
   ✓ Auth patterns identified

AI: I'll create GET /api/v1/users/:id/profile following your existing patterns...

Development

# Clone the monorepo
git clone https://github.com/vibecheckai/vibecheck.git
cd vibecheck

# Install dependencies
pnpm install

# Build MCP server
pnpm --filter @vibecheckai/mcp-server build

# Run tests
pnpm --filter @vibecheckai/mcp-server test

# Start in dev mode
pnpm --filter @vibecheckai/mcp-server dev

Related Packages


Changelog

v1.2.0

  • Enhanced Tool Set - All MCP tools verified and tested
  • Improved Firewall - Better confidence tier evaluation
  • Context Tools - Smarter context gathering for AI agents
  • Performance - Faster truthpack generation and validation
  • Stability - Various bug fixes and improvements

v1.1.1

  • Bug fixes and stability improvements

v1.1.0

  • Added confidence tiers (hard_block, soft_block, warn)
  • Added tier statistics tool
  • Improved firewall evaluation
  • Added DocGuard and Translator tools

v1.0.0

  • Initial release
  • Truthpack management tools
  • Firewall evaluation
  • Context gathering
  • ISL (Intent Specification Language) support

License

MIT © VibeCheck Team