@sinch/mcp
Version:
Sinch MCP server
28 lines • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mcpConfigurationHandler = exports.registerMcpConfiguration = void 0;
const types_1 = require("../../types");
const tools_config_1 = require("../../tools-config");
const TOOL_NAME = 'sinch-mcp-configuration';
const registerMcpConfiguration = (server) => {
tools_config_1.toolsStatusMap[TOOL_NAME] = tools_config_1.ENABLED;
server.tool(TOOL_NAME, 'This tool allows you to retrieve the configuration of the Sinch MCP server. It provides information about which tools are enabled and disabled with some troubleshooting information about why a tool would be disabled.', exports.mcpConfigurationHandler);
};
exports.registerMcpConfiguration = registerMcpConfiguration;
const mcpConfigurationHandler = () => {
let result = 'Here is the status of the Sinch MCP server tools. They must be displayed as a array, the enabled tools first with the status ✅, the disabled tools after, with the description of why they are disabled.\n\n';
result += '| Tool Name | Status | Description |\n';
result += '|-----------|--------|-------------|\n';
for (const tool of Object.keys(tools_config_1.toolsStatusMap)) {
const status = tools_config_1.toolsStatusMap[tool];
if (status === tools_config_1.ENABLED) {
result += `| ${tool} | ✅ | Enabled |\n`;
}
else {
result += `| ${tool} | ❌ | ${status} |\n`;
}
}
return new types_1.PromptResponse(result).promptResponse;
};
exports.mcpConfigurationHandler = mcpConfigurationHandler;
//# sourceMappingURL=tools-configuration.js.map