Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADVISOR_MODELYesExplicit advisor model ID. Required; the server fails with 'configuration error: Missing ADVISOR_MODEL' if unset.
ADVISOR_STORENoSession storage backend: 'memory' or 'file'. Use 'file' when the host may restart the MCP process between consults.memory
ADVISOR_STYLENoDefault advice style: 'brief' or 'detailed'.brief
OPENAI_API_KEYNoAccepted as a fallback for ADVISOR_API_KEY in openai-compatible mode.
ADVISOR_API_KEYNoAPI key for the advisor provider. Takes precedence over ANTHROPIC_API_KEY and is the primary substitute for OPENAI_API_KEY. Optional for local endpoints; if omitted no Authorization header is sent.
ADVISOR_BASE_URLNoBase URL of the OpenAI-compatible endpoint (OpenRouter, vLLM, Ollama, LM Studio, Magpie gateway, etc.). Default is https://api.openai.com/v1.https://api.openai.com/v1
ADVISOR_DATA_DIRNoSession directory when file storage is enabled.~/.advisor-mcp
ADVISOR_PROVIDERNoProvider backend: 'openai-compatible' (default) or 'anthropic'.
ADVISOR_HTTP_HOSTNoHTTP bind address. Use 0.0.0.0 inside a container.127.0.0.1
ADVISOR_HTTP_PATHNoMCP endpoint path./mcp
ADVISOR_HTTP_PORTNoHTTP listen port.8787
ADVISOR_TRANSPORTNoTransport mode: 'stdio' (default) or 'http' for remote Streamable HTTP.stdio
ANTHROPIC_API_KEYNoAPI key used in anthropic mode; ADVISOR_API_KEY takes precedence over it.
ADVISOR_HTTP_TOKENNoBearer token for HTTP mode; at least 16 characters, preferably 32 random bytes in hex. The server refuses to start without it unless the host is loopback and ADVISOR_HTTP_ALLOW_UNAUTHENTICATED_LOOPBACK=true.
ADVISOR_TIMEOUT_MSNoProvider timeout per attempt, in milliseconds.60000
ADVISOR_TOKEN_PARAMNoSet to 'max_tokens' for providers that reject max_completion_tokens (fixes HTTP 400 about a token field).
ADVISOR_HTTP_TRUST_PROXYNoTrust X-Forwarded-For. Enable only behind a trusted reverse proxy.false
ADVISOR_MAX_CONTEXT_CHARSNoEvidence budget before truncation.120000
ADVISOR_MAX_OUTPUT_TOKENSNoAdvisor output cap per call.1200
ADVISOR_HTTP_ALLOWED_HOSTSNoComma-separated Host hostnames; set this in production.
ADVISOR_HTTP_MAX_BODY_BYTESNoMaximum MCP request body size in bytes.1048576
ADVISOR_HTTP_ALLOWED_ORIGINSNoComma-separated origin hostnames, or non-web wildcards such as 'moz-extension://*'.
ADVISOR_MAX_CALLS_PER_MINUTENoAdvisor calls allowed per session per minute.30
ADVISOR_MAX_CALLS_PER_SESSIONNoAdvisor calls allowed per session; exceeding it yields limit_exceeded.12
ADVISOR_HTTP_REQUESTS_PER_MINUTENoRequests allowed per client IP per minute; exceeding it returns HTTP 429.120
ADVISOR_HTTP_MAX_CONCURRENT_REQUESTSNoConcurrent MCP requests allowed per process.8
ADVISOR_HTTP_ALLOW_UNAUTHENTICATED_LOOPBACKNoPermit tokenless HTTP only on a loopback bind (development only).false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources