Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENTS_DIRYesAbsolute path to your agents folder where .md or .txt agent definitions are stored.
AGENT_TYPEYesThe execution engine to use: 'cursor' (cursor-agent), 'claude' (claude CLI), 'gemini' (gemini CLI), or 'codex' (codex CLI).
SESSION_DIRNoAbsolute path to the directory where session history files are stored.
SESSION_ENABLEDNoSet to 'true' to enable session management for context continuity between executions.false
EXECUTION_TIMEOUT_MSNoHow long agents can run before timing out in milliseconds. Default is 5 minutes (300000), max is 10 minutes.300000
SESSION_RETENTION_DAYSNoHow long to keep session files based on last modification time in days.1

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prefrontal-systems/sub-agents-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server