Repository navigation
Expand file tree
/
Copy pathtool-annotations.test.ts
More file actions
149 lines (148 loc) · 4.73 KB
/
Copy pathtool-annotations.test.ts
File metadata and controls
149 lines (148 loc) · 4.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
import { describeToolAnnotations } from '@todoist/mcp-core/testing'
import { getMcpServer } from '../mcp-server.js'
import { ToolNames } from '../utils/tool-names.js'
// Clients decide from these hints whether a call needs the user's confirmation, so each tool's are
// pinned here as a client receives them on tools/list.
describeToolAnnotations({
createServer: () => getMcpServer({ token: 'test-token' }),
expected: {
[ToolNames.USER_INFO]: {
title: 'Comms: User Info',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.UPDATE_USER_INFO]: {
title: 'Comms: Update User Info',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: true,
},
[ToolNames.FETCH_INBOX]: {
title: 'Comms: Fetch Inbox',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.LOAD_THREAD]: {
title: 'Comms: Load Thread',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.LOAD_CONVERSATION]: {
title: 'Comms: Load Conversation',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.SEARCH_CONTENT]: {
title: 'Comms: Search Content',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.GET_MENTIONS]: {
title: 'Comms: Get Mentions',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.GET_USERS]: {
title: 'Comms: Get Users',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.GET_GROUPS]: {
title: 'Comms: Get Groups',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.GET_WORKSPACES]: {
title: 'Comms: Get Workspaces',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.BUILD_LINK]: {
title: 'Comms: Build Link',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.CREATE_CHANNEL]: {
title: 'Comms: Create Channel',
readOnlyHint: false,
destructiveHint: false,
idempotentHint: false,
},
[ToolNames.UPDATE_CHANNEL]: {
title: 'Comms: Update Channel',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: true,
},
[ToolNames.CREATE_THREAD]: {
title: 'Comms: Create Thread',
readOnlyHint: false,
destructiveHint: false,
idempotentHint: false,
},
[ToolNames.CREATE_CONVERSATION]: {
title: 'Comms: Create Conversation',
readOnlyHint: false,
destructiveHint: false,
idempotentHint: false,
},
[ToolNames.UPDATE_OBJECT]: {
title: 'Comms: Update Object',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: true,
},
[ToolNames.DELETE_OBJECT]: {
title: 'Comms: Delete Object',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: true,
},
[ToolNames.REPLY]: {
title: 'Comms: Reply',
readOnlyHint: false,
destructiveHint: false,
idempotentHint: false,
},
[ToolNames.REACT]: {
title: 'Comms: React',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: false,
},
[ToolNames.MARK_DONE]: {
title: 'Comms: Mark Done',
readOnlyHint: false,
destructiveHint: true,
idempotentHint: true,
},
[ToolNames.MARK_READ]: {
title: 'Comms: Mark Read',
readOnlyHint: false,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.LIST_CHANNELS]: {
title: 'Comms: List Channels',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
[ToolNames.LIST_CONVERSATIONS]: {
title: 'Comms: List Conversations',
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
},
},
})