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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lucianaib/codemind-mcp

v3.0.0

Published

CodeMind MCP server integrating GitCode API and Coze workflow to generate a mind map link for a project

Readme

CodeMind MCP

一个 MCP(Model Context Protocol)服务器,通过自动化流程帮助用户快速理解代码仓库并生成思维导图。

背景

是不是老是忘记git命令?

  • 本MCP 可以用于管理仓库、拉取请求、问题等。

得到一个项目是不是看不懂项目?

  • 本MCP会作为一个专业的架构师,帮助你快速理解代码仓库并生成思维导图

核心功能

  1. gitcode_request: 通用的 GitCode API 调用工具,用于管理仓库、拉取请求、问题等。
  2. mindmap: 读取当前目录及其子目录中的所有 README.md 文件,生成思维导图:
    • 递归查找并收集所有 README.md 文件
    • 合并文件内容并调用 Coze 工作流生成思维导图
    • 返回思维导图公开访问链接

安装与使用

环境要求: Node.js >= 18.x

全局安装

npm install -g @lucianaib/codemind-mcp
codemind-mcp

在 MCP 客户端中配置

{
  "mcpServers": {
    "CodeMind": {
      "command": "npx",
      "args": ["@lucianaib/codemind-mcp"]
    }
  }
}

![CodeBuddy 配置成功示例.png](src\CodeBuddy 配置成功示例.png)

工具调用参数

gitcode_request

  • baseUrl: string (可选),如 https://api.gitcode.com
  • token: string,鉴权令牌(支持 Bearer <token> 或纯 token)
  • method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"
  • path: string,如 /v1/repos
  • query: Record<string, unknown> (可选)
  • body: Record<string, unknown> (可选)
  • headers: Record<string, string> (可选)

拉取项目示例.png

mindmap

  • prompt: string (可选),用于自定义生成思维导图的提示词

思维导图示例.png

开发与代码结构

  • src/index.ts: MCP 服务器入口,使用 McpServer 注册工具
  • src/gitcode.ts: GitCode API 的通用请求封装
  • src/mindmap.ts: README.md 文件收集及调用 Coze API 的核心逻辑

安全提示

重要: Coze API 凭证目前硬编码在 src/mindmap.ts 中,存在安全风险。生产环境请移至环境变量。

许可证

本项目采用 MIT 许可证。详见 LICENSE 文件。