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39.0.\n * Original file: /npm/pickles2-mcp@0.1.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#!/usr/bin/env node\nimport { McpServer } from \"@modelcontextprotocol/sdk/server/mcp.js\";\nimport { StdioServerTransport } from \"@modelcontextprotocol/sdk/server/stdio.js\";\nimport { z } from \"zod\";\nimport { px2agent } from 'px2agent';\nimport { Command } from 'commander';\nimport { Logger } from './includes/Logger/Logger.js';\nconst version = \"0.1.0\";\nconst program = new Command();\n// Create an MCP server\nconst server = new McpServer({\n    name: \"Pickles 2 MCP\",\n    version: version,\n});\nprogram\n    .version(version)\n    .description('A MCP server for Pickles 2')\n    .requiredOption('--entry-script <path>', '[Required] Entry script for the Pickles 2.')\n    .option('-d, --debug', 'output extra debugging')\n    .option('--log-path <path>', 'Log output path.')\n    .action(async (cliOptions) => {\n    const px2proj = px2agent.createProject(cliOptions.entryScript);\n    const logger = new Logger({\n        debugMode: cliOptions.debug,\n        logPath: cliOptions.logPath,\n    });\n    logger.info('===== Pickles 2 MCP server started =====');\n    logger.info('Entry script: ' + cliOptions.entryScript);\n    logger.info('Debug mode: ' + cliOptions.debug);\n    logger.info('Log path: ' + cliOptions.logPath);\n    logger.info(cliOptions);\n    // Add Pickles 2 get-version tool\n    server.tool(\"pickles2-get-version\", \"Get Pickles 2 version.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-version');\n        logger.debug(parameters);\n        const version = await px2proj.get_version();\n        logger.debug(version);\n        logger.info('Run command: pickles2-get-version; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: version,\n                }]\n        };\n    });\n    // Add Pickles 2 get-config tool\n    server.tool(\"pickles2-get-config\", \"Get Pickles 2 config.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-config');\n        logger.debug(parameters);\n        const config = await px2proj.get_config();\n        const result = JSON.stringify(config);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-config; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-sitemap tool\n    server.tool(\"pickles2-get-sitemap\", \"Get Pickles 2 sitemap.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-sitemap');\n        logger.debug(parameters);\n        const sitemap = await px2proj.get_sitemap();\n        const result = JSON.stringify(sitemap);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-sitemap; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-page-info tool\n    server.tool(\"pickles2-get-page-info\", \"Get page information.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-page-info');\n        logger.debug(parameters);\n        const pageInfo = await px2proj.get_page_info(parameters.path);\n        const result = JSON.stringify(pageInfo);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-page-info; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-parent tool\n    server.tool(\"pickles2-get-parent\", \"Get parent page.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-parent');\n        logger.debug(parameters);\n        const parent = await px2proj.get_parent(parameters.path);\n        const result = JSON.stringify(parent);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-parent; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-children tool\n    server.tool(\"pickles2-get-children\", \"Get child pages.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting children\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-children');\n        logger.debug(parameters);\n        const children = await px2proj.get_children(parameters.path, parameters.options);\n        const result = JSON.stringify(children);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-children; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-bros tool\n    server.tool(\"pickles2-get-bros\", \"Get sibling pages.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting brothers\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-bros');\n        logger.debug(parameters);\n        const bros = await px2proj.get_bros(parameters.path, parameters.options);\n        const result = JSON.stringify(bros);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-bros; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-bros-next tool\n    server.tool(\"pickles2-get-bros-next\", \"Get next sibling page.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting next brother\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-bros-next');\n        logger.debug(parameters);\n        const brosNext = await px2proj.get_bros_next(parameters.path, parameters.options);\n        const result = JSON.stringify(brosNext);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-bros-next; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-bros-prev tool\n    server.tool(\"pickles2-get-bros-prev\", \"Get previous sibling page.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting previous brother\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-bros-prev');\n        logger.debug(parameters);\n        const brosPrev = await px2proj.get_bros_prev(parameters.path, parameters.options);\n        const result = JSON.stringify(brosPrev);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-bros-prev; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-next tool\n    server.tool(\"pickles2-get-next\", \"Get next page.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting next page\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-next');\n        logger.debug(parameters);\n        const next = await px2proj.get_next(parameters.path, parameters.options);\n        const result = JSON.stringify(next);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-next; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-prev tool\n    server.tool(\"pickles2-get-prev\", \"Get previous page.\", {\n        path: z.string().describe(\"Page path\"),\n        options: z.record(z.any()).optional().describe(\"Options for getting previous page\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-prev');\n        logger.debug(parameters);\n        const prev = await px2proj.get_prev(parameters.path, parameters.options);\n        const result = JSON.stringify(prev);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-prev; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-breadcrumb-array tool\n    server.tool(\"pickles2-get-breadcrumb-array\", \"Get breadcrumb array.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-breadcrumb-array');\n        logger.debug(parameters);\n        const breadcrumb = await px2proj.get_breadcrumb_array(parameters.path);\n        const result = JSON.stringify(breadcrumb);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-breadcrumb-array; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-dynamic-path-info tool\n    server.tool(\"pickles2-get-dynamic-path-info\", \"Get dynamic path information.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-dynamic-path-info');\n        logger.debug(parameters);\n        const dynamicPathInfo = await px2proj.get_dynamic_path_info(parameters.path);\n        const result = JSON.stringify(dynamicPathInfo);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-dynamic-path-info; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 bind-dynamic-path-param tool\n    server.tool(\"pickles2-bind-dynamic-path-param\", \"Bind dynamic path parameters.\", {\n        path: z.string().describe(\"Page path\"),\n        params: z.record(z.string()).describe(\"Parameters to bind to the dynamic path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-bind-dynamic-path-param');\n        logger.debug(parameters);\n        const boundPath = await px2proj.bind_dynamic_path_param(parameters.path, parameters.params);\n        logger.debug(boundPath);\n        logger.info('Run command: pickles2-bind-dynamic-path-param; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: boundPath,\n                }]\n        };\n    });\n    // Add Pickles 2 get-role tool\n    server.tool(\"pickles2-get-role\", \"Get role.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-role');\n        logger.debug(parameters);\n        const role = await px2proj.get_role(parameters.path);\n        logger.debug(role);\n        logger.info('Run command: pickles2-get-role; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: role,\n                }]\n        };\n    });\n    // Add Pickles 2 get-actors tool\n    server.tool(\"pickles2-get-actors\", \"Get actors.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-actors');\n        logger.debug(parameters);\n        const actors = await px2proj.get_actors(parameters.path);\n        const result = JSON.stringify(actors);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-actors; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-realpath-homedir tool\n    server.tool(\"pickles2-get-realpath-homedir\", \"Get home directory path.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-realpath-homedir');\n        logger.debug(parameters);\n        const homedir = await px2proj.get_realpath_homedir();\n        logger.debug(homedir);\n        logger.info('Run command: pickles2-get-realpath-homedir; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: homedir,\n                }]\n        };\n    });\n    // Add Pickles 2 get-path-controot tool\n    server.tool(\"pickles2-get-path-controot\", \"Get content root directory path.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-path-controot');\n        logger.debug(parameters);\n        const controot = await px2proj.get_path_controot();\n        logger.debug(controot);\n        logger.info('Run command: pickles2-get-path-controot; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: controot,\n                }]\n        };\n    });\n    // Add Pickles 2 get-realpath-docroot tool\n    server.tool(\"pickles2-get-realpath-docroot\", \"Get DOCUMENT_ROOT path.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-realpath-docroot');\n        logger.debug(parameters);\n        const docroot = await px2proj.get_realpath_docroot();\n        logger.debug(docroot);\n        logger.info('Run command: pickles2-get-realpath-docroot; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: docroot,\n                }]\n        };\n    });\n    // Add Pickles 2 get-path-content tool\n    server.tool(\"pickles2-get-path-content\", \"Get content path.\", {\n        path: z.string().describe(\"Page path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-path-content');\n        logger.debug(parameters);\n        const contentPath = await px2proj.get_path_content(parameters.path);\n        logger.debug(contentPath);\n        logger.info('Run command: pickles2-get-path-content; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: contentPath,\n                }]\n        };\n    });\n    // Add Pickles 2 path-files tool\n    server.tool(\"pickles2-path-files\", \"Get local resource directory path.\", {\n        path: z.string().describe(\"Page path\"),\n        resource: z.string().optional().describe(\"Resource path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-path-files');\n        logger.debug(parameters);\n        const filesPath = await px2proj.path_files(parameters.path, parameters.resource);\n        logger.debug(filesPath);\n        logger.info('Run command: pickles2-path-files; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: filesPath,\n                }]\n        };\n    });\n    // Add Pickles 2 realpath-files tool\n    server.tool(\"pickles2-realpath-files\", \"Get local resource directory server path.\", {\n        path: z.string().describe(\"Page path\"),\n        resource: z.string().optional().describe(\"Resource path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-realpath-files');\n        logger.debug(parameters);\n        const realpathFiles = await px2proj.realpath_files(parameters.path, parameters.resource);\n        logger.debug(realpathFiles);\n        logger.info('Run command: pickles2-realpath-files; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: realpathFiles,\n                }]\n        };\n    });\n    // Add Pickles 2 path-files-cache tool\n    server.tool(\"pickles2-path-files-cache\", \"Get local resource cache directory path.\", {\n        path: z.string().describe(\"Page path\"),\n        resource: z.string().optional().describe(\"Resource path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-path-files-cache');\n        logger.debug(parameters);\n        const cacheFilesPath = await px2proj.path_files_cache(parameters.path, parameters.resource);\n        logger.debug(cacheFilesPath);\n        logger.info('Run command: pickles2-path-files-cache; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: cacheFilesPath,\n                }]\n        };\n    });\n    // Add Pickles 2 realpath-files-cache tool\n    server.tool(\"pickles2-realpath-files-cache\", \"Get local resource cache directory server path.\", {\n        path: z.string().describe(\"Page path\"),\n        resource: z.string().optional().describe(\"Resource path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-realpath-files-cache');\n        logger.debug(parameters);\n        const realpathFilesCache = await px2proj.realpath_files_cache(parameters.path, parameters.resource);\n        logger.debug(realpathFilesCache);\n        logger.info('Run command: pickles2-realpath-files-cache; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: realpathFilesCache,\n                }]\n        };\n    });\n    // Add Pickles 2 realpath-files-private-cache tool\n    server.tool(\"pickles2-realpath-files-private-cache\", \"Get content-specific private cache directory server path.\", {\n        path: z.string().describe(\"Page path\"),\n        resource: z.string().optional().describe(\"Resource path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-realpath-files-private-cache');\n        logger.debug(parameters);\n        const privateCache = await px2proj.realpath_files_private_cache(parameters.path, parameters.resource);\n        logger.debug(privateCache);\n        logger.info('Run command: pickles2-realpath-files-private-cache; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: privateCache,\n                }]\n        };\n    });\n    // Add Pickles 2 get-domain tool\n    server.tool(\"pickles2-get-domain\", \"Get domain.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-domain');\n        logger.debug(parameters);\n        const domain = await px2proj.get_domain();\n        logger.debug(domain);\n        logger.info('Run command: pickles2-get-domain; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: domain,\n                }]\n        };\n    });\n    // Add Pickles 2 get-directory-index tool\n    server.tool(\"pickles2-get-directory-index\", \"Get directory index list.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-directory-index');\n        logger.debug(parameters);\n        const dirIndex = await px2proj.get_directory_index();\n        const result = JSON.stringify(dirIndex);\n        logger.debug(result);\n        logger.info('Run command: pickles2-get-directory-index; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 get-directory-index-primary tool\n    server.tool(\"pickles2-get-directory-index-primary\", \"Get primary directory index.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-get-directory-index-primary');\n        logger.debug(parameters);\n        const primaryDirIndex = await px2proj.get_directory_index_primary();\n        logger.debug(primaryDirIndex);\n        logger.info('Run command: pickles2-get-directory-index-primary; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: primaryDirIndex,\n                }]\n        };\n    });\n    // Add Pickles 2 get-path-proc-type tool\n    server.tool(\"pickles2-get-path-proc-type\", \"Get path processing type.\", {\n        path: z.string().describe(\"File path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-get-path-proc-type');\n        logger.debug(parameters);\n        const procType = await px2proj.get_path_proc_type(parameters.path);\n        logger.debug(procType);\n        logger.info('Run command: pickles2-get-path-proc-type; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: procType,\n                }]\n        };\n    });\n    // Add Pickles 2 href tool\n    server.tool(\"pickles2-href\", \"Generate link path.\", {\n        path: z.string().describe(\"Link to path\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-href');\n        logger.debug(parameters);\n        const href = await px2proj.href(parameters.path);\n        logger.debug(href);\n        logger.info('Run command: pickles2-href; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: href,\n                }]\n        };\n    });\n    // Add Pickles 2 is-match-dynamic-path tool\n    server.tool(\"pickles2-is-match-dynamic-path\", \"Check if path matches dynamic path.\", {\n        path: z.string().describe(\"Path to check\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-is-match-dynamic-path');\n        logger.debug(parameters);\n        const isMatch = await px2proj.is_match_dynamic_path(parameters.path);\n        const result = isMatch.toString();\n        logger.debug(result);\n        logger.info('Run command: pickles2-is-match-dynamic-path; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 is-page-in-breadcrumb tool\n    server.tool(\"pickles2-is-page-in-breadcrumb\", \"Check if page exists in breadcrumb.\", {\n        path: z.string().describe(\"Page path\"),\n        path_in: z.string().describe(\"Path to check in breadcrumb\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-is-page-in-breadcrumb');\n        logger.debug(parameters);\n        const isInBreadcrumb = await px2proj.is_page_in_breadcrumb(parameters.path, parameters.path_in);\n        const result = isInBreadcrumb.toString();\n        logger.debug(result);\n        logger.info('Run command: pickles2-is-page-in-breadcrumb; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 is-ignore-path tool\n    server.tool(\"pickles2-is-ignore-path\", \"Check if path is ignore path.\", {\n        path: z.string().describe(\"Path to check\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-is-ignore-path');\n        logger.debug(parameters);\n        const isIgnore = await px2proj.is_ignore_path(parameters.path);\n        const result = isIgnore.toString();\n        logger.debug(result);\n        logger.info('Run command: pickles2-is-ignore-path; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Add Pickles 2 publish tool\n    server.tool(\"pickles2-publish\", \"Publish Pickles 2 project.\", {\n        options: z.object({\n            path_region: z.string().optional().describe(\"Path region to publish\"),\n            paths_region: z.array(z.string()).optional().describe(\"Path regions to publish\"),\n            paths_ignore: z.array(z.string()).optional().describe(\"Paths to ignore\"),\n            keep_cache: z.boolean().optional().describe(\"Keep cache\")\n        }).optional().describe(\"Publish options\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-publish');\n        logger.debug(parameters);\n        const publishResult = await px2proj.publish(parameters?.options);\n        logger.debug(publishResult);\n        logger.info('Run command: pickles2-publish; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: publishResult,\n                }]\n        };\n    });\n    // Add Pickles 2 clearcache tool\n    server.tool(\"pickles2-clearcache\", \"Clear the Pickles 2 cache.\", {}, async (parameters) => {\n        logger.info('Run command: pickles2-clearcache');\n        logger.debug(parameters);\n        const stdout = await px2proj.clearcache();\n        logger.debug(stdout);\n        logger.info('Run command: pickles2-clearcache; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: stdout,\n                }]\n        };\n    });\n    // Add Pickles 2 query tool\n    server.tool(\"pickles2-query\", \"Execute a custom query to Pickles 2.\", {\n        path: z.string().describe(\"Query path\"),\n        options: z.object({\n            method: z.string().optional().describe(\"HTTP method\"),\n            body: z.string().optional().describe(\"Request body\"),\n            bodyFile: z.string().optional().describe(\"Path to request body file\")\n        }).optional().describe(\"Query options\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-query');\n        logger.debug(parameters);\n        const queryResult = await px2proj.query(parameters.path, parameters.options);\n        logger.debug(queryResult);\n        logger.info('Run command: pickles2-query; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: queryResult,\n                }]\n        };\n    });\n    // Add Pickles 2 px-command tool\n    server.tool(\"pickles2-px-command\", \"Execute a PX command.\", {\n        command: z.string().describe(\"PX command\"),\n        path: z.string().optional().describe(\"Path\"),\n        params: z.record(z.string()).optional().describe(\"Command parameters\")\n    }, async (parameters) => {\n        logger.info('Run command: pickles2-px-command');\n        logger.debug(parameters);\n        const cmdResult = await px2proj.px_command(parameters.command, parameters.path, parameters.params);\n        const result = JSON.stringify(cmdResult);\n        logger.debug(result);\n        logger.info('Run command: pickles2-px-command; done');\n        return {\n            content: [{\n                    type: \"text\",\n                    text: result,\n                }]\n        };\n    });\n    // Start receiving messages on stdin and sending messages on stdout\n    const transport = new StdioServerTransport();\n    await server.connect(transport);\n});\nprogram.parse(process.argv);\n"]}