@danielma-tic/mondaydotcom-mcp-server
Version:
MCP Server for the Monday.com API, enabling board operations, item management, and more.
39 lines (38 loc) • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MondayMCPServer = void 0;
const core_1 = require("@modelcontextprotocol/core");
const monday_client_1 = require("./monday-client");
class MondayMCPServer {
constructor(token) {
this.getBoard = new core_1.MCPFunction(async (params) => {
return await this.client.getBoard(params.boardId);
});
this.getItems = new core_1.MCPFunction(async (params) => {
return await this.client.getItems(params);
});
this.createItem = new core_1.MCPFunction(async (params) => {
return await this.client.createItem(params);
});
this.updateItem = new core_1.MCPFunction(async (params) => {
// Implementation for updateItem
throw new Error('Not implemented');
});
this.createColumn = new core_1.MCPFunction(async (params) => {
return await this.client.createColumn(params);
});
this.createGroup = new core_1.MCPFunction(async (params) => {
return await this.client.createGroup(params);
});
this.archiveItem = new core_1.MCPFunction(async (params) => {
// Implementation for archiveItem
throw new Error('Not implemented');
});
this.deleteItem = new core_1.MCPFunction(async (params) => {
// Implementation for deleteItem
throw new Error('Not implemented');
});
this.client = new monday_client_1.MondayClient(token);
}
}
exports.MondayMCPServer = MondayMCPServer;