businessmap-mcp
Version:
MCP server for Businessmap Kanbanize, exposing tools for managing business entities like boards, cards, and columns, facilitating LLM interaction.
26 lines (25 loc) • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CardLinkedCardsToolsController = void 0;
const zod_1 = require("zod");
const ApiService_1 = require("../../services/ApiService");
const apiResponseHandler_1 = require("../../utils/apiResponseHandler");
class CardLinkedCardsToolsController {
server;
constructor(server) {
this.server = server;
this.registerTools();
}
registerTools() {
this.registerGetLinkedCardsToolhandler();
}
registerGetLinkedCardsToolhandler() {
this.server.tool("get-linked-cards", "Get a list of the cards that are linked to a given card ordered by position.", {
cardId: zod_1.z.string().describe("A card id"),
}, async ({ cardId }) => {
const response = await ApiService_1.apiServices.getLinkedCards(cardId);
return (0, apiResponseHandler_1.handleApiResponse)(response);
});
}
}
exports.CardLinkedCardsToolsController = CardLinkedCardsToolsController;