Skip to main content
Glama
becketthayes

runtime-mcp-server

by becketthayes

Runtime Diagnostic MCP Server (runtime-mcp-server)

A local Model Context Protocol (MCP) server that provides AI coding agents (like OpenAI Codex CLI) with real-time runtime diagnostics, process monitoring, and log analysis for local development environments.

🎯 Purpose

AI coding agents are great at inspecting static code, but blind to runtime execution state. This server bridges that gap by giving AI agents programmatic, read-only tools to observe running processes, analyze crash logs, inspect active ports, and monitor system resources.

Related MCP server: Harbor MCP Server

🛠️ Core Tools (v1 Features)

  1. tail_app_logs

    • Description: Reads and tails recent stdout/stderr streams or crash logs from active background dev servers (npm run dev, python, docker).

    • Goal: Hands raw stack traces to Codex automatically without manual copy-pasting.

  2. inspect_ports

    • Description: Scans active local network ports (e.g., 3000, 8080) and identifies occupying process IDs (PIDs).

    • Goal: Automatically resolves EADDRINUSE / "Port already in use" errors and can safely signal zombie processes.

  3. get_process_metrics

    • Description: Monitors CPU and RAM usage for specific local application processes.

    • Goal: Helps Codex detect infinite loops, memory leaks, and runaway background scripts in real time.

  4. capture_network_errors

    • Description: Inspects local failed HTTP/gRPC responses, CORS headers, and status codes.

    • Goal: Pinpoints root causes for broken frontend-to-backend local API connections.

🏗️ Technical Stack

  • Language: TypeScript / Node.js

  • Protocol: Model Context Protocol (MCP) via @modelcontextprotocol/sdk

  • Transport: Standard Input/Output (stdio)

  • System APIs: child_process, fs/promises, psutil / system process utilities

🚀 Getting Started

Install dependencies and compile the TypeScript source:

npm install
npm run build

Start the MCP server:

npm start

The initial server connects over stdio and is ready for diagnostic tools to be added.

🚀 Codex CLI Integration

Configured in ~/.codex/config.json (or Codex client settings):

{
  "mcpServers": {
    "runtime-diagnostics": {
      "command": "node",
      "args": ["/Users/USERNAME/Documents/Codex/runtime-mcp-server/build/index.js"]
    }
  }
}

đź“‹ Development Roadmap

  • Initialize TypeScript & @modelcontextprotocol/sdk project

  • Implement inspect_ports tool

  • Implement tail_app_logs tool

  • Implement get_process_metrics tool

  • Add integration tests with 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

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

  • Watchdog for unattended AI agents: agent health, alerts, run reports with evidence and cost.

  • 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