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

mcp-config-doctor

v0.1.1

Published

A local-first CLI that diagnoses MCP config files before your AI client fails to connect.

Readme

为什么做这个

MCP 正在变成 AI 客户端连接工具、文件、API 和本地服务的标准方式。真正卡人的地方通常不是协议本身,而是配置:JSON 写错、命令不在 PATH、args 写成字符串、token 直接粘进配置,客户端最后只给一个很模糊的失败提示。

mcp-config-doctor 做的是启动前体检:

  • 检查 MCP 配置里的 JSON、server 结构、命令、参数、环境变量和 URL。
  • 发现常见的 token 泄露风险,方便你分享报告前先处理。
  • 输出终端文本、JSON 或 Markdown,适合本地排查和 GitHub Issue。
  • 全程本地运行,不上传你的配置。

快速开始

npx mcp-config-doctor --config claude_desktop_config.json

生成 Markdown 报告:

npx mcp-config-doctor --config mcp.json --markdown > mcp-report.md

在 CI 里使用,低于指定分数就失败:

npx mcp-config-doctor --config fixtures/valid.mcp.json --min-score 80

对本地 stdio server 做短启动探测:

npx mcp-config-doctor --config mcp.json --start

检查项

| 检查 | 能发现什么 | 为什么重要 | | --- | --- | --- | | JSON parse | 配置语法错误 | 很多客户端不会清楚显示解析错误 | | mcpServers / servers | 缺少 server 配置块 | 常见客户端通常需要这种结构 | | command / url | 没有启动目标 | 本地 server 和远程 server 配法不同 | | PATH lookup | 命令没安装或客户端找不到 | 终端能跑,不代表客户端能跑 | | args type | 把数组写成字符串 | 复制示例时最常见 | | env type | 环境变量格式错误 | 会导致 server 启动失败 | | Secret-like values | token 被直接写进配置 | 分享报告前需要先脱敏 | | Startup probe | 进程一启动就退出 | 提前发现本地 stdio server 问题 |

示例配置

{
  "mcpServers": {
    "filesystem": {
      "command": "node",
      "args": ["server.js"],
      "env": {
        "ROOT": "."
      }
    },
    "remote-api": {
      "url": "https://example.com/mcp"
    }
  }
}

安全边界

这是配置体检工具,不是完整安全扫描器。它能发现常见配置错误和明显的 secret-like 字符串,但不能证明某个 MCP server 一定安全。安装任何能读文件、执行命令或访问私有 API 的 server 前,都应该先看源码和权限范围。

Roadmap

  • 补充 Claude Desktop、Cursor、Codex、Cline、Windsurf 的默认配置路径。
  • 增加 MCP initialize 握手探测。
  • 增加 SARIF 和 GitHub Actions 注释输出。
  • 增加报告脱敏助手,方便公开发 Issue。
  • 收集更多真实配置样例作为 fixtures。

参与贡献

欢迎从小 PR 开始:新增客户端配置路径、新增 fixture、优化检查提示、补充某个客户端的配置坑。

流程见 CONTRIBUTING.md

License

MIT

Quality Gate

Use this project as a repeatable gate before an AI agent marks work as done: