openITCOCKPIT

io.github.openITCOCKPIT由 GitHub 账号 openITCOCKPIT 发布v0.5.0更新于 Oct 24, 2026

openITCOCKPIT monitoring: host and service state, history, downtimes, acknowledgements, patches

概览

AI 生成的概览

一个 MCP 服务器,让助手读取并在启用后修改 openITCOCKPIT 监控实例:主机与服务状态、历史、停机与补丁

可以做什么
查看监控状态:问题总览、服务健康、问题排查、班次摘要与通知原因说明,并同时显示停机与确认信息。查询配置上下文:某个容器可用的模板与元素。执行监控操作(写入工具,默认关闭):安排停机、确认问题、立即检查、管理维护窗口。管理生命周期与配置:将主机或服务移出监控、删除,以及修改监控配置。用工具集限制暴露范围,例如 health、operations、lifecycle、patch、reporting、catalog、onboarding、config 与 provisioning。
适用场景
适合让助手回答 openITCOCKPIT 5.6 及以上实例的运维问题,例如当前哪里出故障、某服务为何严重、某告警为何未触发。若还希望模型安排停机或调整监控配置,也可加入,但应先只读使用,审阅后再启用写入。
运行要求
以本地 Docker 容器通过 stdio 运行(镜像默认 HTTP,此时还需 MCP_AUTH_TOKEN 和发布端口)。需要 openITCOCKPIT 5.6 或更新版本的实例、不含路径的 OITC_BASEURL 设置,以及专用最小权限用户的 OITC_APIKEY 密钥。写入工具需将 OITC_ENABLE_WRITE_TOOLS 设为 true。
安装前请注意
启用写入工具后服务器可修改监控配置;模型可能误解请求或选错调用,应审阅其提议并先以只读方式使用。它持有 openITCOCKPIT API 密钥(OITC_APIKEY),权限等同于对应用户,请使用专用的最小权限账号。TLS 校验默认开启;自签名实例建议设置 OITC_CA_BUNDLE 而非关闭校验。

安装

在 SourceWeft 中

  1. 打开 控制台中的 openITCOCKPIT,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

openITCOCKPIT MCP Server

An MCP server that puts an openITCOCKPIT monitoring instance in front of an LLM client: what is broken and why, what someone already handles, what changed - and, off by default, the tools that act on it.

[!CAUTION] Use at your own risk. This server lets a language model read and - with write tools enabled - change your monitoring configuration. A model can misunderstand a request or pick the wrong call. Review what it proposes before you approve it, and start with read-only access. The software is provided "as is", without warranty or liability of any kind; see the MIT License.

  • Requires openITCOCKPIT 5.6 or newer (compatibility).
  • 42 tools, 20 read-only and 22 that change something.
  • Write tools are off by default and are not registered until you enable them.
  • Names, never IDs. Tools take hostnames, template names and container paths; the server resolves them.
  • Scope-checked writes. References are validated against the target container before anything is sent, which openITCOCKPIT's own API does not do.

Quickstart

bash
cp .env.example .env          # fill in the two secrets, see Configurationdocker compose up --build

Point your client at http://localhost:8000/mcp with the bearer token from your .env. Compose reads that same file for the published port, so setting OITC_PORT there moves both sides at once.

Three settings matter to start: MCP_AUTH_TOKEN (what clients present to this server), OITC_BASEURL and OITC_APIKEY (what this server presents to openITCOCKPIT). Everything else has a default - all of it.

What you can ask it

AskWhat answers it
"What is broken right now?"get_problem_overview - causes separated from their consequences
"Why is db-01 critical?"get_service_health, investigate_problem
"Is anyone on it already?"the same tools: downtime and acknowledgement come with the state
"What happened during the night shift?"get_shift_summary
"Why did I get no alert for web01?"explain_notification
"Take web01 out until Monday"schedule_downtime (write)
"Which templates could web-05 use?"get_allowed_elements_for_container

Every tool by name, with its parameters and what it costs in context: docs/tools.md, generated from the code. What a result looks like and what happens when you write: docs/using-the-tools.md.

Limiting an instance

Running a monitoring instance is not one job, so a surface small enough to be easy would be too small to be useful. Instead the server keeps every tool the work needs and a toolset hands one agent its share: around ten tools, complete for that job and nothing beyond it. A tool that was never registered cannot be called at all.

bash
OITC_TOOLSETS=health          # find things and see how they are doingOITC_TOOLSETS=operations      # acknowledge, maintenance windows, check nowOITC_TOOLSETS=lifecycle       # take things out of the monitoring, or delete them

The shipped sets are health, operations, lifecycle, patch, reporting, catalog, onboarding, config and provisioning. Sets are defined in a file you can replace: docs/toolsets.md.

Measuring a model

oitc-mcp-eval asks operator questions against your instance and checks whether a model answers them from the tools instead of inventing. It keeps every run in SQLite, so models and changes stay comparable.

bash
oitc-mcp-eval --model your-model --samples 3     # against the configured instanceoitc-mcp-eval --compare                          # newest run of every model./scripts/eval-throwaway.sh --model your-model   # instance created and removed for you

docs/evals.md.

Documentation

Configurationevery setting, and which secret goes where
Connecting a clientHTTP and stdio, with working examples
InstallationDocker, from source, MCP Registry
Toolsevery tool, generated from the code
Working with the toolsresult shapes, container scope, read-modify-write
Toolsetslimiting an instance, writing your own set
Skills and promptsthe material served alongside the tools
Measuring a modelthe eval, its cases, and reading the results
Securitywhat this server can reach, and what it refuses
Architecturehow the pieces fit together
Tool designthe rules a new tool follows
openITCOCKPIT API notesthe behaviour this server works around
Versioningversion numbers and compatibility
Developmentchecks, tests, running from a checkout

Security in one paragraph

The server holds one openITCOCKPIT credential and never sends it to a client. Clients authenticate with their own token; in delegated mode each request carries a short-lived user token instead, and the server acts as that user with their permissions. Write tools stay unregistered until you enable them. The details, including what to give the openITCOCKPIT user: docs/security.md.

License

MIT.

来源:README.md,提交 49e0515

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v0.5.0最新Sep 17, 2026
  2. v0.4.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分