MIRASTACK Redfish MCP Server

ai.mirastacklabs由 mirastacklabs.ai 發布v0.1.1更新於 Oct 24, 2026

Governed MCP server for DMTF Redfish BMCs. Read-only by default; writes are opt-in and dry-run.

概覽

AI 產生的概覽

受管控的 MCP 伺服器,讓助理檢視 DMTF Redfish BMC(如 iDRAC、iLO、XCC、OpenBMC),並在明確開啟後執行控制操作。

可以做什麼
讀取一個或多個 Redfish 端點的服務資訊、結構描述中繼資料與硬體清單,並自動處理工作階段或基本驗證及任務輪詢。啟用 power 寫入層級後,可控制電源狀態、開機項覆寫、管理控制器重置與任務取消。在更高寫入層級下修改 BIOS 屬性、虛擬媒體、日誌與帳戶,或發出原始 Redfish patch、post、delete 與 action 呼叫。所有變更類工具預設以試執行回傳,確認後才套用;端點層級的唯讀旗標可阻擋寫入。
適用情境
適合讓助理透過帶外管理控制器維運或診斷伺服器,例如檢查健康狀態與清單,或在審核下執行電源與設定變更。適用於希望把寫入操作置於明確提權之後的實驗環境與生產機群。
執行需求
以本機 Python 套件(uvx 或 pip)或 OCI 容器透過 stdio 執行。需要可連線的 BMC 端點與憑證:MIRASTACK_REDFISH_HOST、MIRASTACK_REDFISH_USERNAME,以及 MIRASTACK_REDFISH_PASSWORD 或 MIRASTACK_REDFISH_PASSWORD_FILE,或多端點用的 MIRASTACK_REDFISH_ENDPOINTS。另有選用的 TLS、逾時、驗證模式與工具集變數。無憑證時也能以探索模式啟動。
安裝前請注意
BMC 權限高於主機 root,電源、開機、韌體與帳戶變更影響範圍很大。寫入預設關閉,所有變更在確認前皆為試執行;把 MIRASTACK_REDFISH_WRITE_MODE 提升到 power、config 或 full 會註冊 reset_to_defaults、clear_logs、manage_account 等破壞性工具。憑證透過 MIRASTACK_REDFISH_PASSWORD、MIRASTACK_REDFISH_PASSWORD_FILE 或 MIRASTACK_REDFISH_ENDPOINTS 提供。關閉 MIRASTACK_REDFISH_VERIFY_SSL 僅應限於受控的實驗端點。

AI 概覽如何產生和驗證

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MIRASTACK Redfish MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

MIRASTACK Redfish MCP Server

Governed MCP server for DMTF Redfish-compliant BMCs — iDRAC, iLO, XCC, OpenBMC and compatible implementations. Read-only by default: mutating tools are not registered unless you explicitly raise the write mode, and every mutation is a dry-run until confirmed.

Built by MIRASTACK LABS. Apache-2.0.

[mirastack-redfish-mcp MCP server]

[mirastack-redfish-mcp MCP server]

Highlights

  • MCP stdio and streamable-http transports via the official Python MCP SDK.
  • Distilled schema metadata from DMTF Redfish-Publications, pinned to release 2026.1.
  • Protocol-correct Redfish behavior: session auth, ETag/If-Match, 202 task polling, and registry-backed error rendering.
  • Safe write controls: tiered registration plus dry-run-first confirmations.

Why this exists

A BMC is a pre-OS, out-of-band control plane with authority above normal host-level root access. Giving an autonomous agent BMC access without strong guardrails creates immediate blast-radius risk across power, boot, firmware, and account boundaries. This server forces dangerous actions behind deliberate write-mode elevation, and keeps every mutation dry-run by default so intent can be reviewed before application. The result is a governed operational interface rather than an always-armed remote control. The model can still move fast on diagnostics, but privilege transitions become explicit and auditable.

Installation

pip install mirastack-redfish-mcp

Try it in 60 seconds (no hardware)

Run a local DMTF mockup, start the MCP server in read-only mode, and call a read tool:

docker compose -f examples/mockup/docker-compose.yml up -d
export MIRASTACK_REDFISH_HOST="http://127.0.0.1:18000"
export MIRASTACK_REDFISH_USERNAME="<bmc-username>"
export MIRASTACK_REDFISH_PASSWORD="<bmc-password>"
export MIRASTACK_REDFISH_WRITE_MODE="off"
mirastack-redfish-mcp --transport stdio

Example tool call:

{"tool":"service_info","arguments":{}}

Expected output shape:

{
  "endpoint": "default",
  "service_root": {
    "@odata.id": "/redfish/v1"
  },
  "capabilities": {
    "redfish_version": "..."
  }
}

Discovery mode

The server also starts with zero endpoint credentials and still serves read-only tool discovery (for MCP scanner validation and metadata indexing). In this mode, schema/corpus-backed tools continue to work, while BMC-connected tools return a configuration error that names the required environment variables: MIRASTACK_REDFISH_HOST, MIRASTACK_REDFISH_USERNAME, and MIRASTACK_REDFISH_PASSWORD (or MIRASTACK_REDFISH_PASSWORD_FILE), or MIRASTACK_REDFISH_ENDPOINTS for multi-endpoint setup.

Discovery mode also covers a missing endpoints file. If MIRASTACK_REDFISH_ENDPOINTS points at a path that does not exist - which is how container platforms and MCP directory scanners inject a placeholder - the server logs a warning naming that path on stderr and starts with zero endpoints. A file that does exist but cannot be read or parsed remains a hard startup failure, and a partially configured single endpoint (for example MIRASTACK_REDFISH_HOST without MIRASTACK_REDFISH_PASSWORD) still raises, so a typo can never silently downgrade a configured deployment.

