UNPKG

@aot-tech/clockify-mcp-server

Version:

MCP Server for Clockify time tracking integration with AI tools

25 lines (24 loc) 838 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findWorkspacesTool = void 0; const api_1 = require("../config/api"); const workspaces_1 = require("../clockify-sdk/workspaces"); exports.findWorkspacesTool = { name: api_1.TOOLS_CONFIG.workspaces.list.name, description: api_1.TOOLS_CONFIG.workspaces.list.description, handler: async () => { const response = await workspaces_1.workspacesService.fetchAll(); const workspaces = response.data.map((workspace) => ({ name: workspace.name, id: workspace.id, })); return { content: [ { type: "text", text: `Clockify Workspaces: ${JSON.stringify(workspaces, null, 2)}`, }, ], }; }, };