Skip to main content
Glama

list_blocked_commands

View all currently blocked terminal commands in the Desktop Commander MCP server to maintain security and control over system operations.

Instructions

List all currently blocked commands.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • MCP tool handler for 'list_blocked_commands' that calls commandManager.listBlockedCommands() and returns the sorted list of blocked commands as newline-separated text.
    case "list_blocked_commands": { const blockedCommands = await commandManager.listBlockedCommands(); return { content: [{ type: "text", text: blockedCommands.join('\n') }], }; }
  • src/server.ts:114-123 (registration)
    Registration of the 'list_blocked_commands' tool in the server.ListToolsRequestHandler response, including name, description, and empty input schema (no parameters required).
    { name: "list_blocked_commands", description: "List all currently blocked commands.", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Helper method in CommandManager class that returns the sorted array of currently blocked commands from the internal Set.
    listBlockedCommands(): string[] { return Array.from(this.blockedCommands).sort(); }

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/MrGNSS/ClaudeDesktopCommander'

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