Quick Start (hardware, stdio)

export MIRASTACK_REDFISH_HOST="https://192.0.2.10"
export MIRASTACK_REDFISH_USERNAME="<bmc-username>"
export MIRASTACK_REDFISH_PASSWORD="<bmc-password>"
export MIRASTACK_REDFISH_WRITE_MODE="off"
mirastack-redfish-mcp --transport stdio

Quick Start (streamable-http)

mirastack-redfish-mcp \
  --transport streamable-http \
  --host 127.0.0.1 \
  --port 8000 \
  --path /mcp \
  --stateless-http \
  --json-response

Warning: binding to 0.0.0.0 exposes BMC control to every host that can reach this port. Bind to loopback unless the listener sits behind an authenticating proxy on a trusted management network.

Configuration

Canonical environment variables

Use MIRASTACK_REDFISH_* variables:

  • MIRASTACK_REDFISH_HOST
  • MIRASTACK_REDFISH_USERNAME
  • MIRASTACK_REDFISH_PASSWORD or MIRASTACK_REDFISH_PASSWORD_FILE
  • optional: MIRASTACK_REDFISH_VERIFY_SSL (default: true), MIRASTACK_REDFISH_CA_BUNDLE, MIRASTACK_REDFISH_TIMEOUT_SEC, MIRASTACK_REDFISH_AUTH_MODE

Multi-endpoint configuration

Set MIRASTACK_REDFISH_ENDPOINTS to inline JSON or a YAML/JSON file:

{
  "idrac-prod": {
    "base_url": "https://192.0.2.10",
    "username": "<bmc-username>",
    "password_file": "/run/secrets/idrac_password",
    "verify_ssl": true,
    "read_only": true
  },
  "ilo-lab": {
    "base_url": "https://192.0.2.11",
    "username": "<bmc-username>",
    "password": "<bmc-password>",
    "verify_ssl": true
  }
}

Lab-only override (not recommended for production):

{
  "ilo-lab": {
    "verify_ssl": false
  }
}

Set MIRASTACK_REDFISH_DEFAULT_ENDPOINT to choose the default endpoint.

Compatibility

Legacy bare REDFISH_* environment variables are still read as a fallback, with a one-time deprecation warning per variable.

Tool registration profile

  • MIRASTACK_REDFISH_TOOL_PROFILE=full (default): all toolsets allowed by write mode.
  • MIRASTACK_REDFISH_TOOL_PROFILE=standard: excludes raw write escape hatches.
  • MIRASTACK_REDFISH_TOOL_PROFILE=core: curated 15-tool small-model surface.
  • MIRASTACK_REDFISH_TOOLSETS (comma-separated) overrides profiles with explicit toolsets.

Measured advertised tool-schema payload at MIRASTACK_REDFISH_WRITE_MODE=full: core 20,795 bytes (15 tools), standard 43,669 bytes (33 tools), full 54,745 bytes (40 tools). Re-measure with python3 scripts/check_tool_metadata.py --sizes.

Write Safety Model

  • MIRASTACK_REDFISH_WRITE_MODE=off (default): mutating tools are not registered.
  • MIRASTACK_REDFISH_WRITE_MODE=power: power/reset/boot control tools are registered.
  • MIRASTACK_REDFISH_WRITE_MODE=config: config-tier tools are registered.
  • MIRASTACK_REDFISH_WRITE_MODE=full: full-tier tools are registered.

Every mutating tool accepts confirm:

  • confirm=false: dry-run response (dry_run=true, applied=false) with next_step.
  • confirm=true: action is applied.

Per-endpoint read_only=true overrides global write mode and blocks all writes on that endpoint.

Tier contract

  • Power tier: set_power_state, set_boot_override, reset_manager, cancel_task
  • Config tier: set_bios_attributes, eject_virtual_media, redfish_patch, redfish_post, redfish_delete, redfish_invoke_action
  • Full tier: insert_virtual_media, clear_logs, manage_account, simple_update, reset_to_defaults

Development

python3 -m venv .venv
source .venv/bin/activate
pip install -e .[dev]
make build-index
make verify

The schema index is generated from DMTF Redfish-Publications, pinned to one release for reproducibility. See CONTRIBUTING.md for refresh procedure.

Registry Publishing Notes

  • server.json includes PyPI and OCI package definitions for MCP Registry.
  • This README carries the required marker: mcp-name: ai.mirastacklabs/mirastack-redfish-mcp.
  • Docker image includes the io.modelcontextprotocol.server.name OCI label.
  • Install the official publisher CLI via Homebrew: brew install mcp-publisher.
  • Do not use npx mcp-publisher or pip install mcp-publisher for registry publishing.

Container and directory deployments

The published image puts the console script on PATH, so docker run ... mirastack-redfish-mcp --transport stdio works unchanged.

Some MCP directories ignore the repository Dockerfile and generate their own image from source. If that generated build installs with uv sync, the project lands in a virtualenv at /app/.venv and the console script is not on PATH, so a launcher that spawns the bare name fails with ENOENT. Point the launcher at the absolute path instead:

{
  "buildSteps": ["uv sync"],
  "cmdArguments": ["/app/.venv/bin/mirastack-redfish-mcp", "--transport", "stdio"]
}

A placeholder MIRASTACK_REDFISH_ENDPOINTS path that the platform never creates is safe - the server starts in discovery mode and serves the read-only tool surface.

Contributing

GitHub is a public read-only mirror. Issues are welcome on GitHub, but pull requests opened on GitHub cannot be merged. See CONTRIBUTING.md for accepted contribution paths.

Security

See SECURITY.md.

License

Apache-2.0.

來源:README.md,提交 d2bf2b4

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

這個評分如何計算