Skip to main content
Glama

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
NameRequiredDescriptionDefault

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: [], }, },
  • 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') }], }; }
  • 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(); }

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