Skip to main content
Glama
thhart
by thhart

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_MCP_DIRNoColon-separated paths to log directories to monitor (e.g., /var/log:/tmp/logs:$XDG_RUNTIME_DIR/log)

Tools

Functions exposed to the LLM to take actions

NameDescription
list_log_files

Lists all log files in $XDG_RUNTIME_DIR/log. Use this FIRST when user reports errors or problems to see what logs are available for inspection.

get_log_content

Returns the content of a specific log file from $XDG_RUNTIME_DIR/log. Use this to inspect runtime logs when debugging errors or investigating problems. For large files, use read_log_paginated instead.

read_log_paginated

Reads a paginated portion of a log file. Useful for large log files. Returns specific line ranges.

search_log_file

Searches a log file using regex pattern and returns matching lines with surrounding context. Supports pagination of results.

Prompts

Interactive templates invoked by user choice

NameDescription
runtime-logsInformation about runtime log inspection capabilities

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/thhart/log-mcp'

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