Skip to main content
Glama

Claude Desktop Commander MCP

types.ts1.21 kB
import { ChildProcess } from 'child_process'; import { FilteredStdioServerTransport } from './custom-stdio.js'; declare global { var mcpTransport: FilteredStdioServerTransport | undefined; var disableOnboarding: boolean | undefined; } 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; } // Define the server response types export interface ServerResponseContent { type: string; text?: string; data?: string; mimeType?: string; } export interface ServerResult { content: ServerResponseContent[]; isError?: boolean; _meta?: Record<string, unknown>; } // Define a helper type for tool handler functions export type ToolHandler<T = unknown> = (args: T) => Promise<ServerResult>;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wonderwhy-er/DesktopCommanderMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server