remove_from_whitelist
Remove a command from the whitelist to restrict its execution in the Super Shell MCP Server's secure shell environment across Windows, macOS, and Linux.
Instructions
Remove a command from the whitelist
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to remove from whitelist |
Implementation Reference
- src/index.ts:220-233 (registration)MCP tool registration defining the name, description, and input schema for remove_from_whitelist{ name: 'remove_from_whitelist', description: 'Remove a command from the whitelist', inputSchema: { type: 'object', properties: { command: { type: 'string', description: 'The command to remove from whitelist', }, }, required: ['command'], }, },
- src/index.ts:503-520 (handler)Primary MCP handler for the tool: validates arguments with Zod and delegates to CommandService.removeFromWhitelist, returning success messageprivate async handleRemoveFromWhitelist(args: any) { const schema = z.object({ command: z.string(), }); const { command } = schema.parse(args); this.commandService.removeFromWhitelist(command); return { content: [ { type: 'text', text: `Command '${command}' removed from whitelist`, }, ], }; }
- Supporting method in CommandService that performs the actual removal by deleting the entry from the internal whitelist Mappublic removeFromWhitelist(command: string): void { this.whitelist.delete(command); }