KM

kocierik/mcp-nomad

开发工具

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

61 stars 17 forks 质量 85 趋势 20MIT

kocierik/mcp-nomad 是从 https://github.com/kocierik/mcp-nomad. 导入的 MCP 服务器候选

概览

kocierik/mcp-nomad 是从 https://github.com/kocierik/mcp-nomad. 导入的 MCP 服务器候选

概述(AI 翻译)

基于Golang的MCP服务器连接到Nomad

MCP 游牧 Go

与 Claude ⚙ 的使用 服务器选项 ⚙ MCP检查器(测试) ⚙ 贡献 ↗ ⚙ 关于MCP ↗

与克劳德一起使用

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

安装选项

预构建NPM 预建于Github 来源
Claude 设置 手册 手册
先决条件 Node.js 无 戈朗

用npm预建

该软件包发布一个 mcp-nomad CLI。最简单的零安装选项(下载到 npm 缓存;需要 Node/npm):

或者全局安装,这样mcp-nomad就在你的PATH上:

claude_desktop_config.json 与 npx(推荐):

如果你使用 npm install -g,则保持 command / args 作为二进制:

来自GitHub Releases

下载二进制文件,并像这样配置Claude Desktop:

源头建筑

服务器选项

命令行标志(在与MCP Inspector对抗手动启动二进制时也相关):

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

README

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

Golang-based MCP server connecting to Nomad

MCP Nomad Go

Quick start ⚙ Tools ⚙ Configuration ⚙ HTTP mode ⚙ Development ↗ ⚙ About MCP ↗

mcp-nomad lets AI assistants such as Claude inspect and operate a HashiCorp Nomad cluster: jobs, allocations, logs, nodes, variables, ACLs and more.

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

Quick start

Add the server to claude_desktop_config.json (requires Node.js):

{
  "mcpServers": {
    "mcp_nomad": {
      "command": "npx",
      "args": ["-y", "@kocierik/mcp-nomad"],
      "env": {
        "NOMAD_ADDR": "http://127.0.0.1:4646",
        "NOMAD_TOKEN": ""
      }
    }
  }
}

Add "-read-only" to args to expose only tools that cannot change the cluster.

Other ways to install; then use "command": "mcp-nomad" with the same env:

  • npm: npm install -g @kocierik/mcp-nomad
  • Binary: download from GitHub Releases
  • Source: go install github.com/kocierik/mcp-nomad@latest

Available tools

Area Read Write
Jobs list_jobs, get_job, get_job_summary, get_job_allocations, get_job_evaluations, get_evaluation, get_job_deployments, get_job_services run_job, stop_job, scale_job
Deployments list_deployments, get_deployment
Allocations list_allocations, get_allocation, get_allocation_logs stop_allocation
Nodes list_nodes, get_node drain_node, eligibility_node
Namespaces list_namespaces create_namespace, delete_namespace
Variables list_variables, get_variable create_variable, delete_variable
Volumes list_volumes, get_volume delete_volume
在 GitHub 查看完整 README

安装

npx -y @kocierik/mcp-nomad
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp_nomad": { "command": "npx", "args": ["-y", "@kocierik/mcp-nomad"], "env": { "NOMAD_ADDR": "http://127.0.0.1:4646", "NOMAD_TOKEN": "<your-nomad-acl-token>" } } } }