racksmith

racksmith

MCP server for bare-metal lab operations, enabling inventory, commissioning, deployment, fabric audit, and job scheduling via Hermes agent skills and a tool server.

Category
访问服务器

README

Racksmith

Agentic bare-metal lab operations — inventory, commissioning, deploy, fabric audit, and job scheduling — with first-class Hermes Agent skills and an MCP tool server.

Live demo: amiirhosseini.github.io/racksmith
Interactive lab health + agent plan preview (GitHub Pages, no server).

Racksmith helps operators run MAAS-style hardware labs without drowning in failed commissions, silent BMC outages, VLAN drift, and empty Ready pools. It ships a simulation backend so you can try the full workflow with zero hardware.

No cloud server required. Browse the live demo, walkthrough, and source. Optional local CLI/API for your laptop only.

Live Demo License Python GitHub

Why it exists

Bare-metal labs fail in boring, expensive ways:

  • Commissioning hangs or fails and nobody notices until a job queue stalls
  • TOR VLANs drift from inventory intent
  • Deployed hosts never get released → Ready capacity hits zero
  • Operators re-learn the same remediation path every week

Racksmith turns those paths into inspectable plans, guardrailed actions, and Hermes skills that improve as you use them.

Features

Area What you get
MAAS client Async REST client for commission / allocate / deploy / release / power
Sim lab Deterministic 12-node Toronto-style lab for demos & CI
Health engine Findings for BMC, thermal, commissioning, capacity, switch fabric
Agent planner Natural-language goals → ranked action plans
MCP server Tools for Hermes / Claude / any MCP client
Hermes skills lab-health, lab-commission, switch-audit, fleet-deploy
Job queue Testflinger-style enqueue → allocate → deploy worker
HTTP API FastAPI for dashboards and automation

Quick start (simulation)

git clone https://github.com/Amiirhosseini/racksmith.git
cd racksmith
python -m venv .venv

# Linux / macOS
source .venv/bin/activate
# Windows PowerShell
# .\.venv\Scripts\Activate.ps1

pip install -e ".[dev]"
cp config/racksmith.example.yaml config/racksmith.yaml

racksmith health
racksmith machines
racksmith plan "fix failed commissioning and show capacity"
racksmith run "commission failed machines" --execute

Start the API:

racksmith serve
# http://127.0.0.1:8787/docs

Hermes Agent integration

1. Install Hermes

Follow the official installer: https://hermes-agent.nousresearch.com/docs/getting-started/installation

2. Install Racksmith skills

pip install -e .
racksmith install-hermes-skills

Or point Hermes at this repo’s skill tree in ~/.hermes/config.yaml:

skills:
  external_dirs:
    - /absolute/path/to/racksmith/hermes/skills

3. Run the MCP server

racksmith mcp

Example Hermes chat prompts:

  • /lab-health — morning lab audit
  • /lab-commission recover failed hosts
  • /fleet-deploy allocate Ubuntu noble on amd-epyc
  • /switch-audit check TOR VLAN drift

Talk to a real MAAS

# config/racksmith.yaml
backend: maas
maas:
  url: http://maas.example:5240/MAAS
  api_key: consumer_key:token_key:token_secret
  verify_tls: true
pip install -e ".[oauth,dev]"
export RACKSMITH_BACKEND=maas
export RACKSMITH_MAAS_URL=http://maas.example:5240/MAAS
export RACKSMITH_MAAS_API_KEY='consumer:token:secret'
racksmith health

Architecture

┌──────────────────┐     ┌─────────────────┐     ┌──────────────────┐
│  Hermes / MCP    │────▶│  Racksmith API  │────▶│  MAAS or SimLab  │
│  CLI / skills     │     │  planner/tools  │     │  machines+power  │
└──────────────────┘     └────────┬────────┘     └──────────────────┘
                                  │
                                  ▼
                         ┌─────────────────┐
                         │ Health + Fabric │
                         │ Job scheduler   │
                         └─────────────────┘

CLI cheat sheet

racksmith health
racksmith machines --status Ready
racksmith plan "deploy ubuntu noble on 100g"
racksmith run "deploy ubuntu noble on 100g" --execute --yes
racksmith commission <system_id> --ssh
racksmith job kernel-smoke --tags intel-xeon --run
racksmith serve --host 0.0.0.0 --port 8787
racksmith mcp

HTTP API

Method Path Purpose
GET /healthz Liveness
GET /v1/snapshot Full lab snapshot + findings
GET /v1/machines Machine inventory
POST /v1/plan { "goal": "..." } → agent plan
POST /v1/actions Execute a tool action
POST /v1/jobs Enqueue lab job
POST /v1/jobs/run-next Worker tick

Safety model

Default agent.mode is assist:

  • Plans are always allowed
  • Mutating actions (deploy, power_cycle, release, mark_broken) need --yes / confirm=true

Set agent.mode: autopilot only on dedicated labs with clear ownership.

Development

pip install -e ".[dev,oauth]"
pytest -q
ruff check src tests
docker compose up --build

Project layout

racksmith/
├── src/racksmith/          # Python package
│   ├── maas/               # MAAS client + simulator
│   ├── monitoring/         # Health findings
│   ├── network/            # Switch intent audit
│   ├── scheduler/          # Job queue
│   ├── agent/              # Planner + MCP server
│   ├── api/                # FastAPI app
│   └── cli.py
├── hermes/skills/          # Hermes / agentskills.io skills
├── config/                 # Example + default YAML
├── tests/
└── docs/

Roadmap

  • [ ] Live NETCONF / SONiC config apply (gated)
  • [ ] Prometheus metrics exporter
  • [ ] Testflinger webhook receiver
  • [ ] Multi-lab federation
  • [ ] Redfish-native inventory enrichment

Contributing

See CONTRIBUTING.md. Bug reports and lab war-stories welcome.

License

Apache License 2.0 — see LICENSE.

Acknowledgments

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选