Back to MCP directory
publicPublicdnsLocal runtime

mentor-mcp-server

一个基于Model Context Protocol的AI导师服务器,通过Deepseek-Reasoning提供代码审查、设计评估、写作反馈和创意头脑风暴等第二意见服务

article

README

🚀 导师 MCP 服务器

导师 MCP 服务器是一个提供模型上下文协议(MCP)服务的服务器。它借助深度求索推理(R1)能力,为大语言模型代理提供第二意见,涵盖代码审查、设计批评、写作反馈和创意头脑风暴等方面,能通过深度求索 API 实现专家级指导和可操作见解。

TypeScript 模型上下文协议 版本 许可证 状态 GitHub

🚀 快速开始

本服务器基于模型上下文协议构建,可提供多种专业服务。下面为你介绍如何快速使用该服务器。

✨ 主要特性

  • 提供模型上下文协议(MCP)服务,让客户端、服务器和大语言模型代理能够进行通信。
  • 具备深度求索推理(R1)能力,为大语言模型代理提供多方面的第二意见。
  • 通过深度求索 API 实现专家级指导和可操作见解。

📦 安装指南

# 下载项目
git clone https://github.com/cyanheads/mentor-mcp-server.git

# 进入目录
cd mentor-mcp-server

# 安装依赖
npm install

📚 详细文档

配置说明

在项目的根目录下创建一个 config.json 文件,内容如下:

{
  "port": 3000,
  "api_key": "your_api_key_here",
  "debug_mode": false
}

工具使用

第二意见工具

分析用户输入的概念并提供改进建议:

  • 请求格式
<request>
  <tool>second-opinion</tool>
  <concept>User authentication system</concept>
</request>
  • 响应示例
{
  "suggestions": [
    "Implement multi-factor authentication for enhanced security.",
    "Consider integrating social login options for better user experience."
  ],
  "rationale": "A robust authentication system should include multiple layers of security and flexible login methods."
}

代码审查工具

对给定的代码片段进行详细审查:

  • 请求格式
<request>
  <tool>code-review</tool>
  <code>function example() { console.log("Hello World"); }</code>
</request>
  • 响应示例
{
  "issues": [],
  "quality_score": 100,
  "review_notes": "A simple and clean function with no apparent issues."
}

设计批评工具

评估给定的设计草图并提供建议:

  • 请求格式
<request>
  <tool>design-critique</tool>
  <description>A new user dashboard layout</description>
</request>
  • 响应示例
{
  "comments": [
    "Consider adding more whitespace for better visual hierarchy.",
    "The color scheme could be more accessible."
  ],
  "rating": 85
}

功能增强工具

针对特定功能进行创意头脑风暴:

  • 请求格式
<request>
  <tool>brainstorm-enhancements</tool>
  <concept>Task management feature</concept>
</request>
  • 响应示例
{
  "ideas": [
    "Add drag-and-drop functionality for better usability.",
    "Implement priority levels for tasks."
  ],
  "benefits": "These enhancements can improve user productivity and task organization."
}

开发指南

项目结构

src/
├── api/         # API 接口模块
├── tools/       # 工具实现
│   ├── second-opinion/
│   ├── code-review/
│   ├── design-critique/
│   ├── writing-feedback/
│   └── brainstorm-enhancements/
├── types/       # TypeScript 类型定义
├── utils/       # 工具函数
├── config.ts    # 服务器配置
├── index.ts     # 入口文件
└── server.ts    # 主服务器实现

命令行操作

# 构建项目
npm run build

# 启动服务器
npm run start

# 开发模式启动
npm run dev

# 清理构建产物
npm run clean

📄 许可证

本项目采用 Apache License 2.0 协议。更多内容请参考 LICENSE 文件。


基于模型上下文协议构建
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client