list_blocked_commands
View currently blocked terminal commands to understand security restrictions and manage command execution permissions in the Claude Desktop Commander environment.
Instructions
List all currently blocked commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:114-123 (registration)Tool registration in the ListTools response, including name, description, and empty input schema.
{ name: "list_blocked_commands", description: "List all currently blocked commands.", inputSchema: { type: "object", properties: {}, required: [], }, }, - src/server.ts:250-255 (handler)MCP tool dispatch handler that calls commandManager.listBlockedCommands() and formats the response.
case "list_blocked_commands": { const blockedCommands = await commandManager.listBlockedCommands(); return { content: [{ type: "text", text: blockedCommands.join('\n') }], }; } - src/command-manager.ts:53-55 (handler)Core implementation of listing blocked commands from the internal Set, sorted alphabetically.
listBlockedCommands(): string[] { return Array.from(this.blockedCommands).sort(); }