首页
学习
活动
专区
圈层
工具
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
首页
学习
活动
专区
圈层
工具
MCP广场
MCP广场 >详情页
mentor-mcp-server2025-05-210分享
github
通过Deepseek API为大型语言模型代理提供人工智能驱动的代码审查、设计评论、写作反馈和头脑风暴指导,从而在各种开发和战略规划任务中提升输出效果。
By cyanheads
2025-05-210
github
详情内容

mentor-mcp-server

TypeScript
Model Context Protocol
Version
License
Status
GitHub

一个 Model Context Protocol 服务器,通过 AI 驱动的 Deepseek-Reasoning (R1) 导师功能为 LLM 代理提供第二意见,包括代码审查、设计批评、写作反馈和创意头脑风暴等功能。通过 Deepseek API,让您的 LLM 代理获得专家级的第二意见和可操作的见解。

Model Context Protocol

Model Context Protocol (MCP) 支持以下实体之间的通信:

  • 客户端:Claude Desktop、IDEs 和其他兼容 MCP 的客户端
  • 服务器:用于任务管理和自动化的工具和资源
  • LLM 代理:利用服务器能力的 AI 模型

目录

特性

代码分析

  • 全面的代码审查
  • 错误检测与预防
  • 代码风格和最佳实践评估
  • 性能优化建议
  • 安全漏洞评估

设计与架构

  • UI/UX 设计批评
  • 架构图分析
  • 设计模式推荐
  • 可访问性评估
  • 一致性检查

内容增强

  • 写作反馈与改进
  • 语法和风格分析
  • 文档审查
  • 内容清晰度评估
  • 结构性建议

战略规划

  • 功能增强头脑风暴
  • 方法上的第二意见
  • 创新建议
  • 可行性分析
  • 用户价值评估

安装

# Clone the repository
git clone git@github.com:cyanheads/mentor-mcp-server.git
cd mentor-mcp-server

# Install dependencies
npm install

# Build the project
npm run build

配置

在您的 MCP 客户端设置中添加:

{
  "mcpServers": {
    "mentor": {
      "command": "node",
      "args": ["build/index.js"],
      "env": {
        "DEEPSEEK_API_KEY": "your_api_key",
        "DEEPSEEK_MODEL": "deepseek-reasoner",
        "DEEPSEEK_MAX_TOKENS": "8192",
        "DEEPSEEK_MAX_RETRIES": "3",
        "DEEPSEEK_TIMEOUT": "30000"
      }
    }
  }
}

环境变量

变量 是否必需 默认值 描述
DEEPSEEK_API_KEY - 您的 Deepseek API 密钥
DEEPSEEK_MODEL deepseek-reasoner Deepseek 模型名称
DEEPSEEK_MAX_TOKENS 8192 每次请求的最大令牌数
DEEPSEEK_MAX_RETRIES 3 重试次数
DEEPSEEK_TIMEOUT 30000 请求超时时间(毫秒)

工具

代码审查

<use_mcp_tool>
<server_name>mentor-mcp-server</server_name>
<tool_name>code_review</tool_name>
<arguments>
{
  "file_path": "src/app.ts",
  "language": "typescript"
}
</arguments>
</use_mcp_tool>

设计批评

<use_mcp_tool>
<server_name>mentor-mcp-server</server_name>
<tool_name>design_critique</tool_name>
<arguments>
{
  "design_document": "path/to/design.fig",
  "design_type": "web UI"
}
</arguments>
</use_mcp_tool>

写作反馈

<use_mcp_tool>
<server_name>mentor-mcp-server</server_name>
<tool_name>writing_feedback</tool_name>
<arguments>
{
  "text": "Documentation content...",
  "writing_type": "documentation"
}
</arguments>
</use_mcp_tool>

功能增强

<use_mcp_tool>
<server_name>mentor-mcp-server</server_name>
<tool_name>brainstorm_enhancements</tool_name>
<arguments>
{
  "concept": "User authentication system"
}
</arguments>
</use_mcp_tool>

示例

每个工具的使用方法和输出详细示例可以在 examples 目录中找到:

每个示例都包括请求格式和示例响应,展示了工具的功能和输出结构。

开发

# Build TypeScript code
npm run build

# Start the server
npm run start

# Development with watch mode
npm run dev

# Clean build artifacts
npm run clean

项目结构

src/
├── api/         # API integration modules
├── tools/       # Tool implementations
│   ├── second-opinion/
│   ├── code-review/
│   ├── design-critique/
│   ├── writing-feedback/
│   └── brainstorm-enhancements/
├── types/       # TypeScript type definitions
├── utils/       # Utility functions
├── config.ts    # Server configuration
├── index.ts     # Entry point
└── server.ts    # Main server implementation

许可证

Apache License 2.0。有关更多信息,请参阅 LICENSE


使用模型上下文协议构建
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档