kaneo-mcp 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/kaneo-mcp.js +2 -0
- package/dist/index.js +1625 -0
- package/package.json +33 -0
- package/src/client.ts +443 -0
- package/src/index.ts +1350 -0
- package/src/types.ts +104 -0
- package/tsconfig.json +8 -0
- package/vitest.config.ts +7 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface KaneoConfig {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
token: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export interface RequestOptions {
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type TaskStatus = "todo" | "in_progress" | "done" | "canceled";
|
|
11
|
+
export type TaskPriority = "low" | "medium" | "high" | "urgent";
|
|
12
|
+
|
|
13
|
+
export interface Project {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
archived: boolean;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface Task {
|
|
24
|
+
id: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
status: TaskStatus;
|
|
29
|
+
priority: TaskPriority;
|
|
30
|
+
assigneeId: string | null;
|
|
31
|
+
startDate: string | null;
|
|
32
|
+
dueDate: string | null;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Column {
|
|
38
|
+
id: string;
|
|
39
|
+
projectId: string;
|
|
40
|
+
name: string;
|
|
41
|
+
order: number;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface Comment {
|
|
47
|
+
id: string;
|
|
48
|
+
taskId: string;
|
|
49
|
+
content: string;
|
|
50
|
+
authorId: string;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Label {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
color: string;
|
|
59
|
+
workspaceId: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface TimeEntry {
|
|
65
|
+
id: string;
|
|
66
|
+
taskId: string;
|
|
67
|
+
userId: string;
|
|
68
|
+
duration: number;
|
|
69
|
+
description: string | null;
|
|
70
|
+
createdAt: string;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface TaskRelation {
|
|
75
|
+
id: string;
|
|
76
|
+
taskId: string;
|
|
77
|
+
relatedTaskId: string;
|
|
78
|
+
type: "subtask" | "blocks" | "related";
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Notification {
|
|
82
|
+
id: string;
|
|
83
|
+
userId: string;
|
|
84
|
+
type: string;
|
|
85
|
+
message: string;
|
|
86
|
+
read: boolean;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface WorkspaceMember {
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
email: string;
|
|
94
|
+
role: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface SearchResult {
|
|
98
|
+
type: "task" | "project" | "comment" | "activity";
|
|
99
|
+
id: string;
|
|
100
|
+
title: string;
|
|
101
|
+
description?: string | null;
|
|
102
|
+
projectId?: string;
|
|
103
|
+
taskId?: string;
|
|
104
|
+
}
|
package/tsconfig.json
ADDED