CloudZIR MCP Server
README.md
# CloudZIR MCP Server
[](https://www.typescriptlang.org/)
[](https://nodejs.org/)
[](https://vercel.com/)
[](LICENSE)
**CloudZIR MCP Server** is a Model Context Protocol (MCP) server implementation with integrated CloudZIR system prompts and context management for enterprise-grade AI applications.
## šÆ Features
- š¤ **Complete MCP Server Implementation** - Full compliance with Model Context Protocol specification
- šØ **CloudZIR System Prompts** - Master system prompts for consistent AI behavior
- šļø **Enterprise Architecture** - Production-ready, scalable, and secure
- ā” **Zero Approximation** - Intelligent automation with strict validation
- š¦ **TypeScript Ready** - Full type safety and excellent IDE support
- š **Vercel Deployment** - One-click deployment to Vercel
- š **Security First** - Built-in security headers and best practices
## š Requirements
- **Node.js**: >= 18.x
- **npm**: >= 9.x
- **Vercel Account** (for deployment)
## š Quick Start
### 1. Installation
```bash
# Clone the repository
git clone https://github.com/SourireConcept/cloudzir-mcp-server.git
cd cloudzir-mcp-server
# Install dependencies
npm install
```
### 2. Configuration
```bash
# Copy environment variables
cp .env.example .env
# Edit .env with your configuration
nano .env
```
### 3. Development
```bash
# Start development server
npm run dev
```
### 4. Production Build
```bash
# Build TypeScript
npm run build
# Start production server
npm start
```
## š Project Structure
```
cloudzir-mcp-server/
āāā src/
ā āāā index.ts # MCP Server entry point
ā āāā prompts/
ā āāā system-prompts.ts # CloudZIR system prompts
ā āāā cloudzir-context.ts # CloudZIR context & configuration
āāā dist/ # Compiled JavaScript output
āāā package.json # Dependencies & scripts
āāā tsconfig.json # TypeScript configuration
āāā vercel.json # Vercel deployment config
āāā .env.example # Environment variables template
āāā README.md # This file
```
## š Environment Variables
Create a `.env` file based on `.env.example`:
```env
# Server Configuration
NODE_ENV=production
PORT=3000
# AI Model Configuration
OPENAI_API_KEY=sk-your-key-here
HUGGINGFACE_API_KEY=hf_your-token-here
ANTHROPIC_API_KEY=sk-ant-your-key-here
# Database
DATABASE_URL=postgresql://...
# Logging
LOG_LEVEL=info
DEBUG=false
```
## š Deployment on Vercel
### Option 1: Using Vercel Dashboard
1. Go to [Vercel Dashboard](https://vercel.com/dashboard)
2. Click "Add New" ā "Project"
3. Select your GitHub repository
4. Vercel will auto-detect `vercel.json` configuration
5. Add environment variables in project settings
6. Deploy!
### Option 2: Using Vercel CLI
```bash
# Install Vercel CLI
npm i -g vercel
# Deploy
vercel
# Add environment variables
vercel env add OPENAI_API_KEY
vercel env add ANTHROPIC_API_KEY
# Deploy with environment variables
vercel --prod
```
## š” API Usage
### Initialize MCP Client
```typescript
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
const client = new Client({
name: "my-client",
version: "1.0.0",
});
// Connect to CloudZIR MCP Server
await client.connect(transport);
```
### Access System Prompts
```typescript
import { SYSTEM_PROMPTS, getSystemPrompt } from "./src/prompts/system-prompts";
// Get master system prompt
const masterPrompt = getSystemPrompt("master");
// Get development context prompt
const devPrompt = getSystemPrompt("development");
```
## šļø CloudZIR System Prompts
### Master Prompt
The core AI consciousness with CloudZIR's fundamental rules:
- Zero approximation
- Production-ready by default
- Complete, coherent, and connected logic
- Security and scalability built-in
### Development Prompt
Specialized context for platform development with:
- Code quality standards
- Component architecture guidelines
- Error handling requirements
- Performance optimization rules
### Infrastructure Prompt
Cloud infrastructure and deployment guidance:
- Security-first approach
- Scalability planning
- Monitoring and observability
- Disaster recovery procedures
## š§ Available Commands
```bash
# Development
npm run dev # Start development server with hot reload
npm run build # Compile TypeScript to JavaScript
# Production
npm start # Run production server
npm run build && npm start
# Vercel
vercel # Deploy to Vercel (staging)
vercel --prod # Deploy to Vercel (production)
```
## š Documentation
- [Model Context Protocol](https://modelcontextprotocol.io/)
- [Vercel Documentation](https://vercel.com/docs)
- [TypeScript Handbook](https://www.typescriptlang.org/docs/)
- [Node.js Documentation](https://nodejs.org/en/docs/)
## š Security
- ā
All HTTP headers properly configured
- ā
Input validation and sanitization
- ā
Environment variables in `.env` (not committed)
- ā
Secrets management through Vercel
- ā
CORS configured for security
- ā
SQL injection prevention
- ā
XSS protection headers
## š¤ Contributing
Contributions are welcome! Please:
1. Fork the repository
2. Create a feature branch: `git checkout -b feature/amazing-feature`
3. Commit your changes: `git commit -m 'Add amazing feature'`
4. Push to the branch: `git push origin feature/amazing-feature`
5. Open a Pull Request
## š License
MIT License - see LICENSE file for details
## šØāš» Author
**Sourire Concept**
- GitHub: [@SourireConcept](https://github.com/SourireConcept)
- Website: [sourire.concept](https://sourire.concept)
## š Acknowledgments
- CloudZIR Platform Team
- Model Context Protocol Developers
- Vercel Platform
- TypeScript Community
---
**Made with ā¤ļø by Sourire Concept**