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

@softerist/heuristic-mcp

v2.1.47

Published

An enhanced MCP server providing intelligent semantic code search with find-similar-code, recency ranking, and improved chunking. Fork of smart-coding-mcp.

Readme

Heuristic MCP Server 🧠

An enhanced MCP server for your codebase. It provides intelligent semantic search, Find-Similar-Code, Recency Ranking, and Smart Chunking. Optimized for Antigravity, Cursor, and Claude Desktop.


🚀 Key Features

  • Zero-Config Installation: Automatically detects your IDE (Antigravity, Cursor, Claude) and configures itself.
  • Smart Indexing: Automatically identifies your project type (Python, JS, etc.) and ignores irrelevant files.
  • Robust Caching: Pre-downloads AI models to avoid network blocks and caches embeddings globally or locally.
  • Semantic Search: Finds code by meaning, not just keywords (e.g., "auth logic" finds login.ts).
  • Resilient: Self-healing configuration and automatic recovery from race conditions.

📦 Installation

To install globally (recommended):

npm install -g @softerist/heuristic-mcp

That's it!

  • The installer automatically creates the mcp_config.json for your IDE.
  • It pre-downloads the AI model (all-MiniLM-L6-v2) to your cache.
  • Just Restart your IDE (or Reload Window) to start using it.

🛠️ CLI Commands

The heuristic-mcp tool is your control center.

Check Health & Status (Snapshots)

Use this to verify if the server is running and check indexing progress.

heuristic-mcp --status

Output:

  • 🟢 Server Status: Shows if the background process is running (PID).
  • 📁 Cache Info: Shows number of files indexed, chunks, and "Initializing..." status if still working.
  • ⚙️ Config Check: Validates that your IDE config files exist.

Live Logs (Streaming)

Use this to watch the server's brain at work in real-time.

heuristic-mcp --logs

Output:

  • Streams live logs from the server.
  • Shows file indexing progress (Processing 100/236 files...).
  • Useful for debugging why a specific file isn't being indexed.

Manual Registration

If you need to re-register the server manually:

heuristic-mcp --register

Stop Server

Forcefully stop all running instances:

heuristic-mcp --stop

Clear Cache

Wipe the index to force a complete rebuild:

heuristic-mcp --clean

⚙️ Configuration (config.json)

You can customize behavior by creating a config.json in your project root or ~/.heuristic-mcp/config.json.

{
  "excludePatterns": ["**/legacy-code/**", "**/*.test.ts"],
  "smartIndexing": true,
  "embeddingModel": "Xenova/all-MiniLM-L6-v2",
  "workerThreads": "auto"
}

Environment Variables

Override settings on the fly:

  • SMART_CODING_VERBOSE=true: Enable debug logs.
  • SMART_CODING_WORKER_THREADS=4: Force specific thread count.

🔧 Troubleshooting

"Server isn't starting"

  1. Run heuristic-mcp --status to see if config files exist.
  2. Run heuristic-mcp --logs and then Reload Window to see startup errors.

"Search returns no results"

  • Check heuristic-mcp --status. Does it say "Indexing: ✅ COMPLETE"?
  • If it says "Initializing...", wait a moment.
  • If it says "NO FILES", check your .gitignore or excludePatterns.

"Network error downloading model"

  • We pre-download models during npm install. Try running npm install -g @softerist/heuristic-mcp again to retry the download.

🤝 Contributing

Fork it, fix it, ship it. Open a PR!

License: MIT