list_blocked_commands
Retrieve a list of all currently blocked commands in the Desktop Commander MCP server to monitor and manage restricted terminal operations effectively.
Instructions
List all currently blocked commands.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:114-123 (registration)Registers the 'list_blocked_commands' tool in the ListTools response with an empty input schema (no parameters required).{ name: "list_blocked_commands", description: "List all currently blocked commands.", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/server.ts:250-255 (handler)The main handler for the 'list_blocked_commands' tool. It calls commandManager.listBlockedCommands() and formats the result as a text response with commands separated by newlines.case "list_blocked_commands": { const blockedCommands = await commandManager.listBlockedCommands(); return { content: [{ type: "text", text: blockedCommands.join('\n') }], }; }
- src/command-manager.ts:53-55 (helper)Helper method in CommandManager that returns a sorted array of all currently blocked commands stored in the instance's Set.listBlockedCommands(): string[] { return Array.from(this.blockedCommands).sort(); }