AM

ahmad2x4/mcp-server-seq

部署与 DevOps

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 8 forks 质量 75 趋势 24MIT

用于Seq 的 API 端点的 MCP 服务器,用于与您的记录和监视系统交互 。 这个服务器通过"模型上下文协议"为Seq的API特性提供全面访问.

概览

用于Seq 的 API 端点的 MCP 服务器,用于与您的记录和监视系统交互 。 这个服务器通过"模型上下文协议"为Seq的API特性提供全面访问. - 获取 signals - 用过滤选项获取信号 - 由所有者 ID 过滤 - 过滤共享/私有信号 - 支持部分匹配 - get events - 检索带有广泛过滤选项的事件 - 通过信号ID过滤 - 自定义过滤表达式 - 可配置事件计数(最大50个) - 弹性时间范围选项 - 日期范围过滤 - 获取提醒 状态 - 获取当前提醒状态 - 信号 - 列出所有有详细信息的共享信号 - 信号ID - 标题 - 描述 - 共享状态 - 所有者信息 服务器需要以下环境变量: - SEQQBASE URL( 可选): 您的 Seq 服务器 URL( 默认为 '[T0] - SEQQQAPI KEY( 需要): 您的 Seq API 密钥 这个回波包括克洛德的Seq日志分析和事件调查技巧.

概述(AI 翻译)

用于Seq 的 API 端点的 MCP 服务器,用于与您的记录和监视系统交互 。 这个服务器通过"模型上下文协议"为Seq的API特性提供全面访问.

□ 特性

QQ 工具

信号管理

  • get_signals - 以过滤选项获取信号
  • 按所有者身份过滤
  • 过滤共享/私人信号
  • 支持部分匹配

事件管理

  • get_events - 检索带有广泛过滤选项的事件
  • 通过信号ID过滤
  • 自定义过滤表达式
  • 可配置事件数(最多50起)
  • 灵活的时间范围备选方案
  • 日期范围过滤

通知管理

  • get_alert_state - 获取当前警报状态

资源

QQ 信号列表

  • [[T3] – – 列出所有共享信号并列出详细资料
  • 信号标识
  • 标题
  • 说明
  • 分享状况
  • 拥有者信息

□ 配置

服务器需要以下环境变量:

  • [[T4] (可选): 您的 Seq 服务器 URL( 默认为 '[T5]])
  • SEQ_API_KEY (需要):您的 Seq API 密钥

□从后至后

这个回波包括克洛德的Seq日志分析和事件调查技巧.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Seq MCP Server

MCP Server for Seq’s API endpoints for interacting with your logging and monitoring system. This server provides comprehensive access to Seq’s API features through the Model Context Protocol.

Features

Tools

Signals Management

  • get_signals - Fetch signals with filtering options
    • Filter by owner ID
    • Filter shared/private signals
    • Support for partial matches

Event Management

  • get_events - Retrieve events with extensive filtering options
    • Filter by signal IDs
    • Custom filter expressions
    • Configurable event count (max 50)
    • Flexible time range options
    • Date range filtering

Alert Management

  • get_alert_state - Retrieve the current state of alerts

Resources

Signals Listing

  • signals - List all shared signals with detailed information
    • Signal ID
    • Title
    • Description
    • Sharing status
    • Owner information

Configuration

The server requires the following environment variables:

  • SEQ_BASE_URL (optional): Your Seq server URL (defaults to ‘http://localhost:8080’)
  • SEQ_API_KEY (required): Your Seq API key

seq-ops Skill

This repo includes a Claude skill for Seq log analysis and incident investigation. Once the MCP server is connected, the skill guides Claude through structured investigations — health checks, incident triage, post-deployment monitoring — and produces consistent, actionable reports.

Install the skill:

# From the releases page, download seq-ops.skill, then:
claude skill install seq-ops.skill

Or install directly from this repo:

npx skills add ahmad2x4/mcp-server-seq

The skill automatically activates when you ask things like “morning health check”, “something is broken in prod”, “check the logs for timeouts”, or “investigate the PPSR integration”.


Usage with Claude Code

Run the following command to add the server:

claude mcp add --transport stdio \
  --env SEQ_BASE_URL=http://localhost:5341 \
  --env SEQ_API_KEY=your-api-key \
  seq -- npx -y mcp-seq

To share the configuration with your team, use the --scope project flag (saves to .mcp.json):

claude mcp add --transport stdio --scope project \
  --env SEQ_BASE_URL=http://localhost:5341 \
  --env SEQ_API_KEY=your-api-key \
  seq -- npx -y mcp-seq

Windows users: Replace npx -y mcp-seq with cmd /c npx -y mcp-seq to avoid “Connection closed” errors.

Verify the server is connected by running /mcp inside Claude Code.

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "seq": {
      "command": "npx",
      "args": ["-y", "mcp-seq"],
      "env": {
        "SEQ_BASE_URL": "your-seq-url",
        "SEQ_API_KEY": "your-api-key"
      }
    }
  }
}

Development

Install dependencies:

在 GitHub 查看完整 README

安装

npx -y mcp-seq
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "seq": { "command": "npx", "args": ["-y", "mcp-seq"], "env": { "SEQ_BASE_URL": "your-seq-url", "SEQ_API_KEY": "your-api-key" } } } }