要使用最新发布的版本与Inspector一起使用:
npx @modelcontextprotocol/inspector npx @kocierik/mcp-nomad
-nomad-addr string
Nomad服务器地址(默认:"http://localhost:4646")
-port string
HTTP服务器端口(默认:"8080")
-transport string
传输类型(stdio, sse, 或 streamable-http)(默认:"stdio")
NOMAD_ADDR: Nomad HTTP API地址(默认:http://localhost:4646)NOMAD_TOKEN: Nomad ACL令牌(可选)https://github.com/user-attachments/assets/731621d7-0acf-4045-bacc-7b34a7d83648
| <a href="#using-smithery">Smithery</a> | <a href="#using-mcp-get">mcp-get</a> | <a href="#prebuilt-from-npm">预构建NPM</a> | <a href="#from-github-releases">GitHub预构建</a> | <a href="#building-from-source">从源码构建</a> | <a href="#using-docker">使用Docker</a> | |
|---|---|---|---|---|---|---|
| Claude Setup | 自动 | 自动 | 手动 | 手动 | 手动 | 手动 |
| 先决条件 | Node.js | Node.js | Node.js | 无 | Golang | Docker |
npx -y @smithery/cli install @kocierik/mcp-nomad --client claude
npx @michaellatman/mcp-get@latest install @kocierik/mcp-nomad
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}"
}
}
}
}
下载二进制文件并像这样配置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 run -i --rm --network=host kocierik/mcpnomad-server:latest
docker run -i --rm \
-e NOMAD_ADDR=http://host.docker.internal:4646 \
kocierik/mcpnomad-server:latest
{
"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"
]
}
}
}
{
"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文件以获取详细信息。