LogSentry
БесплатноНе проверенEnables AI-powered centralized log monitoring and Q\&A for GCP Java microservices, allowing log query, service health checks, and anomaly detection through MCP
Описание
Enables AI-powered centralized log monitoring and Q&A for GCP Java microservices, allowing log query, service health checks, and anomaly detection through MCP tools.
README
AI-powered, centralized log-monitoring and Q&A for a fleet of 90+ GCP Java (log4j) microservices.
LogSentry adds three things on top of Google Cloud Logging:
- MCP server — read-only tools for log query, service health, and anomaly detection.
- AI monitoring agent — scheduled loop that inspects logs via those tools and decides whether to alert.
- Google Chat integration — pushes proactive alerts and answers support questions interactively.
Anomaly thresholds are fully parameter-driven (config/thresholds.yaml + env), so tuning needs no code change.
New here? Read SETUP.md — a beginner-to-expert guide for local setup, local testing with examples, and step-by-step Google Cloud deployment.
See BUILD_SPEC.md for the full specification.
Tech stack
TypeScript (Node 20+) · @modelcontextprotocol/sdk · @google-cloud/logging + @google-cloud/bigquery ·
@google-cloud/pubsub · @anthropic-ai/sdk · express · zod + dotenv · vitest + nock ·
Cloud Run + Cloud Scheduler.
Quick start (local, no cloud needed)
npm install
npm run build # tsc strict, must be clean
npm test # all unit + integration (mocked)
npm run test:cov # coverage gate >85% on core modules
Copy .env.example to .env and fill in values for runtime use.
Local smoke tests
MCP (stdio):
MCP_TRANSPORT=stdio npm run mcp
# another terminal:
npx @modelcontextprotocol/inspector node dist/mcp/server.js
Chat bot:
npm run dev
curl -s localhost:8080/health # -> {"status":"ok"}
curl -s -X POST localhost:8080/chat -H 'content-type: application/json' \
-d '{"type":"MESSAGE","message":{"text":"is payment-service healthy?"}}'
Agent dry-run (read-only, safe):
DRY_RUN=1 npm run monitor:once # logs the decision, does NOT post to Chat
Deployment
Scripts in scripts/ are idempotent and support DRY_RUN=1 (echo instead of execute). Run in order:
| Script | Purpose |
|---|---|
01-setup-logging-sink.sh |
BigQuery dataset + log sink routing severity>=WARNING to BigQuery (cost lever) |
02-setup-pubsub.sh |
Topic + sink for near-real-time agent triggering (optional) |
03-setup-bigquery.sh |
Dataset/table + view normalizing the export schema into the LogEntry shape |
04-deploy-cloudrun.sh |
Build container, create viewer-only runtime SA, deploy, print URL |
05-setup-scheduler.sh |
Cloud Scheduler job hitting POST /monitor every MONITOR_INTERVAL_MINUTES (OIDC) |
Full step-by-step deployment, including Google Chat bot registration, is in SETUP.md.
Safety guardrails
- Read-only everywhere — no tool, query, or script writes to production.
assertReadOnlyguards BigQuery. - Query caps —
query_logshard-caps atMAX_LOGS_PER_QUERY(500) and windows at 24h. - Least-privilege SA —
roles/logging.viewer,roles/bigquery.dataViewer,roles/bigquery.jobUseronly. - Alert dedup + cooldown — prevents alert storms.
- Log tiering — only
severity>=WARNINGexported to BigQuery; INFO/DEBUG stay in the cheaper default bucket. Ultra-chatty INFO logs can be sampled at the log4j appender level if volume becomes a problem.
Установка LogSentry
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/mehtaniravm/LogSentryMCPGoogleHangoutFAQ
LogSentry MCP бесплатный?
Да, LogSentry MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для LogSentry?
Нет, LogSentry работает без API-ключей и переменных окружения.
LogSentry — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить LogSentry в Claude Desktop, Claude Code или Cursor?
Открой LogSentry на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare LogSentry with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
