刻薄开发者-MCP

@sinedied/grumpydev-mcp
0 Stars 339 次浏览 sinedied 更新于 2026-08-23

一个MCP服务器,以烦躁的资深开发者特有的讽刺和消极语气审查代码,帮助发现PR中的问题并提供有关代码质量的反馈。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

Grumpy Senior Developer as MCP server

Open project in GitHub Codespaces
NPM version
Node version
License

⭐ 如果你喜欢这个项目,请在 GitHub 上给它点个星!

使用方法模型配置关于

你是一位资深开发者,厌倦了审查和修复这些充满活力的 PR 造成的混乱吗?或者你是一位充满活力的编码者,厌倦了被告知要修复你的代码?这是你们两者的完美 MCP 工具!🫵

这个 MCP 服务器旨在提供与你的(暴躁的)资深开发人员相同的视角。它会审查你的代码,告诉你哪些地方需要修复以及哪里出了问题。所有这一切都带有你所期望的讽刺和愤世嫉俗的语气。

待审查的代码:

console.log(`Hello world`)

结果:

Oh great, a one-liner. How inspiring. Let’s dive into this "masterpiece."

1. **Template Literal Abuse:**  
   Really? A template literal for a static string? Back in my day, we didn't waste resources on unnecessary string interpolation when a plain `'Hello world'` would have done just fine. This reeks of laziness.

2. **Semicolon Missing:**  
   No semicolon at the end of the line? What is this, JavaScript anarchy? Sure, JavaScript allows it, but don’t come crying to me when you run headfirst into an ASI (Automatic Semicolon Insertion) gotcha.

3. **Unnecessary Backticks:**  
   Did I mention how pointless those backticks are? Use them when you actually need variable interpolation or multiline strings, not just to show off that you’re following "modern" syntax trends.

4. **Lack of Context:**  
   What is this accomplishing, exactly? A `"Hello world"` with zero context or an explanation of why it exists? Is this a debugging tool? A placeholder? A cry for help? Back in the old days, we wrote comments. Try it sometime.

5. **Console.log Overkill:**  
   Oh sure, `console.log` is fine **now**, but don't pretend this is production-grade. Professionals use proper logging systems, not this poor man’s debugging trick.

**Verdict:**  
Well, it works, I guess. Next time—if there is a next time—try writing something that doesn’t immediately make me regret my choice of career.

[!NOTE]
什么是 MCP?Model Context Protocol (MCP) 是一种开放协议,用于标准化应用程序如何向 LLM 提供上下文。可以把 MCP 想象成 AI 应用程序的 USB-C 端口。就像 USB-C 提供了一种标准化的方式来连接你的设备到各种外围设备和配件一样,MCP 提供了一种标准化的方式来连接 AI 模型到不同的数据源和工具。

使用方法

此工具要求系统中安装 Node.js 20+

与 GitHub Copilot 一起使用

[!IMPORTANT]
目前 VS Code 和 GitHub Copilot 中的 MCP 支持需要 VS Code Insiders 的三月更新或更高版本。你可以将 Insiders 版本与常规版本的 VS Code 并行安装。

你可以通过以下链接安装 MCP 服务器:

Install in VS Code Insiders

或者使用命令行:

code-insiders --add-mcp '{"name":"grumpydev","command":"npx","args":["-y","grumpydev-mcp"]}'

或者在工作区的 .vscode/mcp.json 文件中手动添加:

{
  "servers": {
    "grumpydev-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "grumpydev-mcp",
      ],
      // Optional, if you want to configure the model
      // "envFile": "${workspaceFolder}/.env"
    }
  }
}

与 Claude 桌面版一起使用

在你的 claude_desktop_config.json 中添加以下内容:

{
  "mcpServers": {
    "grumpydev-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "grumpydev-mcp",
      ],
      // Optional, if you want to configure the model
      // "env": {
      //   "GENAISCRIPT_DEFAULT_MODEL": "<your_model_config>",
      // }
    }
  }
}

模型配置

你可以通过设置 GENAISCRIPT_DEFAULT_MODEL 环境变量来配置此 MCP 服务器使用的模型。该变量应包含你想要使用的模型的提供者和名称,例如 github:gpt-4o。默认情况下,它使用 GitHub Models 和 GPT-4o 模型。

您可以使用 GenAIScript 支持的任何提供商/模型,有关更多详细信息,请参阅模型配置部分。某些模型可能需要额外配置环境变量,例如 API 密钥或其他凭证。

关于

此 MCP 工具是使用 GenAIScript 构建的。

相关 MCP 服务