Skip to content
/ mcop Public

MCP Operations Monitor - A TUI for monitoring and managing Model Context Protocol servers (like top/htop for MCP)

Notifications You must be signed in to change notification settings

Jos-few43/mcop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCOP - MCP Operations Monitor

MCOP (Model Context Protocol Operations) is a Terminal User Interface application designed to monitor, manage, and visualize MCP (Model Context Protocol) servers and connections in real-time. Inspired by top and htop, MCOP provides a system-monitor-like interface for MCP operations.

Demo

┌─────────────────── MCOP - MCP Operations Monitor ───────────────────┐
│  Uptime: 2h 34m  │  Active Servers: 4  │  Total Connections: 12   │
├─────────────────────────────────────────────────────────────────────┤
│                                                                      │
│  PID    NAME              STATUS    CPU%   MEM%   CONNS   UPTIME   │
│  ────────────────────────────────────────────────────────────────   │
│  1234   qwen-mcp-server   ●Running  12.3   156M    5      2h 30m   │
│  1235   filesystem-mcp    ●Running   3.1    45M    3      2h 28m   │
│  1236   sqlite-mcp        ●Running   1.2    32M    2      2h 15m   │
│  1237   brave-search      ●Running   0.8    28M    2      1h 45m   │
│                                                                      │
├─────────────────────────────────────────────────────────────────────┤
│  Selected: qwen-mcp-server                                          │
│  ┌───────────────────────────────────────────────────────────────┐ │
│  │  Server Details:                                              │ │
│  │  • Model: Qwen2.5-Coder                                       │ │
│  │  • Protocol: stdio                                            │ │
│  │  • Response Time: 234ms avg                                   │ │
│  │  • Requests/min: 45                                           │ │
│  │  • Last Activity: 3s ago                                      │ │
│  └───────────────────────────────────────────────────────────────┘ │
│                                                                      │
│  [s]tart/stop  [r]efresh  [c]onfig  [d]isconnect  [q]uit  [?]help  │
└──────────────────────────────────────────────────────────────────────┘

What it shows:

  • 📊 Real-time monitoring of all MCP server processes
  • 🔍 Resource usage (CPU, memory) for each server
  • 📈 Connection tracking and performance metrics
  • 🎯 Interactive management (start, stop, configure)
  • ⚡ Response times and health status
  • 🔄 Live updates like top/htop

Features

  • Real-time Monitoring: Monitor active MCP server connections and resource usage
  • Process-like View: View MCP servers similar to how top/htop shows system processes
  • Interactive Management: Start, stop, and configure MCP servers from the TUI
  • Connection Tracking: Track active connections and their status
  • Performance Metrics: Monitor response times, throughput, and health of MCP servers
  • Configuration Management: Edit and manage MCP server configurations
  • Server Discovery: Browse and connect to available MCP servers

Installation

# Clone the repository
git clone https://github.com/your-username/mcop.git
cd mcop

# Build the application
go build -o mcop ./cmd/mcop

# Run the application
./mcop

Development Setup

# Install dependencies
go mod tidy

# Build for development
go build -o mcop ./cmd/mcop

# Run directly
go run ./cmd/mcop

Usage

# Launch MCOP TUI
./mcop

# Connect to specific server
./mcop --connect <server-url>

# Connect with config file
./mcop --config /path/to/config.json

Key Controls

  • q or Ctrl+C: Quit the application
  • ↑/↓: Navigate between MCP processes/connections
  • Enter: View detailed information about selected connection
  • s: Start/stop selected MCP server
  • r: Refresh the MCP connection list
  • c: Open configuration editor
  • d: Disconnect selected connection
  • ?: Show help

Motivation

MCOP provides a system-process-style monitoring interface for Model Context Protocol operations, giving developers and operators a familiar interface for managing MCP infrastructure similar to how system administrators use top/htop to monitor system resources.

About

MCP Operations Monitor - A TUI for monitoring and managing Model Context Protocol servers (like top/htop for MCP)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages