get_config
Retrieve configuration settings by providing a random string identifier.
Instructions
Get config
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| random_string | Yes |
Implementation Reference
- src/tools/terminal_tools.js:33-50 (handler)The getConfig function that executes the tool logic. It returns merged config with version info.
/** * Get the current configuration */ function getConfig() { try { return { success: true, ...config, version: require('../../package.json').version }; } catch (error) { logger.error(`Error getting config: ${error.message}`); return { success: false, message: error.message }; } } - src/mcp/server.js:95-95 (schema)Schema definition for the 'get_config' tool registration, requiring a dummy 'random_string' field.
{ name:'get_config', description:'Get config', inputSchema:{ type:'object', properties:{ random_string:{type:'string'} }, required:['random_string'] } }, - src/mcp/server.js:252-252 (registration)Registration/handler dispatch: maps 'get_config' case to terminalTools.getConfig() call.
case 'get_config': data = terminalTools.getConfig(); break; - src/tools/terminal_tools.js:12-16 (helper)The config object which getConfig() reads from (default shell, blocked commands, command timeout).
let config = { defaultShell: process.env.DEFAULT_SHELL || (process.platform === 'win32' ? 'powershell.exe' : '/bin/bash'), blockedCommands: (process.env.BLOCKED_COMMANDS || '').split(',').filter(Boolean), commandTimeout: parseInt(process.env.COMMAND_TIMEOUT || '30000'), }; - src/tools/terminal_tools.js:459-460 (helper)Export of getConfig from terminal_tools module.
module.exports = { getConfig,