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

@hitechclaw/doc-mcp

v1.0.0

Published

HiTechClaw Dev Docs MCP Server — Developer documentation knowledge base accessible via MCP for AI-assisted coding

Downloads

59

Readme

@hitechclaw/doc-mcp

MCP Server cho kho tài liệu developer của HiTechClaw platform. Khi VS Code AI (Copilot, Claude, etc.) code, nó sẽ tự động gọi MCP server này để tìm tài liệu liên quan trong kho.

Architecture

data/dev-docs/           ← Kho tài liệu (Markdown files)
├── conventions/         ← Coding conventions & patterns
├── architecture/        ← Architecture decisions
├── guides/              ← How-to guides
├── api/                 ← API documentation
├── troubleshooting/     ← Common issues & fixes
└── examples/            ← Code examples

packages/doc-mcp/        ← MCP Server  
├── src/
│   ├── server.ts        ← MCP server + tools
│   ├── doc-store.ts     ← Document indexing & search engine
│   ├── bin.ts           ← Standalone entry point
│   └── index.ts         ← Barrel export

MCP Tools

| Tool | Mô tả | |------|--------| | search_docs | Full-text search tài liệu theo keyword/câu hỏi | | get_doc | Lấy full nội dung document theo ID | | list_doc_categories | Duyệt danh mục tài liệu | | list_docs | Liệt kê documents trong 1 category |

VS Code Integration

Đã cấu hình sẵn trong .vscode/mcp.json:

{
    "servers": {
        "hitechclaw-dev-docs": {
            "type": "stdio",
            "command": "npx",
            "args": ["tsx", "packages/doc-mcp/src/bin.ts"],
            "env": {
                "DOCS_ROOT": "${workspaceFolder}/data/dev-docs"
            }
        }
    }
}

VS Code sẽ tự động khởi động MCP server khi mở workspace. AI agents có thể:

  1. search_docs "gateway route pattern" → Tìm conventions về cách viết API routes
  2. get_doc "conventions/typescript" → Đọc full conventions về TypeScript
  3. list_doc_categories → Xem có những loại tài liệu nào

CLI Commands

# Initialize dev-docs directory
npm run cli -- docs init

# List all docs
npm run cli -- docs list

# List docs in category
npm run cli -- docs list conventions

# Search docs
npm run cli -- docs search "drizzle schema"

# Add new doc
npm run cli -- docs add api/sessions "Sessions API" --tags api,sessions,rest

Adding Documentation

  1. Tạo file .md trong data/dev-docs/<category>/:
---
tags: [tag1, tag2]
---

# Document Title

Content here...
  1. MCP server tự động index khi nhận request (hot-reload).

Running Standalone

# Via tsx (development)
DOCS_ROOT=./data/dev-docs npx tsx packages/doc-mcp/src/bin.ts

# Via compiled (production)
npm run build -w packages/doc-mcp
DOCS_ROOT=./data/dev-docs node packages/doc-mcp/dist/bin.js