Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoSet to '1' to log HTTP requests to stderr
OPENGROK_MCP_LISTENNoHTTP listen address
OPENGROK_MCP_BASE_URLYesOpenGrok API base URL ending in /api/v1
OPENGROK_MCP_PROJECTSNoComma-separated allowlist of projects
OPENGROK_MCP_API_TOKENNoAuth token for OpenGrok, value format: 'Bearer <token>' or 'Basic <credentials>'
OPENGROK_MCP_CACHE_TTLNoCache entry lifetime
OPENGROK_MCP_TRANSPORTNoTransport: stdio or http
OPENGROK_MCP_PROBE_FILENoproject/path for file-read capability probe
OPENGROK_MCP_TOOL_SURFACENoTool surface: full, compact, gateway
OPENGROK_MCP_WEB_BASE_URLNoWeb UI base for citations and raw-file fallback
OPENGROK_MCP_AGENT_PROFILENoAgent profile: economy or rich
OPENGROK_MCP_CACHE_ENABLEDNoIn-process response cache
OPENGROK_MCP_CONTEXT_AFTERNoExpansion window lines after
OPENGROK_MCP_CURSOR_SECRETNoHMAC secret for signed pagination cursors
OPENGROK_MCP_CACHE_MAX_SIZENoMax cache entries
OPENGROK_MCP_CONTEXT_BEFORENoExpansion window lines before
OPENGROK_MCP_MEMORY_ENABLEDNoProcess-scoped memory tools on full surface only
OPENGROK_MCP_DEFAULT_PROJECTNoImplicit project when one is omitted; auto-set when exactly one project discovered
OPENGROK_MCP_PROJECT_REQUIREDNoRequire project on tool calls (default true)
OPENGROK_MCP_RETRY_BASE_DELAYNoRetry backoff base
OPENGROK_MCP_MAX_EXPANDED_FILESNoMax files fetched during expansion
OPENGROK_MCP_RETRY_MAX_ATTEMPTSNoRetries for transient errors
OPENGROK_MCP_AUTO_EXPAND_CONTEXTNoAuto-expand context around search hits
OPENGROK_MCP_MAX_EXPANDED_RESULTSNoMax results to expand
OPENGROK_MCP_DISABLE_PROJECT_SCRAPENoSkip web-UI scrape when /projects/indexed fails
OPENGROK_MCP_INSECURE_SKIP_TLS_VERIFYNoSkip TLS verification for trusted internal hosts
OPENGROK_MCP_CONTEXT_FETCH_CONCURRENCYNoParallel fetches during expansion

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

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/rokasklive/opengrok-go-mcp'

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