Mirobody
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
作者による説明(英語の原文)
Read-only tools for live Midnight networks: health, transactions, DUST, errors and example code
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
BLOCKFROST_PREPROD_PROJECT_ID, BLOCKFROST_MAINNET_PROJECT_ID, MIDNIGHT_CAST_NETWORKS「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"midnight-cast": {
"command": "npx",
"args": [
"-y",
"midnight-cast",
"mcp"
],
"env": {
"BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
"BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
"MIDNIGHT_CAST_NETWORKS": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add midnight-cast --env BLOCKFROST_PREPROD_PROJECT_ID=your-value --env BLOCKFROST_MAINNET_PROJECT_ID=your-value --env MIDNIGHT_CAST_NETWORKS=your-value -- npx -y midnight-cast mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"midnight-cast": {
"command": "npx",
"args": [
"-y",
"midnight-cast",
"mcp"
],
"env": {
"BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
"BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
"MIDNIGHT_CAST_NETWORKS": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"midnight-cast": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"midnight-cast",
"mcp"
],
"env": {
"BLOCKFROST_PREPROD_PROJECT_ID": "your-value",
"BLOCKFROST_MAINNET_PROJECT_ID": "your-value",
"MIDNIGHT_CAST_NETWORKS": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
MIDNIGHT_CAST_NETWORKS envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント Kanasjnr で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:BLOCKFROST_PREPROD_PROJECT_ID, BLOCKFROST_MAINNET_PROJECT_ID
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.2.1)がレジストリに届いたのは15 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Mirobody, FHIR MCP Server, Google Health MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Lab results to LOINC codes and UCUM units, symptoms and diagnoses to ICPC-3. Offline, no API key.
MCP server providing seamless access to FHIR APIs for AI tools and healthcare applications
Privacy-first unofficial Google Health API v4 MCP server for health, sleep, activity, HR agents
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
[!NOTE]
This project extends the Midnight Network with additional developer tooling.
Read-only CLI and MCP server for the Midnight networks: network health, error decoding, transactions, contracts, DUST, and working code from Midnight's official examples. Think Foundry `cast` for Midnight, not a wallet or app scaffold.
npx midnight-cast@latest health preview
Preview needs nothing else. Preprod and mainnet go through Blockfrost and need a free project ID for each; see Quick start.
Note: midnight-cast also installs a short alias,
mn, which runs the same commands. Other global CLIs (e.g.@mermaid-js/mermaid-cli,midnight-wallet-cli) install anmntoo, so these docs, the hints and the JSON output always saymidnight-cast.
midnight-cast health preview
Or step by step: midnight-cast ping preview && midnight-cast tip preview && midnight-cast versions preview
Requires Node.js 20+ (22+ recommended). Without Node.js, the release binaries install the same commands after checking the checksum:
curl -fsSL https://github.com/Kanasjnr/midnight-cast/releases/latest/download/install.sh | sh
On Windows, in PowerShell: irm https://github.com/Kanasjnr/midnight-cast/releases/latest/download/install.ps1 | iex. Where there's no curl, wget -qO- | sh works too. Alpine needs libstdc++ and libgcc first (apk add libstdc++ libgcc). MIDNIGHT_CAST_VERSION=0.2.0 pins a release and MIDNIGHT_CAST_INSTALL_DIR picks the directory (default ~/.local/bin). Each archive carries build provenance: gh attestation verify --repo Kanasjnr/midnight-cast.
preflight)examples)| Area | Commands |
|---|---|
| Health | health, ping, tip, versions, preflight |
| Chain | block latest, block , rpc |
| Errors | decode (ledger, pallet, 1010, jsonrpc, --raw) |
| Indexer | tx, contract, dust-status, dust-event, dust-events |
| Working code and background | examples, explain (dust, 1010, versions, transcript, sync) |
| Agents | mcp, agents init |
| Config | config init, config show |
No wallet keys. No signing or proving.
midnight-cast health preprod
Example output:
Network: preprod
Healthy: yes
Services: rpc: OK (668ms) indexer: OK (1215ms) proof-server: OK (1053ms) (optional) — version=8.1.0 (matches matrix 8.1.0)
Sync: RPC height: 2805470 Indexer height: 2805468 Delta: 2 (threshold 100) In sync: yes
midnight-cast tx <hash> --network preprod
midnight-cast decode --raw " "
Example output:
Type: RegularTransaction
ID: 232830 Hash: e5c86fcd43eb9707e8f23d940e59a6c12ca7ad3ca7e9d2f1232843cc62de1b8c Block: 909000 (428660a6154a27cee57af3527cb3370ad3bbce94f461f433533b1413e24b71f4) Protocol: 22000 Status: PARTIAL_SUCCESS Fees: paid=1 Segments: 0:ok, 20003:ok, 35012:fail Failure: indexer v4 exposes segment success only (no failure reason) Hint: paste wallet/node error → midnight-cast decode --raw " " Actions: ContractCall DUST: 665110:DustSpendProcessed → midnight-cast dust-event 665110
midnight-cast versions preprod
Example output:
Checks:
node: expected=>=1.0.400 live=1.0.400 → OK (recommended 1.0.400) runtimeSpec: expected=1000300 live=1000300 → OK (node runtime spec_version vs matrix) indexer-api: expected=v4 live=v4 → OK (from configured indexer URL path) protocolVersion: expected=1000300 live=1000300 → OK (RPC specVersion vs indexer latest block) proof-server: expected=8.1.0 live=8.1.0 → OK (GET /version on configured proof server URL)
Summary: live stack matches matrix checks ✓
npm i -g midnight-cast # or: npx midnight-cast …
midnight-cast config init # ~/.config/midnight-cast/config.toml midnight-cast health preview midnight-cast decode 170 midnight-cast examples "dust sponsorship"
Networks: preview, preprod, mainnet, local — use --network or MN_NETWORK.
Preprod and mainnet go through Blockfrost, since Midnight retired its hosted preprod and mainnet endpoints (mainnet on 30 September 2026, preprod on 9 October). Blockfrost project IDs are per network: create a free Midnight Preprod project, a Midnight Mainnet one, or both, on blockfrost.io, then:
export BLOCKFROST_PREPROD_PROJECT_ID=<your Midnight Preprod project ID>
export BLOCKFROST_MAINNET_PROJECT_ID=nightmainnet... npx midnight-cast health preprod
Preview is still hosted by Midnight and needs no project ID. The project IDs are never printed. See docs/COMMANDS.md.
When something breaks, run these in order:
midnight-cast health — ping + sync + versions in one shot (preflight --address before a first transaction)midnight-cast ping — services up?midnight-cast tip — indexer synced?midnight-cast versions — stack matches support matrix?midnight-cast decode — what does the error mean?midnight-cast tx — what happened on chain?midnight-cast health preprod --json
midnight-cast ping preprod midnight-cast versions preprod midnight-cast decode --raw "1010: Invalid Transaction: Custom error: 186" midnight-cast decode 179 --network preview # ledger map stamped per network midnight-cast tx --network preprod # status, fees, segments; links dust-event ids midnight-cast block 909000 preprod # header at height (+ hash) midnight-cast dust-events --from 565900 --limit 10 --network preprod midnight-cast rpc chain_getHeader --json midnight-cast versions preprod --fail-on-mismatch # CI; local Midnight packages (either npm scope) vs matrix pins midnight-cast preflight preprod --address mn_addr_preprod1… # ready for a first transaction? midnight-cast contract preprod # latest action, circuit, deploy block, balances midnight-cast examples "send shielded tokens" # working code from Midnight's official examples midnight-cast explain sync # why a first wallet sync takes so long
An agent working on a Midnight project needs to know what the network is doing right now, what an error means, and what working code looks like. midnight-cast answers all three from live data and Midnight's own sources, in a form an agent can parse, and its MCP server can't change anything.
It sits next to two other sources an agent may already have. The Kapa answer engine answers questions from Midnight's documentation and examples. Midnight Expert gives agents skills and MCP tools for writing and verifying Compact and SDK code. midnight-cast is the part neither covers: the live state of preview, preprod and mainnet, the meaning of a specific error code on the ledger the network runs, whether a project's versions match the network, and which of Midnight's official examples shows a pattern.
Add --json to any command for one stable envelope: ok, data, a structured error with a kind and hint, any warnings, and next, the follow-up commands an expert would run. midnight-cast explain --json describes every command, option, exit code and error kind in one call, and schemas/ has a JSON Schema for each command's output. Exit codes are 0 for success, 1 for a failed check and 2 for a usage error. See JSON output.
midnight-cast decode --raw "1010: Invalid Transaction: Custom error: 186" --json
midnight-cast explain --json
Agents that speak MCP can use midnight-cast directly: midnight-cast mcp runs an MCP server on stdio with 14 tools, health, preflight, ping, tip, versions, block, tx, dust_event, dust_events, contract, dust_status, decode, explain and examples, each returning the same envelope. For example, in Claude Code:
claude mcp add --transport stdio midnight-cast -- npx -y midnight-cast mcp
A sandbox or CI image without Node.js can run the same server from the standalone binary: midnight-cast mcp.
rpc command, which passes any JSON-RPC method to a node, isn't an MCP tool.MIDNIGHT_CAST_NETWORKS limits which networks the model may query, for example preview,preprod.MIDNIGHT_CAST_MAX_CALLS_PER_MINUTE), so a looping agent can't exhaust public endpoints or a Blockfrost plan.decode, explain and examples work offline from data bundled with the release.To teach a coding agent when and how to use midnight-cast, add the guidance to your project: midnight-cast agents init --write appends a marked section to AGENTS.md (read by Codex, Cursor, Copilot, Gemini CLI, Windsurf, Aider and others; use --file CLAUDE.md for Claude Code), or install the portable skill with npx skills add Kanasjnr/midnight-cast --skill midnight-cast. The snippets are in docs/agents.
In Claude Code, one plugin installs the skill, the MCP server and a /midnight-cast:diagnose [tx or error] command. When the plugin is enabled, Claude Code asks for optional Blockfrost project IDs for preprod and mainnet and keeps them in secure storage; left empty, an exported BLOCKFROST_PREPROD_PROJECT_ID or BLOCKFROST_MAINNET_PROJECT_ID is used. If you added the server with claude mcp add before, remove it with claude mcp remove midnight-cast so only the plugin's server runs:
claude plugin marketplace add Kanasjnr/midnight-cast
claude plugin install midnight-cast@midnight-cast
docs/MCP.md has the setup for Codex, Gemini CLI, Cursor, VS Code and others, the network allow-list, and how the Blockfrost project ID stays out of the model's sight.
| Need | Where |
|---|---|
| Midnight errors, network issues, dev questions | Midnight Discord |
| midnight-cast bug or something not working | GitHub Issues |
| New command or feature idea | [GitHub Issues](https://github.com/Kanasjnr/midnight-c
冒頭だけを表示しています。続きはリポジトリで読めます