-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
104 lines (86 loc) · 3.15 KB
/
.env.example
File metadata and controls
104 lines (86 loc) · 3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# ===========================================
# MongoDB Agent - Generic Configuration Template
# ===========================================
# Copy this file to .env and fill in your credentials
# cp .env.template .env
# Environment
ENVIRONMENT=dev
# ===========================================
# LLM PROVIDER CONFIGURATION
# ===========================================
# Choose one: azure, openai, anthropic, local
LLM_PROVIDER=openai
# --- Azure OpenAI Configuration ---
# If using Azure OpenAI, configure these:
AZURE_OPENAI_ENDPOINT=https://your-azure-endpoint.openai.azure.com
AZURE_OPENAI_API_KEY=your-azure-api-key-here
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini
AZURE_OPENAI_API_VERSION=2024-07-01-preview
# Azure OAuth (optional - if your Azure requires OAuth)
# OAUTH_URL=https://your-oauth-provider.com/oauth/token
# CLIENT_ID=your-client-id
# CLIENT_SECRET=your-client-secret
# APP_KEY=your-app-key
# --- OpenAI Configuration ---
# If using OpenAI directly:
OPENAI_API_KEY=your-openai-api-key-here
OPENAI_MODEL=gpt-4o-mini
# --- Anthropic Configuration ---
# If using Anthropic Claude:
# ANTHROPIC_API_KEY=your-anthropic-api-key-here
# ===========================================
# MONGODB CONNECTION
# ===========================================
# Choose connection type: 'mcp' or 'direct'
# - mcp: Use MCP protocol (recommended for Claude Desktop)
# - direct: Direct PyMongo connection (simpler setup)
MONGODB_CONNECTION_TYPE=mcp
# --- Option 1: MCP Protocol Connection ---
# If MONGODB_CONNECTION_TYPE=mcp, configure these:
MONGODB_MCP_ENDPOINT=http://localhost:3000/mongodb/query
MONGODB_OAUTH_TOKEN_URL=https://your-oauth-server.com/oauth/token
MONGODB_CLIENT_ID=your-mongodb-client-id
MONGODB_CLIENT_SECRET=your-mongodb-client-secret
# --- Option 2: Direct MongoDB Connection ---
# If MONGODB_CONNECTION_TYPE=direct, configure these:
# Requires: pip install pymongo
MONGODB_URI=mongodb://localhost:27017
MONGODB_DATABASE=your_database_name
# ===========================================
# VECTOR DATABASE (optional)
# ===========================================
# For semantic model storage - choose one: local, chroma
VECTOR_DB=local
# --- Chroma Configuration (optional) ---
# CHROMA_HOST=localhost
# CHROMA_PORT=8000
# ===========================================
# SEMANTIC MODELS
# ===========================================
# Where to find YAML semantic models
# Options: weaviate, local_files, s3, git
SEMANTIC_MODEL_SOURCE=local_files
SEMANTIC_MODEL_PATH=./semantic_models
# ===========================================
# PERFORMANCE & OPTIMIZATION
# ===========================================
# Token caching (for OAuth tokens)
ENABLE_TOKEN_CACHE=true
TOKEN_CACHE_TTL=3000
# Schema optimization
MAX_SCHEMA_FIELDS=30
MAX_RETRY_ATTEMPTS=1
# Development mode
DEV_MODE=true
# ===========================================
# FEATURE FLAGS
# ===========================================
# Skip Conjur authentication (set to true for non-Cisco deployments)
SKIP_CONJUR_AUTH=true
# Force local YAML files (ignore Weaviate)
FORCE_LOCAL_V2_FILES=false
# ===========================================
# LOGGING
# ===========================================
LOG_LEVEL=INFO
LOG_FILE=logs/mongodb_agent.log