Skip to main content
Glama
cfdude

Super Shell MCP Server

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
NameRequiredDescriptionDefault
commandYesThe 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'],
      },
    },
  • Primary MCP handler for the tool: validates arguments with Zod and delegates to CommandService.removeFromWhitelist, returning success message
    private 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 Map
    public removeFromWhitelist(command: string): void {
      this.whitelist.delete(command);
    }

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/cfdude/super-shell-mcp'

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