dimahike/mcp-relay-mind-server
If you are the rightful owner of mcp-relay-mind-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A middleware server that acts as a bridge between Cursor IDE and AI models, validating AI responses using project context and Gemini.
MCP Server
A middleware server that acts as a bridge between Cursor IDE and AI models, validating AI responses using project context and Gemini.
Features
- Project context management
- AI response validation
- Integration with Gemini API
- Real-time context updates
- Comprehensive logging system
- Easy local deployment
Prerequisites
- Node.js (v14+ recommended)
- npm or yarn
- Google Cloud account (for Gemini API access)
- Gemini API key
- Cursor IDE
Getting Started
-
Clone the repository
-
Install dependencies:
npm install -
Create a
.envfile in the root directory based on the provided.env.example:cp .env.example .envThen edit the file to add your Gemini API key and other configuration options.
-
Build the project:
npm run build -
Start the server:
npm startFor development with hot-reloading:
npm run dev
Deployment
Local Deployment
Use the provided deployment script for a streamlined setup:
./scripts/deploy-local.sh
This script will:
- Check for the presence of a
.envfile - Install dependencies
- Build the project
- Start the server in production mode
For more detailed deployment instructions, see .
API Endpoints
GET /api/health- Health check endpointPOST /api/context/initialize- Initialize project contextPOST /api/context/refresh- Refresh project contextPOST /api/validate- Validate AI responsesPOST /api/cursor/validate- Cursor IDE-specific validation endpoint
For detailed API documentation, see .
Project Structure
mcp-server/
āāā src/
ā āāā api/
ā ā āāā controllers/
ā ā āāā middleware/
ā ā āāā routes/
ā āāā config/
ā āāā context/
ā āāā models/
ā āāā services/
ā āāā types/
ā āāā utils/
ā āāā index.ts
āāā logs/ # Log files directory
āāā scripts/ # Deployment and utility scripts
āāā docs/ # Documentation
āāā .env
āāā .env.example
āāā .gitignore
āāā package.json
āāā tsconfig.json
āāā README.md
Documentation
- - Detailed usage instructions
- - Implementation plan
- - Architecture overview
License
ISC