claude-os/deployment/mcp-only/.env.example
Claude 0e5687b0f1
Add MCP-only deployment package for standalone knowledge base server
This commit adds a complete deployment solution for running Claude OS's
MCP (Model Context Protocol) server as a standalone service, separate
from the full coding environment. This allows other applications to
access the knowledge bases without requiring the CLI or coding tools.

Features:
- Docker-based deployment with Ollama integration
- Automated setup script with model pulling
- Read-only database mounting by default
- CORS and authentication configuration
- Complete API documentation and examples
- Python and JavaScript client examples

Also includes alternative Cloudflare Workers implementation:
- TypeScript starter template
- D1 and Vectorize integration examples
- Migration scripts and documentation
- Deployment comparison guide

Files added:
- deployment/mcp-only/Dockerfile
- deployment/mcp-only/docker-compose.yml
- deployment/mcp-only/requirements.txt
- deployment/mcp-only/setup.sh
- deployment/mcp-only/.env.example
- deployment/mcp-only/.dockerignore
- deployment/mcp-only/README.md
- deployment/mcp-only/DEPLOYMENT_COMPARISON.md
- deployment/mcp-only/examples/chat-integration.py
- deployment/mcp-only/examples/chat-integration.js
- deployment/mcp-only/cloudflare-workers/*

This addresses the need to expose MCP data to other applications
(knowledge base access, live chat) without deploying the full
Claude OS environment to production servers.
2025-11-05 17:46:00 +00:00

48 lines
1.1 KiB
Text

# Claude OS MCP-Only Deployment Configuration
# ======================
# Database Configuration
# ======================
SQLITE_DB_PATH=/app/data/claude-os.db
# ======================
# MCP Server Configuration
# ======================
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8051
# ======================
# Ollama Configuration
# ======================
OLLAMA_HOST=http://ollama:11434
OLLAMA_EMBED_MODEL=nomic-embed-text
OLLAMA_MODEL=llama3.1:latest
# ======================
# CORS Configuration
# ======================
# Comma-separated list of allowed origins
# Use "*" for development, specific domains for production
CORS_ORIGINS=*
# ======================
# Authentication (Optional)
# ======================
# Uncomment to enable JWT authentication
# JWT_SECRET_KEY=your-super-secret-key-change-this-in-production
# JWT_ALGORITHM=HS256
# API_USERNAME=admin
# API_PASSWORD=changeme
# ======================
# RAG Configuration
# ======================
CHUNK_SIZE=512
CHUNK_OVERLAP=128
TOP_K_RETRIEVAL=20
SIMILARITY_TOP_K=20
# ======================
# Logging
# ======================
LOG_LEVEL=INFO