UNPKG

7pace-mcp-server

Version:

🚀 AI-powered time tracking MCP server for 7pace Timetracker & Azure DevOps. Track time naturally with Claude AI using conversational commands. Zero context switching, real-time sync.

55 lines (54 loc) • 1.54 kB
#!/usr/bin/env node import "dotenv/config"; interface SevenPaceConfig { baseUrl: string; token: string; organizationName: string; } interface WorklogEntry { id?: string; workItemId: number; timestamp: string; length: number; comment?: string; activityTypeId?: string; } interface TimeEntry { date: string; workItemId: number; hours: number; description: string; activityType?: string; } type ActivityType = { id: string; name: string; }; declare class SevenPaceService { private client; private config; private activityTypesCache; listActivityTypes(): Promise<ActivityType[]>; constructor(config: SevenPaceConfig); private fetchActivityTypes; private resolveActivityTypeId; logTime(entry: TimeEntry): Promise<any>; getWorklogs(workItemId?: number, startDate?: string, endDate?: string): Promise<WorklogEntry[]>; updateWorklog(worklogId: string, updates: Partial<TimeEntry>): Promise<any>; deleteWorklog(worklogId: string): Promise<void>; getTimeReport(startDate: string, endDate: string, userId?: string): Promise<any>; } declare class SevenPaceMCPServer { private server; private sevenPaceService; constructor(); private setupToolHandlers; private handleLogTime; private handleListActivityTypes; private handleGetWorklogs; private handleUpdateWorklog; private handleDeleteWorklog; private handleGenerateTimeReport; run(): Promise<void>; } export { SevenPaceMCPServer, SevenPaceService };