mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 06:39:06 +00:00
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
# OpenBrain MCP Server Configuration
|
|
# Copy this to .env and fill in your values
|
|
|
|
# Server Configuration
|
|
OPENBRAIN__SERVER__HOST=0.0.0.0
|
|
OPENBRAIN__SERVER__PORT=3100
|
|
|
|
# Database Configuration (PostgreSQL with pgvector)
|
|
# This role should own the OpenBrain database objects that migrations manage.
|
|
OPENBRAIN__DATABASE__HOST=localhost
|
|
OPENBRAIN__DATABASE__PORT=5432
|
|
OPENBRAIN__DATABASE__NAME=openbrain
|
|
OPENBRAIN__DATABASE__USER=openbrain_svc
|
|
OPENBRAIN__DATABASE__PASSWORD=your_secure_password_here
|
|
OPENBRAIN__DATABASE__POOL_SIZE=10
|
|
|
|
# Embedding Configuration
|
|
# Path to ONNX model directory (all-MiniLM-L6-v2)
|
|
OPENBRAIN__EMBEDDING__MODEL_PATH=models/all-MiniLM-L6-v2
|
|
OPENBRAIN__EMBEDDING__DIMENSION=384
|
|
|
|
# Hybrid query scoring
|
|
OPENBRAIN__QUERY__VECTOR_WEIGHT=0.6
|
|
OPENBRAIN__QUERY__TEXT_WEIGHT=0.4
|
|
# Backward-compatible plain env aliases
|
|
# VECTOR_WEIGHT=0.6
|
|
# TEXT_WEIGHT=0.4
|
|
|
|
# TTL / transient facts
|
|
# Background cleanup interval in seconds. Set to 0 to disable automatic cleanup.
|
|
OPENBRAIN__TTL__CLEANUP_INTERVAL_SECONDS=300
|
|
|
|
# Authentication (optional)
|
|
OPENBRAIN__AUTH__ENABLED=false
|
|
# Comma-separated list of persistent API keys
|
|
# OPENBRAIN__AUTH__API_KEYS=prod_live_key,smoke_test_key
|
|
|
|
# Logging
|
|
RUST_LOG=info,openbrain_mcp=debug
|