Skip to main content
Glama
qckfx
by qckfx

list_processes

Retrieve a list of all managed Node.js processes to monitor and debug via the Node.js Debugger MCP Server, enabling efficient process management and debugging.

Instructions

List all managed Node.js processes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the list_processes tool. It retrieves all managed processes from this.managedProcesses Map, transforms them into a simplified JSON object with pid, port, command, startTime, and status, and returns the JSON string as text content in the MCP response format.
    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), }, ], }; }
  • src/index.ts:169-175 (registration)
    The tool registration entry in the list of tools provided to the MCP server via setTools. Includes the name, description, and input schema (empty object since no parameters are required).
    name: "list_processes", description: "List all managed Node.js processes", inputSchema: { type: "object", properties: {}, }, },
  • The input schema for the list_processes tool, defining an empty object (no required parameters).
    inputSchema: { type: "object", properties: {}, }, },
  • src/index.ts:250-251 (registration)
    The dispatch case in the CallToolRequestHandler switch statement that routes calls to the listProcesses handler method.
    case "list_processes": return await this.listProcesses();

Other Tools

Related Tools

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