T

mentor-mcp-server

...
Created 1/26/2025bycyanheads

Categories

ai-mentorllmllm-agentmcpmentormodel-context-protocol

Language:

TypeScript

Stars:

14

Forks:

7

mentor-mcp-server

TypeScript Model Context Protocol Version License Status GitHub

A Model Context Protocol server providing LLM Agents a second opinion via AI-powered Deepseek-Reasoning (R1) mentorship capabilities, including code review, design critique, writing feedback, and idea brainstorming through the Deepseek API. Set your LLM Agent up for success with expert second opinions and actionable insights.

Model Context Protocol

The Model Context Protocol (MCP) enables communication between:

  • Clients: Claude Desktop, IDEs, and other MCP-compatible clients
  • Servers: Tools and resources for task management and automation
  • LLM Agents: AI models that leverage the server's capabilities

Table of Contents

Features

Code Analysis

  • Comprehensive code reviews
  • Bug detection and prevention
  • Style and best practices evaluation
  • Performance optimization suggestions
  • Security vulnerability assessment

Design & Architecture

  • UI/UX design critiques
  • Architectural diagram analysis
  • Design pattern recommendations
  • Accessibility evaluation
  • Consistency checks

Content Enhancement

  • Writing feedback and improvement

  • Grammar and style analysis

  • Documentation review

              - Content clarity assessment
    
  • Structural recommendations

Strategic Planning

  • Feature enhancement brainstorming
  • Second opinions on approaches
  • Innovation suggestions
  • Feasibility analysis
  • User value assessment

Installation

# 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

Configuration

Add to your MCP client settings:

{
  "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"
      }
    }
  }
}

Environment Variables

VariableRequiredDefaultDescription
DEEPSEEK_API_KEYYes-Your Deepseek API key
DEEPSEEK_MODELYesdeepseek-reasonerDeepseek model name
DEEPSEEK_MAX_TOKENSNo8192Maximum tokens per request
DEEPSEEK_MAX_RETRIESNo3Number of retry attempts
DEEPSEEK_TIMEOUTNo30000Request timeout (ms)

Tools

Code Review


mentor-mcp-server
code_review

{
  "file_path": "src/app.ts",
  "language": "typescript"
}


Design Critique


mentor-mcp-server
design_critique

{
  "design_document": "path/to/design.fig",
  "design_type": "web UI"
}


Writing Feedback


mentor-mcp-server
writing_feedback

{
  "text": "Documentation content...",
  "writing_type": "documentation"
}


            ### Feature Enhancement

mentor-mcp-server
brainstorm_enhancements

{
  "concept": "User authentication system"
}


Examples

Detailed examples of each tool's usage and output can be found in the examples directory:

Each example includes the request format and sample response, demonstrating the tool's capabilities and output structure.

Development

# 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

Project Structure

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

License

Apache License 2.0. See LICENSE for more information.


Built with the Model Context Protocol

Last updated: 2/19/2025

Publisher info

cyanheads's avatar

Casey Hand

Hopeful developer sharing what I learn through open source. Enthusiastic about ML/AI

Amazon
Seattle, WA
15
followers
1
following
10
repos

More MCP servers built with TypeScript

docbase-mcp-server

MCP Server Implementation for DocBase

By f4401
aapi-mcp-server

Advanced API MCP Server

By Asphere-xyz1
DBX-MCP-Server

MCP Server for Dropbox

By amgadabdelhafez1