Skip to main content
Glama
becketthayes

runtime-mcp-server

by becketthayes

Runtime Diagnostic MCP Server (runtime-mcp-server)

ローカルで動作するModel Context Protocol(MCP)サーバーで、AIコーディングエージェント(OpenAI Codex CLIなど)に、ローカル開発環境のリアルタイムなランタイム診断、プロセス監視、ログ分析を提供します。

🎯 目的

AIコーディングエージェントは静的コードの検査に優れていますが、ランタイムの実行状態については把握できません。このサーバーは、AIエージェントに実行中プロセスの観測、クラッシュログの分析、アクティブポートの検査、システムリソースの監視を行うための、プログラムから利用できる読み取り専用ツールを提供することで、このギャップを埋めます。

Related MCP server: Harbor MCP Server

🛠️ コアツール(v1機能)

  1. tail_app_logs

    • 説明: 稼働中のバックグラウンド開発サーバー(npm run devpythondocker)から、最近のstdout/stderrストリームやクラッシュログを読み取って末尾を追跡(tail)します。

    • 目標: 手動でコピー&ペーストすることなく、生のスタックトレースを自動的にCodexへ渡します。

  2. inspect_ports

    • 説明: アクティブなローカルネットワークポート(例:3000、8080)をスキャンし、占有しているプロセスID(PID)を特定します。

    • 目標: EADDRINUSE / "Port already in use" エラーを自動的に解決し、ゾンビプロセスに安全にシグナルを送信できます。

  3. get_process_metrics

    • 説明: 特定のローカルアプリケーションプロセスのCPUとRAM使用量を監視します。

    • 目標: Codexが無限ループ、メモリリーク、暴走するバックグラウンドスクリプトをリアルタイムに検出できるようにします。

  4. capture_network_errors

    • 説明: ローカルで失敗したHTTP/gRPCレスポンス、CORSヘッダー、ステータスコードを検査します。

    • 目標: フロントエンドとバックエンド間で壊れたローカルAPI接続の根本原因を特定します。

🏗️ 技術スタック

  • TypeScript: TypeScript / Node.js

  • Protocol: @modelcontextprotocol/sdk を使用した Model Context Protocol(MCP)

  • トランスポート: 標準入力 / 標準出力(stdio

  • システムAPI: child_processfs/promisespsutil / システムプロセスユーティリティ

🚀 はじめに

依存関係をインストールし、TypeScriptソースをコンパイルします:

npm install
npm run build

MCPサーバーを起動します:

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との統合テストを追加する

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables 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.
    338
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables LLM clients to inspect local dev environments—Docker container health, pnpm workspace integrity, and stuck process detection—without manual terminal copy-pasting.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides 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.
    10
    Apache 2.0

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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