Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Go agent that provides runtime profiling data through the Model Context Protocol (MCP).
Fetched from the repository for this visit.
A Go agent that provides runtime profiling data through the Model Context Protocol (MCP). It enables real-time collection and analysis of Go runtime performance data, making it easier to monitor and debug Go applications in production.
go get github.com/yudppp/pprof-mcp-agent
pprof-mcp-agent integrates Go's built-in profiling capabilities with the MCP protocol, providing a streamlined way to collect and analyze performance data. It supports various profile types, each designed to help diagnose different aspects of your application's performance:
CPU Profile: Identifies CPU-intensive code paths and performance bottlenecks
Heap Profile: Analyzes memory usage patterns
Goroutine Profile: Examines goroutine behavior
Block Profile: Analyzes synchronization issues
Allocation Profile: Examines memory allocation patterns
Thread Creation Profile: Monitors OS thread creation
Each profile can be viewed in three different modes:
Flat View (default): Shows direct values for each function
Cumulative View: Shows cumulative values including child functions
Graph View: Shows the call graph relationship
package main
import (
"context"
"log"
pprofmcpagent "github.com/yudppp/pprof-mcp-agent"
)
func main() {
// Create a context for controlling the server lifecycle
ctx := context.Background()
// Start the MCP server on port 1239
if err := pprofmcpagent.ServeSSE(ctx, ":1239"); err != nil {
log.Fatalf("Failed to start pprof MCP agent: %v", err)
}
}
Each profile type supports the following configuration options:
limit: Maximum number of locations to show in results (default: 100, min: 100, max: 10000)view: Profile view mode (flat, cum, or graph, default: flat)duration: Sampling duration for CPU profiles (default: 10 seconds)Contributions are welcome! Here's how you can help:
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)Please ensure your PR includes appropriate tests and documentation updates.
yudppp
If you encounter any issues or have questions, please file an issue on the GitHub repository.
GitHub checked 448h ago - refresh overdue. Recently viewed repositories target hourly refresh.