Skip to content
GitHub

Configuration

Loaded from the ai_mcp: section of application.yaml. Environment variable prefix: LEX_AI_MCP__.

ai_mcp:
enabled: true
host: "0.0.0.0"
port: 8080
path: "/mcp"
enable_sse: true
stdio_mode: false
server_name: "lexigram-mcp"
server_version: "1.0.0"
cors_origins: []
max_request_size: 1048576
request_timeout: 30.0
client_url: null
client_stdio_command: []
connectors:
filesystem:
root_dir: ""
read_only: false
github:
token: ""
api_url: "https://api.github.com"
web_fetch:
enabled: false
max_content_bytes: 524288
user_agent: "lexigram-mcp/1.0"
web_search:
provider: "brave"
api_key: ""
max_results: 10
slack:
bot_token: ""
max_messages: 100
google_drive:
service_account_json: ""
impersonated_email: ""
sql:
dsn: ""
allowed_tables: []
read_only: true
KeyTypeDefaultEnv VarDescription
enabledbooltrueLEX_AI_MCP__ENABLEDEnable the MCP server subsystem
hoststr"0.0.0.0"LEX_AI_MCP__HOSTHost to bind to (HTTP transport)
portint8080LEX_AI_MCP__PORTPort to bind to (HTTP transport)
pathstr"/mcp"LEX_AI_MCP__PATHURL path for MCP endpoint
enable_ssebooltrueLEX_AI_MCP__ENABLE_SSEEnable Server-Sent Events
stdio_modeboolfalseLEX_AI_MCP__STDIO_MODEUse stdio instead of HTTP
server_namestr"lexigram-mcp"LEX_AI_MCP__SERVER_NAMEServer name for handshake
server_versionstr"1.0.0"LEX_AI_MCP__SERVER_VERSIONServer version string
cors_originslist[str][]LEX_AI_MCP__CORS_ORIGINSCORS allowed origins
max_request_sizeint1048576LEX_AI_MCP__MAX_REQUEST_SIZEMax request body bytes
request_timeoutfloat30.0LEX_AI_MCP__REQUEST_TIMEOUTRequest timeout seconds
client_urlstr | NonenullLEX_AI_MCP__CLIENT_URLExternal MCP server URL (SSE)
client_stdio_commandlist[str][]LEX_AI_MCP__CLIENT_STDIO_COMMANDSubprocess command for stdio client

Filesystem:

KeyTypeDefaultDescription
root_dirstr""Sandboxed root directory (empty = disabled)
read_onlyboolfalseDisable write_file and mutating tools

GitHub:

KeyTypeDefaultDescription
tokenstr""GitHub personal access token
api_urlstr"https://api.github.com"GitHub Enterprise API override

Web Fetch:

KeyTypeDefaultDescription
enabledboolfalseEnable web-fetch tool
max_content_bytesint524288Max response body size
user_agentstr"lexigram-mcp/1.0"HTTP User-Agent header

Web Search:

KeyTypeDefaultDescription
providerstr"brave"Search provider (brave, serpapi, google)
api_keystr""API key for search provider
max_resultsint10Max results per query

Slack:

KeyTypeDefaultDescription
bot_tokenstr""Slack bot OAuth token
max_messagesint100Max messages per channel history request

Google Drive:

KeyTypeDefaultDescription
service_account_jsonstr""Path to service-account credentials JSON
impersonated_emailstr""Email to impersonate (optional)

SQL:

KeyTypeDefaultDescription
dsnstr""Database connection string
allowed_tableslist[str][]Allowlisted table names
read_onlybooltruePermit SELECT only
Terminal window
LEX_AI_MCP__ENABLED=true \
LEX_AI_MCP__HOST="0.0.0.0" \
LEX_AI_MCP__PORT=9090 \
LEX_AI_MCP__STDIO_MODE=false \
LEX_AI_MCP__CONNECTORS__GITHUB__TOKEN="ghp_xxx" \
python -m my_app