@airwallex/developer-mcp
Version:
MCP server for AI agents that assist developers integrating with the Airwallex platform
33 lines (32 loc) • 1.17 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.readBestPracticesToolConfig = exports.readBestPracticesSchema = void 0;
exports.executeReadBestPractices = executeReadBestPractices;
const zod_1 = require("zod");
const descriptions_1 = require("../constants/descriptions");
exports.readBestPracticesSchema = zod_1.z.object({});
async function executeReadBestPractices(integrationBestPracticesContent) {
try {
return {
content: [
{
text: integrationBestPracticesContent,
type: "text",
},
],
};
}
catch (error) {
throw new Error(`Failed to read the integration best practices file: ${error instanceof Error ? error.message : String(error)}`);
}
}
exports.readBestPracticesToolConfig = {
annotations: {
openWorldHint: false,
readOnlyHint: true,
title: "Read Airwallex integration best practices",
},
description: descriptions_1.TOOL_DESCRIPTIONS.READ_BEST_PRACTICES,
inputSchema: exports.readBestPracticesSchema,
name: "read_integration_best_practices",
};