Skip to main content
Glama

Super Shell MCP Server

get_whitelist

Retrieve the list of approved commands for secure execution across Windows, macOS, and Linux within the Super Shell MCP Server environment.

Instructions

Get the list of whitelisted commands

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • The main handler function for the 'get_whitelist' tool. Retrieves the whitelist from CommandService and returns it as JSON-formatted text content.
    private async handleGetWhitelist() { const whitelist = this.commandService.getWhitelist(); return { content: [ { type: 'text', text: JSON.stringify(whitelist, null, 2), }, ], }; }
  • TypeScript interface defining the structure of CommandWhitelistEntry objects returned by the get_whitelist tool.
    export interface CommandWhitelistEntry { /** The command path or name */ command: string; /** Security level of the command */ securityLevel: CommandSecurityLevel; /** Allowed arguments (string for exact match, RegExp for pattern match) */ allowedArgs?: Array<string | RegExp>; /** Description of the command for documentation */ description?: string; }
  • src/index.ts:170-177 (registration)
    Tool registration in the MCP server's listTools handler, specifying name, description, and empty input schema.
    { name: 'get_whitelist', description: 'Get the list of whitelisted commands', inputSchema: { type: 'object', properties: {}, }, },
  • Helper method in CommandService that converts the internal whitelist Map to an array for the tool handler.
    public getWhitelist(): CommandWhitelistEntry[] { return Array.from(this.whitelist.values()); }

Other Tools

Related Tools

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