UNPKG

markdown-editor-mcp

Version:

MCP server for markdown editing and management

44 lines (43 loc) 979 B
import { ChildProcess } from 'child_process'; export interface ProcessInfo { pid: number; command: string; cpu: string; memory: string; } export interface TerminalSession { pid: number; process: ChildProcess; lastOutput: string; isBlocked: boolean; startTime: Date; } export interface CommandExecutionResult { pid: number; output: string; isBlocked: boolean; } export interface ActiveSession { pid: number; isBlocked: boolean; runtime: number; } export interface CompletedSession { pid: number; output: string; exitCode: number | null; startTime: Date; endTime: Date; } export interface ServerResponseContent { type: string; text?: string; data?: string; mimeType?: string; } export interface ServerResult { content: ServerResponseContent[]; isError?: boolean; _meta?: Record<string, unknown>; } export type ToolHandler<T = unknown> = (args: T) => Promise<ServerResult>;