Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WIKI_ROOTNoRoot directory of the project whose knowledge is managed. Omit to use the server process working directory.
KNOWLEDGE_RAIL_OCR_MODENoOCR mode: 'ollama' (default) or 'native'.ollama
KNOWLEDGE_RAIL_OCR_MODELNoOCR model to use.glm-ocr:latest
KNOWLEDGE_RAIL_NATIVE_HOSTNoNative OCR base URL.http://localhost:5002
KNOWLEDGE_RAIL_OCR_RETRIESNoRetry count for OCR.
KNOWLEDGE_RAIL_OLLAMA_HOSTNoOllama base URL for OCR.http://localhost:11434
KNOWLEDGE_RAIL_OCR_TIMEOUT_MSNoPositive request timeout in milliseconds for OCR.
KNOWLEDGE_RAIL_EMBEDDING_MODELNoEmbedding model name. Required to enable semantic retrieval.
KNOWLEDGE_RAIL_EMBEDDING_API_KEYNoOptional API key for the embeddings endpoint.
KNOWLEDGE_RAIL_EMBEDDING_BASE_URLNoBase URL for OpenAI-compatible embeddings endpoint. Required to enable semantic retrieval.
KNOWLEDGE_RAIL_MERMAID_NO_SANDBOXNoSet to 'true' to disable Chromium sandbox for Mermaid rendering. Only for controlled CI/container environments.
KNOWLEDGE_RAIL_EMBEDDING_DIMENSIONSNoDimensions of the embedding model. Required to enable semantic retrieval.
KNOWLEDGE_RAIL_EMBEDDING_TIMEOUT_MSNoOptional timeout in milliseconds for embeddings requests.
KNOWLEDGE_RAIL_EMBEDDING_MODEL_VERSIONNoOptional model version for the embeddings endpoint.

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
knowledge_contextD

Evidence/gaps, pages, search, and graph.

knowledge_pageC

Page CRUD and durable log.

knowledge_filesC

Controlled source files and PDFs: list, read, normalize to Markdown.

knowledge_ingestD

Source ingestion, claims, coverage, recovery.

knowledge_codeD

Code index, symbols, callers, fallback.

knowledge_document_contextD

Document plans and section evidence.

knowledge_documentC

Write or review evidence-backed documents.

knowledge_adminD

Initialize/inspect/rebuild, client setup, lint/repair, drift, and migration.

Prompts

Interactive templates invoked by user choice

NameDescription
plan_documentGenerate an editorial plan (sections, writers, context packs, checklist) for a document in docs/deliverables.
plan_dev_reportReturn the required development-report template to complete before wiki ingestion.
prepare_knowledge_updateGenerate a valid wiki draft from a gap and the available evidence.

Resources

Contextual data attached and managed by the client

NameDescription
wiki-schemaWiki conventions and workflow
wiki-logWiki operations log

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/Deviank88/KnowledgeRail'

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