UNPKG

@flamedeck/flamechart-mcp

Version:

MCP server for debugging and analyzing flamegraphs using Model Context Protocol

20 lines (16 loc) 633 B
import { FastMCP } from 'fastmcp'; import { ProfileGroup } from '@flamedeck/speedscope-core/profile'; interface ProfileLoadResult { profileGroup: ProfileGroup; arrayBuffer: ArrayBuffer; } interface FlamegraphSnapshotResult { status: 'success' | 'error' | 'success_with_warning'; publicUrl: string | null; base64Image: string | null; message: string; } type TraceSource = string; declare function createFlamechartMCPServer(): FastMCP<undefined>; declare const server: FastMCP<undefined>; export { type FlamegraphSnapshotResult, type ProfileLoadResult, type TraceSource, createFlamechartMCPServer, server };