cnv-lab-mcp
MCP server for reserving lab hardware in GLPI, triggering CNV cluster deployments in Jenkins, and importing ACM spoke clusters.
README
cnv-lab-mcp
MCP server for reserving lab hardware in GLPI, triggering CNV cluster deployments in Jenkins, and importing ACM spoke clusters. No instance URLs, hardware names, or tokens are hardcoded — everything comes from tool arguments or environment variables.
Add to Cursor
Prerequisites
- Node.js >= 20
- A GLPI personal API token (
My Settings→API tokens). OptionalGLPI_APP_TOKENif the instance requires one. - A Jenkins API token (
User→Configure→API Token) plus the short username, not an email.user@example.comreturns 401;userworks. - GLPI profile must have a non-zero
reservationright on the target entity. - Jenkins account needs Job/Build and Job/Read on jobs you will trigger.
Internal TLS / NODE_EXTRA_CA_CERTS
Node's fetch (undici) does not use the OS/keychain CA store the way curl does. If curl works but the MCP server reports fetch failed, set NODE_EXTRA_CA_CERTS to your internal CA bundle and restart Cursor:
export NODE_EXTRA_CA_CERTS=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
TLS errors are reported separately from generic network failures so this is not mysterious.
Configure
Copy .env.example and set:
| Variable | Required | Notes |
|---|---|---|
GLPI_BASE_URL |
yes | With or without /apirest.php |
GLPI_USER_TOKEN |
yes | Personal API token |
GLPI_APP_TOKEN |
no | Only if the instance requires it |
JENKINS_BASE_URL |
yes | Jenkins root URL |
JENKINS_USER |
yes | Short username (not email) |
JENKINS_API_TOKEN |
yes | API token |
Example mcp.json entry (secrets via env interpolation):
{
"mcpServers": {
"cnv-lab-mcp": {
"command": "npx",
"args": ["-y", "cnv-lab-mcp"],
"env": {
"GLPI_BASE_URL": "https://glpi.example.internal",
"GLPI_USER_TOKEN": "${env:GLPI_USER_TOKEN}",
"JENKINS_BASE_URL": "https://jenkins.example.internal",
"JENKINS_USER": "${env:JENKINS_USER}",
"JENKINS_API_TOKEN": "${env:JENKINS_API_TOKEN}",
"NODE_EXTRA_CA_CERTS": "${env:NODE_EXTRA_CA_CERTS}"
}
}
}
}
Until the package is on npm, point args at this repo instead:
"args": ["-y", "github:galkremer1/cnv-lab-mcp"]
Tools
Reservation:
list_reservable_items— browse GLPI reservable assetsfind_available_cluster— match requirements (structured + free-text comments) and rank by earliest free slot. Does not book.check_availability— reservations + gaps for one itemreserve_cluster— book a window; always setsusers_idfrom the sessioncancel_reservation— release a booking
Jenkins:
trigger_jenkins_job— generic trigger;start_atbecomesdelay=NNNsecget_build_status— queue/build + console tailabort_build— stop a build
Cluster access:
get_cluster_info— non-sensitive metadata and console/API URLs from*-data.zipget_cluster_kubeconfig—auth/kubeconfig+auth/kubeadmin-passwordin memory only. Cluster-admin credentials; do not echo them back in chat.
ACM:
import_spoke_cluster— ManagedCluster + KlusterletAddonConfig, apply import manifests to the spoke, poll joinget_managed_cluster_status— hub-side join/available conditions
Scenarios (confirm-before-booking):
list_scenariosplan_scenario— propose clusters/windows/parameters, book nothingexecute_scenario— reserve + trigger from a plan
Built-in scenarios live in src/scenarios/catalog.json and can be extended by PR: basic-bm-cnv, acm-hub-and-spoke, sriov-cnv-cluster.
Development
npm install
npm test
npm run lint
npm run typecheck
npm run build
Manual smoke test against real instances (not run in CI):
npx tsx scripts/smoke.ts
SMOKE_JOB=deploy-ocp-bare-metal-cluster-with-abi-cnv-5.0 SMOKE_CLUSTER=example-cluster npx tsx scripts/smoke.ts
Security
.envis gitignored. Examples use obviously fake placeholders.- CI runs gitleaks on every push/PR.
- Client errors redact tokens and never log
Authorization/user_tokenvalues. get_cluster_kubeconfigdownloads the zip into a Buffer and extracts with JSZip in memory. It never writes the archive orauth/*to disk.get_cluster_infoonly readsdeploydata.json,metadata.json, andinstall-config.backup.yaml.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。