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

aidoc-mcp

v0.0.1

Published

AI-assisted coding tool via MCP for better code understanding and modification

Readme

Aidoc

原作者 DJJ 和 Dannielee 已不再更新

当前版本由 linqiu919 持续优化更新

Thanks

Powered By AiHubMix

EN

Aidoc 是一个强大的AI辅助编码工具,通过模型上下文协议(Model Context Protocol,MCP)为AI代理提供更好的代码理解和修改能力。

MCP 设置

将以下 MCP 配置添加到你的 IDE 设置中:

{
  "mcpServers": {
    "aidoc": {
      "command": "npx",
      "args": ["aidoc-mcp"]
    }
  }
}

使用方法

  1. 在 Cursor/Windsurf 代理模式下发送以下命令初始化 aidoc:
do init-aidoc and follow the instructions
  1. 在大多数情况下,提示词将由 aidoc 自动组装。

  2. 当代理完成编写后,你可以提示:

do update-project-info

Cursor 设置

  1. 进入 设置 -> 规则 -> 用户规则
  2. 添加内容
在回应或修改代码之前,应首先通过`get-project-info`获取全面信息,然后再做决定。
  1. 添加内容
每次完成代码编辑后,调用`update-project-info`并按照响应中的指示进行操作
  1. 如果你使用的是Windows系统,添加
我当前使用的是Windows系统。使用类似"C:\Users\..."的路径格式

Windsurf 设置

  1. 进入 设置 -> cascade -> 记忆和规则 -> 全局规则
  2. 添加内容
在回应或修改代码之前,应首先通过`get-project-info`获取全面信息,然后再做决定。
每次完成代码编辑后,调用`update-project-info`并按照响应中的指示进行操作
  1. 如果你使用的是Windows系统,添加
我当前使用的是Windows系统。使用类似"C:\\Users\\..."的路径格式

核心功能

AI IDE 友好

  • 自动分析项目语言/结构/目的
  • 在编辑/代理模式下读取代码块
  • 记录每个LLM请求以便追踪

MCP 支持

  • 全面的项目结构
  • 完整的代码标准

自适应变化

  • 文件树
  • 项目结构变更
  • 代码标准验证

项目结构

项目使用TypeScript开发,主要文件结构如下:

  • .aidoc - 项目文档目录,存放项目相关的说明文档
  • index.ts - 主入口文件,包含MCP服务器实现和工具函数定义
  • package.json - 项目配置文件,定义依赖和脚本
  • tsconfig.json - TypeScript配置文件

技术栈

  • TypeScript(v5.7.3)
  • Node.js
  • @modelcontextprotocol/sdk(v1.5.0)
  • Zod(v3.24.2)

主要功能

该项目是一个MCP(Model Context Protocol)服务器实现,主要提供以下工具功能:

  1. get-project-info - 获取项目详细信息,帮助AI更好地理解代码
  2. update-project-info - 更新项目信息,维护.aidoc目录下的文档
  3. init-aidoc - 初始化.aidoc目录和文件,帮助建立项目文档结构