Skip to main content
Glama
qckfx
by qckfx

list_processes

View all active Node.js processes managed by the debugger server to monitor and control debugging sessions.

Instructions

List all managed Node.js processes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that lists all managed Node.js processes, returning their pid, port, command, startTime, and status as JSON.
    private async listProcesses() { const processes = Array.from(this.managedProcesses.values()).map(p => ({ pid: p.pid, port: p.port, command: `${p.command} ${p.args.join(" ")}`, startTime: p.startTime.toISOString(), status: p.process.killed ? 'killed' : 'running' })); return { content: [ { type: "text", text: JSON.stringify(processes, null, 2), }, ], }; }
  • Tool schema definition in ListToolsRequestSchema, specifying the name, description, and empty input schema (no parameters required).
    { name: "list_processes", description: "List all managed Node.js processes", inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:250-252 (registration)
    Registration in the CallToolRequestSchema handler switch statement, which calls the listProcesses method when the tool is invoked.
    case "list_processes": return await this.listProcesses();

Latest Blog Posts

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/qckfx/node-debugger-mcp'

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