runtime-mcp-server
Runtime Diagnostic MCP Server (runtime-mcp-server)
ローカルで動作するModel Context Protocol(MCP)サーバーで、AIコーディングエージェント(OpenAI Codex CLIなど)に、ローカル開発環境のリアルタイムなランタイム診断、プロセス監視、ログ分析を提供します。
🎯 目的
AIコーディングエージェントは静的コードの検査に優れていますが、ランタイムの実行状態については把握できません。このサーバーは、AIエージェントに実行中プロセスの観測、クラッシュログの分析、アクティブポートの検査、システムリソースの監視を行うための、プログラムから利用できる読み取り専用ツールを提供することで、このギャップを埋めます。
Related MCP server: Harbor MCP Server
🛠️ コアツール(v1機能)
tail_app_logs説明: 稼働中のバックグラウンド開発サーバー(
npm run dev、python、docker)から、最近のstdout/stderrストリームやクラッシュログを読み取って末尾を追跡(tail)します。目標: 手動でコピー&ペーストすることなく、生のスタックトレースを自動的にCodexへ渡します。
inspect_ports説明: アクティブなローカルネットワークポート(例:3000、8080)をスキャンし、占有しているプロセスID(PID)を特定します。
目標:
EADDRINUSE/ "Port already in use" エラーを自動的に解決し、ゾンビプロセスに安全にシグナルを送信できます。
get_process_metrics説明: 特定のローカルアプリケーションプロセスのCPUとRAM使用量を監視します。
目標: Codexが無限ループ、メモリリーク、暴走するバックグラウンドスクリプトをリアルタイムに検出できるようにします。
capture_network_errors説明: ローカルで失敗したHTTP/gRPCレスポンス、CORSヘッダー、ステータスコードを検査します。
目標: フロントエンドとバックエンド間で壊れたローカルAPI接続の根本原因を特定します。
🏗️ 技術スタック
TypeScript: TypeScript / Node.js
Protocol:
@modelcontextprotocol/sdkを使用した Model Context Protocol(MCP)トランスポート: 標準入力 / 標準出力(
stdio)システムAPI:
child_process、fs/promises、psutil/ システムプロセスユーティリティ
🚀 はじめに
依存関係をインストールし、TypeScriptソースをコンパイルします:
npm install
npm run buildMCPサーバーを起動します:
npm start初期サーバーはstdio経由で接続され、診断ツールを追加できる状態です。
🚀 Codex CLI連携
~/.codex/config.json(またはCodexクライアント設定)で構成します:
{
"mcpServers": {
"runtime-diagnostics": {
"command": "node",
"args": ["/Users/USERNAME/Documents/Codex/runtime-mcp-server/build/index.js"]
}
}
}📋 開発ロードマップ
TypeScriptと
@modelcontextprotocol/sdkプロジェクトを初期化するinspect_portsツールを実装するtail_app_logsツールを実装するget_process_metricsツールを実装するCodex CLIとの統合テストを追加する
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceGives AI agents real-time access to system metrics, process management, and container orchestration.
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to discover, configure, and manage local development servers. Provides tools for app registration, port allocation, lifecycle control, and log access without manual config editing.338MIT
- AlicenseNot gradedqualityCmaintenanceEnables LLM clients to inspect local dev environments—Docker container health, pnpm workspace integrity, and stuck process detection—without manual terminal copy-pasting.MIT
- AlicenseAqualityBmaintenanceProvides AI coding agents with structured, evidence-based diagnostics about the local development environment, detecting tech stack, runtime mismatches, dependency state, services, ports, and Git status without exposing secrets or using network calls.10Apache 2.0
Related MCP Connectors
The watchdog for unattended AI agents: agent health, alerts, run reports with evidence and cost.
Live browser debugging for AI assistants — DOM, console, network via MCP.
AI agent run monitoring with incident replay and SLA receipts.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/becketthayes/runtime-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server