mold_getConfig
Retrieve current endpoint, API key, algorithm, and configuration file path for the ABLESTACK MOLD MCP Server to verify and manage API settings.
Instructions
현재 사용 중인 endpoint/apiKey(마스킹)/알고리즘/구성파일 경로를 반환합니다.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/app/tools.js:173-183 (registration)Registers the 'mold_getConfig' MCP tool, defining its title, description, empty input schema, and a simple handler that returns the redacted configuration as JSON.server.registerTool( "mold_getConfig", { title: "MOLD 연결정보 조회", description: "현재 사용 중인 endpoint/apiKey(마스킹)/알고리즘/구성파일 경로를 반환합니다.", inputSchema: {}, }, async () => { return { content: [{ type: "text", text: JSON.stringify(getConfigRedacted(), null, 2) }] }; } );
- src/app/tools.js:180-182 (handler)The handler function for the tool, which calls getConfigRedacted() and returns the result as a formatted text response.async () => { return { content: [{ type: "text", text: JSON.stringify(getConfigRedacted(), null, 2) }] }; }
- src/app/tools.js:175-179 (schema)Tool schema definition with Korean title and description, and empty inputSchema indicating no parameters required.{ title: "MOLD 연결정보 조회", description: "현재 사용 중인 endpoint/apiKey(마스킹)/알고리즘/구성파일 경로를 반환합니다.", inputSchema: {}, },
- src/util/config.js:64-77 (helper)Helper function that provides a redacted view of the MOLD configuration (endpoint, masked apiKey, secret presence, algorithm, config file path).export function getConfigRedacted() { const redact = (s = "") => { if (!s) return ""; if (s.length <= 8) return "*".repeat(s.length); return s.slice(0, 4) + "***" + s.slice(-4); }; return { endpoint: CONFIG.endpoint || "", apiKey: redact(CONFIG.apiKey), hasSecret: !!CONFIG.secret, algo: CONFIG.algo, configFile: CONFIG_FILE, }; }