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

protools-mcp

v1.0.0

Published

ProTools MCP - 可扩展的工具盒,封装一些实用工具。

Downloads

77

Readme

ProTools MCP Server

可扩展的 MCP 工具盒,封装日常开发脚本。支持代码合并、AI 代码审查等功能。

功能特性

  • 代码合并:将多个源文件合并为单一上下文,支持压缩模式
  • AI 代码审查:支持 OpenAI GPT-5.2 和 Google Gemini 3 Flash 双模型并发审查
  • 异步任务:长时间任务支持异步执行和轮询查询

工具列表

protools_merge_files

合并多个源代码文件,供对话模型作为上下文使用。

| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | inputs | string[] | 必填 | 文件/目录/glob 路径列表 | | mode | full \| compact \| skeleton | compact | 压缩模式 | | extensions | string[] | - | 过滤扩展名,如 [".ts", ".js"] | | excludes | string[] | - | 排除的 glob 模式 | | group | boolean | false | 按输入路径分组输出 | | output | inline \| file | inline | 输出方式 | | output_dir | string | output/ | 输出目录 | | max_bytes | number | - | 超过此字节数强制落盘 |

压缩模式

  • full:保留全部内容
  • compact:移除注释和 import
  • skeleton:仅保留签名

protools_code_review

使用 AI 对代码进行同步审查。

| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | inputs | string[] | - | 文件/目录/glob 路径(与 git_mode 二选一) | | git_mode | staged \| unstaged \| all | - | Git diff 模式 | | include_full_files | boolean | true | Git 模式下是否包含完整文件内容 | | include_project_context | boolean | true | 是否包含项目上下文 | | focus | security \| performance \| quality \| maintainability \| all | all | 审查关注领域 | | provider | openai \| gemini | - | 指定单个 Provider | | mode | full \| compact | compact | 代码压缩模式 | | context | string | - | 附加审查说明 | | output | inline \| file | inline | 输出方式 |

protools_code_review_start

启动异步代码审查任务,返回任务 ID。

| 参数 | 类型 | 默认值 | 说明 | |------|------|--------|------| | 继承 protools_code_review 全部参数 ||| | providers | string[] | - | 并发使用的 Provider 列表 | | wait_first_result_ms | number | 0 | 等待首个结果的超时时间(毫秒) |

protools_code_review_status

查询异步代码审查任务状态。

| 参数 | 类型 | 说明 | |------|------|------| | task_id | string | 任务 ID |

环境变量配置

# OpenAI 配置
OPENAI_API_KEY=sk-xxx           # OpenAI API Key
OPENAI_BASE_URL=                # 可选,自定义 API 地址

# Gemini 配置
GEMINI_API_KEY=xxx              # Google AI API Key
GEMINI_THINKING_LEVEL=HIGH      # 思考级别:NONE | LOW | MEDIUM | HIGH

# Provider 配置
LLM_PROVIDER=openai,gemini      # 默认使用的 Provider(逗号分隔)
CONCURRENT_REVIEW=true          # 是否启用并发审查
ASK_USER_FEEDBACK=false         # 是否询问用户反馈

MCP 配置示例

Claude Desktop / Cursor

{
  "mcpServers": {
    "protools": {
      "command": "node",
      "args": ["/path/to/ProTools/dist/index.js"],
      "env": {
        "OPENAI_API_KEY": "sk-xxx",
        "GEMINI_API_KEY": "xxx",
        "LLM_PROVIDER": "openai,gemini",
        "CONCURRENT_REVIEW": "true",
        "GEMINI_THINKING_LEVEL": "HIGH"
      }
    }
  }
}

开发模式(使用 tsx)

{
  "mcpServers": {
    "protools": {
      "command": "npx",
      "args": ["tsx", "/path/to/ProTools/src/index.ts"],
      "env": {
        "OPENAI_API_KEY": "sk-xxx",
        "GEMINI_API_KEY": "xxx",
        "LLM_PROVIDER": "openai,gemini"
      }
    }
  }
}

开发

# 安装依赖
npm install

# 开发运行
npm run dev

# 编译
npm run build

# 类型检查
npx tsc --noEmit

项目结构

src/
├── index.ts                 # MCP Server 入口
├── core/
│   ├── io.ts               # 文件 IO 工具
│   ├── merge.ts            # 代码合并逻辑
│   ├── git.ts              # Git 操作
│   ├── project-context.ts  # 项目上下文收集
│   └── llm/                # LLM Provider
│       ├── index.ts
│       ├── base-provider.ts
│       ├── openai-provider.ts
│       └── gemini-provider.ts
├── tools/
│   ├── merge-files.ts      # 合并文件工具
│   ├── code-review.ts      # 代码审查工具
│   └── review/             # 审查子模块
│       ├── task-store.ts   # 任务存储
│       ├── report-generator.ts
│       └── result-processor.ts
├── prompts/
│   ├── review-prompt.ts    # Prompt 构建器
│   └── templates/          # Prompt 模板
└── types/
    ├── merge.ts
    └── review.ts

License

MIT