Skip to main content
Glama
StrawHatAI

Claude Desktop Commander MCP

by StrawHatAI

unblock_command

Restore blocked terminal commands for execution by removing them from the blacklist in Claude Desktop Commander MCP, enabling normal command functionality.

Instructions

Remove a command from the blacklist. Once unblocked, the command can be executed normally.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commandYes

Implementation Reference

  • Core handler function that removes the specified command from the blocked commands set and persists the change to the 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; }
  • src/server.ts:243-249 (registration)
    Server-side dispatch handler for the unblock_command tool, which parses input and delegates to commandManager.
    case "unblock_command": { const parsed = UnblockCommandArgsSchema.parse(args); const unblockResult = await commandManager.unblockCommand(parsed.command); return { content: [{ type: "text", text: unblockResult }], }; }
  • Zod schema defining the input parameters for the unblock_command tool (command string).
    export const UnblockCommandArgsSchema = z.object({ command: z.string(), });
  • src/server.ts:108-113 (registration)
    Tool registration in the listTools response, defining 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), },

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/StrawHatAI/claude-dev-tools'

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