Commit Graph

2 Commits

Author SHA1 Message Date
cyanheads
a6edebbf8e refactor: update Deepseek API implementation
- Switch to OpenAI SDK for Deepseek API calls
- Add openai package dependency
- Update configuration for Deepseek API
- Update environment variable examples
- Improve error handling for API responses

This change improves reliability and maintainability by using the official SDK
with proper typing and error handling.
2025-01-25 19:09:41 -08:00
cyanheads
8968a96a98 feat: Initial implementation of mentor-mcp-server
Implements a Model Context Protocol (MCP) server that provides AI-powered mentorship and feedback tools.

Core Features:
- TypeScript implementation with ES modules
- MCP server setup with stdio transport
- Deepseek API integration with rate limiting and retry logic
- Secure environment configuration management
- Comprehensive utility functions for file and prompt handling

Tools:
- second-opinion: Provides critical analysis of user requests
  - Input validation
  - Rate limiting
  - Error handling
  - Sanitized inputs
  - Structured prompt templates

Infrastructure:
- Atomic design directory structure
- Type-safe implementation
- Proper error handling
- Security measures (input sanitization, rate limiting)
- Development scripts and configuration

Security Features:
- API key protection
- Input sanitization
- Rate limiting
- Error message sanitization
- Secure file path validation

This implementation follows MCP best practices and provides a foundation for adding additional tools:
- code-review
- design-critique
- writing-feedback
- brainstorm-enhancements
2025-01-25 18:58:47 -08:00