mcp-nomad

by kocierik

Integrations

  • Offers containerized deployment options for running the MCP server across different environments, with specific configuration instructions for Linux, macOS and Windows systems.

  • Enables interaction with HashiCorp Nomad cluster, providing comprehensive job management, deployment operations, namespace handling, node administration, allocation tracking, variable management, volume operations, ACL controls, Sentinel policy management, and cluster monitoring capabilities.

特征

  • 列出工作
  • 获取职位详情
  • 运行作业
  • 停止作业
  • 获取作业版本
  • 获取作业提交
  • 列出工作分配
  • 列出工作评估
  • 列出作业部署
  • 获取工作部署
  • 获取工作摘要
  • 更新职位
  • 调度参数化作业
  • 恢复作业
  • 设定工作稳定性
  • 创建工作评估
  • 制定工作计划
  • 强制新的周期性实例
  • 获取作业规模状态
  • 扩展任务组
  • 列出工作服务
  • 列出部署
  • 获取部署详细信息
  • 列出命名空间
  • 创建命名空间
  • 删除命名空间
  • 列出节点
  • 获取节点详细信息
  • 排水节点
  • 设置节点资格
  • 列表分配
  • 获取分配详情
  • 获取分配日志
  • 获取任务日志
  • 列出具有过滤和分页功能的变量
  • 获取变量详细信息
  • 创建具有命名空间支持的变量
  • 使用 CAS 支持删除变量

变量操作示例:

# List variables in a namespace list_variables namespace="my-namespace" prefix="my/path" per_page=10 # Get a specific variable get_variable path="my/path" namespace="my-namespace" # Create a variable create_variable path="my/path" key="username" value="john" namespace="my-namespace" # Delete a variable delete_variable path="my/path" namespace="my-namespace"
  • 列出卷
  • 获取卷详细信息
  • 删除卷
  • 列出数量索赔
  • 删除卷声明
  • 列出 ACL 令牌
  • 获取 ACL 令牌详细信息
  • 创建 ACL 令牌
  • 删除 ACL 令牌
  • 列出 ACL 策略
  • 获取ACL策略详细信息
  • 创建 ACL 策略
  • 删除 ACL 策略
  • 列出 ACL 角色
  • 获取 ACL 角色详细信息
  • 创建 ACL 角色
  • 删除 ACL 角色
  • 引导 ACL 系统
  • 列出 Sentinel 策略
  • 获取 Sentinel 策略详细信息
  • 创建 Sentinel 策略
  • 删除 Sentinel 策略
  • 获取集群领导者
  • 列出集群对等点
  • 列出区域

使用检查器浏览

要将最新发布的版本与 Inspector 一起使用:

npx @modelcontextprotocol/inspector npx @kocierik/mcp-nomad

可用选项

-nomad-addr string Nomad server address (default "http://localhost:4646") -port string Port for SSE server (default "8080") -transport string Transport type (stdio or sse) (default "stdio")

环境变量

  • NOMAD_ADDR :Nomad HTTP API 地址(默认值: http://localhost:4646
  • NOMAD_TOKEN :Nomad ACL 令牌(可选)

与 Claude 一起使用

https://github.com/user-attachments/assets/731621d7-0acf-4045-bacc-7b34a7d83648

安装选项

|锻造工艺|mcp-获取|预建 NPM|Github 中预建|来自来源|使用 Docker| |---|---|---|---|---|---|---| |克劳德·塞普|汽车|汽车|手动的|手动的|手动的|手动的| |先决条件|Node.js|Node.js|Node.js|没有任何|Golang|Docker|

使用 Smithery

npx -y @smithery/cli install @kocierik/mcp-nomad --client claude

使用 mcp-get

npx @michaellatman/mcp-get@latest install @kocierik/mcp-nomad

从 npm 预构建

npm install -g @kocierik/mcp-nomad

更新你的claude_desktop_config.json

{ "mcpServers": { "mcp_nomad": { "command": "mcp-nomad", "args": [], "env": { "NOMAD_TOKEN": "${NOMAD_TOKEN}", "NOMAD_ADDR": "${NOMAD_ADDR}" } } } }

来自 GitHub 版本

下载二进制文件并配置 Claude Desktop,如下所示:

{ "mcpServers": { "mcp_nomad": { "command": "mcp-nomad", "args": [], "env": { "NOMAD_TOKEN": "${NOMAD_TOKEN}", "NOMAD_ADDR": "${NOMAD_ADDR}" } } } }

从源代码构建

go get github.com/kocierik/mcp-nomad go install github.com/kocierik/mcp-nomad

使用 Docker Linux

docker run -i --rm --network=host kocierik/mcpnomad-server:latest

使用 Docker macos/windows

docker run -i --rm \ -e NOMAD_ADDR=http://host.docker.internal:4646 \ kocierik/mcpnomad-server:latest

对于 Claude macos/windows:

{ "mcpServers": { "mcp_nomad": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "NOMAD_TOKEN=secret-token-acl-optional", "-e", "NOMAD_ADDR=http://host.docker.internal:4646", "mcpnomad/server:latest" ] } } }

对于 Claude Linux:

{ "mcpServers": { "mcp_nomad": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "NOMAD_ADDR=http://172.17.0.1:4646", "-e", "NOMAD_TOKEN=secret-token-acl-optional", "kocierik/mcpnomad-server:latest" ] } } }

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅 LICENSE 文件。

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

mcp-游牧民族

  1. 使用检查器浏览
    1. 可用选项
    2. 环境变量
  2. 与 Claude 一起使用
    1. 安装选项
    2. 使用 Smithery
    3. 使用 mcp-get
    4. 从 npm 预构建
    5. 来自 GitHub 版本
    6. 从源代码构建
    7. 使用 Docker Linux
    8. 使用 Docker macos/windows
    9. 对于 Claude macos/windows:
    10. 对于 Claude Linux:
  3. 执照

    Related MCP Servers

    View all related MCP servers

    ID: 9l65un0rv0