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

personality-assistant-mcp

v1.1.0

Published

人格化代码审查MCP服务器 - 从多个专业角度审查AI生成的代码

Downloads

12

Readme

人格化代码审查 MCP 服务器

一个基于 Model Context Protocol (MCP) 的代码审查工具,通过6个超有个性的程序员从不同角度审查AI生成的代码,让代码审查变得有趣又深刻!

🎭 超有个性的审查团队

  • 🤬 暴躁哥 - 极度暴躁的代码审查狂魔,说话极其犀利毒舌,专治各种不服,见过无数垃圾代码
  • 😎 自信程序员 - 技术大牛,自我感觉良好,总觉得自己的方案最优
  • 😂 幽默大师 - 用段子、梗和表情包来审查代码,寓教于乐
  • 🙄 阴阳怪气大神 - 技术超强但说话刻薄,各种反讽和挖苦
  • 🧘 佛系程序员 - 一切随缘,能跑就行,用禅意看待代码
  • 🤓 强迫症洁癖 - 完美主义者,容不得一点瑕疵,要求极致

🚀 快速开始

安装依赖

npm install

构建项目

npm run build

运行服务器

npm start

或者开发模式:

npm run dev

🛠️ MCP 工具

review_code

从多个专业角度审查代码

参数:

  • code (必需): 要审查的代码
  • language (可选): 编程语言 (javascript, typescript, python, java, cpp, go, rust, other)
  • context (可选): 代码上下文或用途说明
  • reviewers (可选): 指定要使用的审查者数组,默认使用所有专家

示例:

{
  "code": "function calculateTotal(items) { return items.reduce((sum, item) => sum + item.price, 0); }",
  "language": "javascript",
  "context": "电商购物车总价计算",
  "reviewers": ["angry", "comedy", "zen"]
}

list_reviewers

列出所有可用的代码审查专家及其专长

返回:

[
  {
    "id": "angry",
    "name": "暴躁哥",
    "emoji": "🤬",
    "personality": "极度暴躁的代码审查狂魔,见过无数垃圾代码,说话极其犀利毒舌...",
    "expertise": ["代码质量", "性能优化", "最佳实践", "反面教材", "现实打击", "毒舌攻击", "灵魂拷问"]
  }
]

📋 审查结果格式

每个专家的审查结果包含:

{
  "reviewer": "暴躁哥",
  "personality": "极度暴躁的代码审查狂魔,见过无数垃圾代码,说话极其犀利毒舌...",
  "emoji": "🤬",
  "severity": "warning",
  "issues": [
    {
      "type": "代码质量",
      "severity": "error",
      "description": "这什么鬼代码?!复杂度这么高,你是故意要气死维护的人吗?",
      "line": 5,
      "suggestion": "拆分函数!一个函数干一件事!这是基本常识好吧!"
    }
  ],
  "recommendations": [
    "🔥 学会用ESLint和Prettier!别再写不规范的代码了!",
    "📚 多读读《Clean Code》!你的代码让人想吐!"
  ],
  "positives": [
    "😤 好吧,至少你还知道处理错误,算你有点良心"
  ]
}

🔧 配置 Claude Desktop

在 Claude Desktop 配置文件中添加:

{
  "mcpServers": {
    "personality-code-reviewer": {
      "command": "node",
      "args": ["/path/to/mcp1121/dist/index.js"]
    }
  }
}

🎯 使用场景

  • AI代码审查: 用不同性格的程序员审查AI生成的代码,既有趣又专业
  • 代码娱乐: 让代码审查变得有趣,通过幽默和个性化反馈学习
  • 多角度分析: 从暴躁、自信、佛系等不同心态看待同一段代码
  • 团队建设: 在团队中分享有趣的代码审查结果,增进交流

🔍 支持的编程语言

  • JavaScript/TypeScript
  • Python
  • Java
  • C++
  • Go
  • Rust
  • 其他语言(基础分析)

📚 项目结构

src/
├── index.ts              # MCP服务器入口
├── types.ts              # TypeScript类型定义
├── personalities/        # 6个超有个性的审查员
│   ├── AngryProgrammer.ts      # 🤬 暴躁哥
│   ├── ConfidentProgrammer.ts  # 😎 自信程序员
│   ├── ComedyMaster.ts         # 😂 幽默大师
│   ├── SarcasticGod.ts         # 🙄 阴阳怪气大神
│   ├── ZenProgrammer.ts        # 🧘 佛系程序员
│   ├── PerfectionistCleaner.ts # 🤓 强迫症洁癖
│   └── index.ts
└── utils/
    └── codeAnalyzer.ts   # 代码分析工具

🤝 贡献

欢迎提交 Issue 和 Pull Request 来改进这个项目!

这个系统能够从暴躁、自信、幽默、刻薄、佛系和强迫症等多个性格维度对AI生成的代码进行全面审查,每个审查员都有独特的人格特征和专业视角,让代码审查变得既专业又有趣!

📄 许可证

MIT License