Skip to main content

MCP server exposing SRE-style log diagnostics (search, trace, errors, stats) over a Postgres-backed log store

Project description

dbay-sre-mcp

MCP (Model Context Protocol) server exposing SRE-style log diagnostics over a Postgres-backed log store. Designed for use by LLM agents that need to query structured application logs.

Tools exposed

Tool Purpose
log_search(component, level, keyword, tenant_id, db_id, since, limit) Flexible search across the logs table
log_trace(request_id) Follow all log rows belonging to a single request chain
log_errors(since, component) Recent error spike summary
log_stats(since) Overview of activity by level/component

Install

pip install dbay-sre-mcp

Configure

Point at your Postgres log store via either:

  • LOG_DB_DSN environment variable, or
  • ~/.dbay/sre-config.json with key "dsn"

Expected logs table schema:

logs(id, ts, level, component, request_id, tenant_id, db_id, logger, msg, duration_ms, extra, thread)

Use as MCP server

dbay-sre-mcp

Then connect from any MCP-compatible client (Claude Code, Hermes, Codex, custom).

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbay_sre_mcp-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbay_sre_mcp-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file dbay_sre_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: dbay_sre_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dbay_sre_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8da6856c855ff626db448bcd4c71f67baf9ea1b6213b9204e25e71b7c3649732
MD5 6e601707fc090dd1d8573eb5cf1057b1
BLAKE2b-256 3cebe0f29ccf98d1fe4954d94ebc495adc173c5c00c25ab3f66012ae32635a0d

See more details on using hashes here.

File details

Details for the file dbay_sre_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dbay_sre_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dbay_sre_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8cf2b9c634074f0b11d8b9698e39da6e904ddfd6ba152e27b8d6a2c2c08718
MD5 f05dee0c479f10b6837e2e4826322b5b
BLAKE2b-256 e98978d589f27851d57b7257b57da25a243e6dccfcb09a6f4bea87e08b457bc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page