unblock_command
Remove a command from the blacklist to restore its execution capability in Claude Desktop Commander MCP.
Instructions
Remove a command from the blacklist. Once unblocked, the command can be executed normally.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes |
Implementation Reference
- src/server.ts:243-249 (handler)Handler for the unblock_command tool that parses input arguments and delegates to commandManager.unblockCommand, returning the result.case "unblock_command": { const parsed = UnblockCommandArgsSchema.parse(args); const unblockResult = await commandManager.unblockCommand(parsed.command); return { content: [{ type: "text", text: unblockResult }], }; }
- src/tools/schemas.ts:27-29 (schema)Zod schema defining the input for unblock_command: a command string.export const UnblockCommandArgsSchema = z.object({ command: z.string(), });
- src/server.ts:108-113 (registration)Registration of the unblock_command tool in the server's tool list, including name, description, and input schema.{ name: "unblock_command", description: "Remove a command from the blacklist. Once unblocked, the command can be executed normally.", inputSchema: zodToJsonSchema(UnblockCommandArgsSchema), },
- src/command-manager.ts:43-51 (helper)Implementation of unblockCommand method in CommandManager class, which removes the command from the blocked set and persists the change to config file.async unblockCommand(command: string): Promise<boolean> { command = command.toLowerCase().trim(); if (!this.blockedCommands.has(command)) { return false; } this.blockedCommands.delete(command); await this.saveBlockedCommands(); return true; }