remove_from_whitelist
Remove specified commands from the whitelist in Super Shell MCP Server to restrict their execution across Windows, macOS, and Linux systems.
Instructions
Remove a command from the whitelist
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command to remove from whitelist |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "The command to remove from whitelist",
"type": "string"
}
},
"required": [
"command"
],
"type": "object"
}
Implementation Reference
- src/index.ts:221-233 (registration)Tool registration including name, description, and input schema for remove_from_whitelistname: '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)Main handler function for the remove_from_whitelist tool: validates input with zod, delegates to commandService, returns success responseprivate 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`, }, ], }; }
- Core implementation: deletes the command from the internal whitelist Mappublic removeFromWhitelist(command: string): void { this.whitelist.delete(command); }
- src/index.ts:293-294 (registration)Dispatch case in the tool request handler that routes to the specific handler functioncase 'remove_from_whitelist': return await this.handleRemoveFromWhitelist(args);