list_blocked_commands
View all currently blocked terminal commands on your computer to maintain control and security over system operations.
Instructions
List all currently blocked commands.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.ts:250-255 (handler)MCP tool handler for list_blocked_commands: calls commandManager.listBlockedCommands() and returns sorted list as text content.case "list_blocked_commands": { const blockedCommands = await commandManager.listBlockedCommands(); return { content: [{ type: "text", text: blockedCommands.join('\n') }], }; }
- src/server.ts:114-123 (registration)Registers the list_blocked_commands tool in the ListTools response with empty input schema.{ name: "list_blocked_commands", description: "List all currently blocked commands.", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/command-manager.ts:53-55 (helper)Core implementation: returns sorted array of blocked commands from the internal Set.listBlockedCommands(): string[] { return Array.from(this.blockedCommands).sort(); }