Price Per TokenPrice Per Token

Go Process Inspector

by monsterxx03

GitHub 93 710 uses Remote
0

About

Go Process Inspector (gospy) is a debugging and analysis tool for inspecting running Go processes in real-time. It provides deep visibility into goroutine states, memory allocation, and runtime information through both an interactive terminal interface and a programmatic HTTP API. Key features of Go Process Inspector: - Live goroutine inspection with status, scheduling info, and stack traces for debugging deadlocks and performance issues - Memory statistics analysis including heap usage, garbage collection metrics, and allocation patterns - Binary information retrieval to understand compiled Go applications - Interactive terminal UI with search, filter, and refresh capabilities for exploring process data - HTTP API endpoints for integration with external tools and automated monitoring - MCP server support via Server-Sent Events for AI assistant integration - Cross-platform support for Linux and macOS (Apple Silicon)

README

Go Process Inspector

[](https://goreportcard.com/report/github.com/monsterxx03/gospy) [](LICENSE) [](https://cursor.com/install-mcp?name=gospy&config=eyJ1cmwiOiJodHRwOi8vbG9jYWxob3N0Ojg5NzQvbWNwIn0%3D)

A tool for inspecting and analyzing running Go processes, including goroutine states, memory statistics, and binary information.

Features

  • View detailed goroutine information (status, scheduling info)
  • Analyze process memory statistics
  • Cross-platform support (Linux and macOS)
  • Terminal UI for interactive inspection
  • HTTP API for programmatic access
  • mcp server
  • Installation

    go install github.com/monsterxx03/gospy@latest
    

    Usage

    CLI Interface

    # Interactive terminal UI
    sudo gospy top --pid 

    HTTP API server

    sudo gospy serve --port 8974

    Get process summary

    sudo gospy summary --pid

    Get process summary in JSON format

    sudo gospy summary --pid --json

    #### Summary Command Options

  • --pid/-p - Target process ID (required)
  • --bin/-b - Path to binary file (optional)
  • --json/-j - Output results in JSON format
  • API Endpoints

  • GET /goroutines?pid= - List all goroutines
  • GET /memstats?pid= - Get memory statistics
  • GET /runtime?pid= - Get runtime version info
  • MCP Server

    The MCP server provides an http (streamableHTTP) endpoint. To enable:

    >>> sudo gospy serve --enable-mcp --port 8974

    Starting API server on port 8974 Endpoints: GET /runtime?pid= - Get runtime info GET /goroutines?pid= - Get goroutines list GET /memstats?pid= - Get memory stats GET /mcp - MCP http endpoint

    Available MCP tools:

  • goroutines - Dump goroutines for a go process
  • gomemstats - Dump memory stats for a go process
  • goruntime - Dump runtime info for a go process
  • pgrep - Find pid from process name
  • Config in cursor

    Terminal UI Controls

  • q - Quit
  • r - Refresh data
  • s - Suspend/Resume top view
  • / - Search/filter goroutines
  • Terminal UI Screenshot

    Building from Source

    git clone https://github.com/monsterxx03/gospy.git
    cd gospy
    make
    

    Requirements

  • Go 1.20+
  • Linux or macOS (Apple Silicon only)
  • Root privileges (required for memory access)
  • Root Privileges

    gospy requires root privileges to:

  • Read process memory (/proc//mem on Linux)
  • Access Mach APIs on macOS
  • Run with sudo:

    sudo gospy top --pid 
    

    For development/debugging, you may want to: 1. Build the binary first: make 2. Run with sudo: sudo ./gospy [command]

    Credits

    Version 0.7.0 was completely rewritten from scratch with aider, which wrote >90% of the code. Additional assistance from:

  • DeepSeek (R1 + V3 models) - AI coding assistant
  • Total AI compute cost: ~$2 USD

    License

    MIT - See LICENSE file for details.

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81