@mondaydotcomorg/agent-toolkit 0.1.6 → 1.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/LICENSE.md ADDED
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2021, monday.com
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mondaydotcomorg/agent-toolkit
2
2
 
3
- A powerful toolkit for building AI agents that interact with the Monday.com API. This package provides a set of tools and utilities to help you create AI-powered integrations with Monday.com, supporting both OpenAI and Model Context Protocol (MCP) implementations.
3
+ A powerful toolkit for building AI agents that interact with the monday.com API. This package provides a set of tools and utilities to help you create AI-powered integrations with monday.com through Model Context Protocol (MCP) implementation.
4
4
 
5
5
  ## Installation
6
6
 
@@ -13,7 +13,6 @@ npm install @mondaydotcomorg/agent-toolkit
13
13
  The package provides several modular components that can be imported separately:
14
14
 
15
15
  - `@mondaydotcomorg/agent-toolkit/mcp` - MCP server implementation
16
- - `@mondaydotcomorg/agent-toolkit/tools` - Monday.com API tools
17
16
  - `@mondaydotcomorg/agent-toolkit/core` - Core utilities and base classes
18
17
  - `@mondaydotcomorg/agent-toolkit/openai` - OpenAI integration
19
18
 
@@ -36,4 +36,299 @@ declare abstract class BaseMondayApiTool<Input extends ZodRawShape | undefined,
36
36
  abstract execute(input?: ToolInputType<Input>): Promise<ToolOutputType<Output>>;
37
37
  }
38
38
 
39
- export { BaseMondayApiTool, Executable, MondayApiToolContext, Tool, ToolInputType, ToolOutputType, ToolType };
39
+ declare const deleteItemToolSchema: {
40
+ itemId: z.ZodNumber;
41
+ };
42
+ declare class DeleteItemTool extends BaseMondayApiTool<typeof deleteItemToolSchema, never> {
43
+ name: string;
44
+ type: ToolType;
45
+ getDescription(): string;
46
+ getInputSchema(): typeof deleteItemToolSchema;
47
+ execute(input: ToolInputType<typeof deleteItemToolSchema>): Promise<ToolOutputType<never>>;
48
+ }
49
+
50
+ declare const getItemsToolSchema: {
51
+ term: z.ZodString;
52
+ };
53
+ declare const getItemsInBoardToolSchema: {
54
+ term: z.ZodString;
55
+ boardId: z.ZodNumber;
56
+ };
57
+ type GetItemsToolInput = typeof getItemsToolSchema | typeof getItemsInBoardToolSchema;
58
+ declare class GetBoardItemsTool extends BaseMondayApiTool<GetItemsToolInput> {
59
+ name: string;
60
+ type: ToolType;
61
+ getDescription(): string;
62
+ getInputSchema(): GetItemsToolInput;
63
+ execute(input: ToolInputType<GetItemsToolInput>): Promise<ToolOutputType<never>>;
64
+ }
65
+
66
+ declare const createItemToolSchema: {
67
+ name: z.ZodString;
68
+ groupId: z.ZodOptional<z.ZodString>;
69
+ columnValues: z.ZodString;
70
+ };
71
+ declare const createItemInBoardToolSchema: {
72
+ name: z.ZodString;
73
+ groupId: z.ZodOptional<z.ZodString>;
74
+ columnValues: z.ZodString;
75
+ boardId: z.ZodNumber;
76
+ };
77
+ type CreateItemToolInput = typeof createItemToolSchema | typeof createItemInBoardToolSchema;
78
+ declare class CreateItemTool extends BaseMondayApiTool<CreateItemToolInput> {
79
+ name: string;
80
+ type: ToolType;
81
+ getDescription(): string;
82
+ getInputSchema(): CreateItemToolInput;
83
+ execute(input: ToolInputType<CreateItemToolInput>): Promise<ToolOutputType<never>>;
84
+ }
85
+
86
+ declare const getBoardSchemaToolSchema: {
87
+ boardId: z.ZodNumber;
88
+ };
89
+ declare class GetBoardSchemaTool extends BaseMondayApiTool<typeof getBoardSchemaToolSchema | undefined> {
90
+ name: string;
91
+ type: ToolType;
92
+ getDescription(): string;
93
+ getInputSchema(): typeof getBoardSchemaToolSchema | undefined;
94
+ execute(input: ToolInputType<typeof getBoardSchemaToolSchema | undefined>): Promise<ToolOutputType<never>>;
95
+ }
96
+
97
+ declare const getUsersToolSchema: {
98
+ name: z.ZodOptional<z.ZodString>;
99
+ };
100
+ declare class GetUsersTool extends BaseMondayApiTool<typeof getUsersToolSchema> {
101
+ name: string;
102
+ type: ToolType;
103
+ getDescription(): string;
104
+ getInputSchema(): typeof getUsersToolSchema;
105
+ execute(input: ToolInputType<typeof getUsersToolSchema>): Promise<ToolOutputType<never>>;
106
+ }
107
+
108
+ /** The board kinds available. */
109
+ declare enum BoardKind {
110
+ /** Private boards. */
111
+ Private = "private",
112
+ /** Public boards. */
113
+ Public = "public",
114
+ /** Shareable boards. */
115
+ Share = "share"
116
+ }
117
+ /** The columns to create. */
118
+ declare enum ColumnType {
119
+ /** Number items according to their order in the group/board */
120
+ AutoNumber = "auto_number",
121
+ /** Connect data from other boards */
122
+ BoardRelation = "board_relation",
123
+ /** Perform actions on items by clicking a button */
124
+ Button = "button",
125
+ /** Check off items and see what's done at a glance */
126
+ Checkbox = "checkbox",
127
+ /** Manage a design system using a color palette */
128
+ ColorPicker = "color_picker",
129
+ /** Choose a country */
130
+ Country = "country",
131
+ /** Add the item's creator and creation date automatically */
132
+ CreationLog = "creation_log",
133
+ /** Add dates like deadlines to ensure you never drop the ball */
134
+ Date = "date",
135
+ /** Set up dependencies between items in the board */
136
+ Dependency = "dependency",
137
+ /** Document your work and increase collaboration */
138
+ DirectDoc = "direct_doc",
139
+ /** Document your work and increase collaboration */
140
+ Doc = "doc",
141
+ /** Create a dropdown list of options */
142
+ Dropdown = "dropdown",
143
+ /** Email team members and clients directly from your board */
144
+ Email = "email",
145
+ /** Add files & docs to your item */
146
+ File = "file",
147
+ /** Use functions to manipulate data across multiple columns */
148
+ Formula = "formula",
149
+ Group = "group",
150
+ /** Add times to manage and schedule tasks, shifts and more */
151
+ Hour = "hour",
152
+ /** Integration is really cool... */
153
+ Integration = "integration",
154
+ /** Show all item's assignees */
155
+ ItemAssignees = "item_assignees",
156
+ /** Show a unique ID for each item */
157
+ ItemId = "item_id",
158
+ /** Add the person that last updated the item and the date */
159
+ LastUpdated = "last_updated",
160
+ /** Simply hyperlink to any website */
161
+ Link = "link",
162
+ /** Place multiple locations on a geographic map */
163
+ Location = "location",
164
+ /** Add large amounts of text without changing column width */
165
+ LongText = "long_text",
166
+ /** Show and edit columns' data from connected boards */
167
+ Mirror = "mirror",
168
+ /** Name is really cool... */
169
+ Name = "name",
170
+ /** Add revenue, costs, time estimations and more */
171
+ Numbers = "numbers",
172
+ /** Assign people to improve team work */
173
+ People = "people",
174
+ /** Assign a person to increase ownership and accountability (deprecated) */
175
+ Person = "person",
176
+ /** Call your contacts directly from monday.com */
177
+ Phone = "phone",
178
+ /** Show progress by combining status columns in a battery */
179
+ Progress = "progress",
180
+ /** Rate or rank anything visually */
181
+ Rating = "rating",
182
+ /** Get an instant overview of where things stand */
183
+ Status = "status",
184
+ /** Use the subtasks column to create another level of tasks */
185
+ Subtasks = "subtasks",
186
+ /** Add tags to categorize items across multiple boards */
187
+ Tags = "tags",
188
+ /** Assign a full team to an item */
189
+ Team = "team",
190
+ /** Add textual information e.g. addresses, names or keywords */
191
+ Text = "text",
192
+ /** Easily track time spent on each item, group, and board */
193
+ TimeTracking = "time_tracking",
194
+ /** Visualize your item’s duration, with a start and end date */
195
+ Timeline = "timeline",
196
+ /** Unsupported column type */
197
+ Unsupported = "unsupported",
198
+ /** Vote on an item e.g. pick a new feature or a favorite lunch place */
199
+ Vote = "vote",
200
+ /** Select the week on which each item should be completed */
201
+ Week = "week",
202
+ /** Keep track of the time anywhere in the world */
203
+ WorldClock = "world_clock"
204
+ }
205
+
206
+ declare const createBoardToolSchema: {
207
+ boardName: z.ZodString;
208
+ boardKind: z.ZodDefault<z.ZodNativeEnum<typeof BoardKind>>;
209
+ boardDescription: z.ZodOptional<z.ZodString>;
210
+ workspaceId: z.ZodOptional<z.ZodString>;
211
+ };
212
+ declare class CreateBoardTool extends BaseMondayApiTool<typeof createBoardToolSchema, never> {
213
+ name: string;
214
+ type: ToolType;
215
+ getDescription(): string;
216
+ getInputSchema(): typeof createBoardToolSchema;
217
+ execute(input: ToolInputType<typeof createBoardToolSchema>): Promise<ToolOutputType<never>>;
218
+ }
219
+
220
+ declare const createColumnToolSchema: {
221
+ columnType: z.ZodNativeEnum<typeof ColumnType>;
222
+ columnTitle: z.ZodString;
223
+ columnDescription: z.ZodOptional<z.ZodString>;
224
+ columnSettings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
225
+ };
226
+ declare const createColumnInBoardToolSchema: {
227
+ columnType: z.ZodNativeEnum<typeof ColumnType>;
228
+ columnTitle: z.ZodString;
229
+ columnDescription: z.ZodOptional<z.ZodString>;
230
+ columnSettings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
231
+ boardId: z.ZodNumber;
232
+ };
233
+ type CreateColumnToolInput = typeof createColumnToolSchema | typeof createColumnInBoardToolSchema;
234
+ declare class CreateColumnTool extends BaseMondayApiTool<CreateColumnToolInput> {
235
+ name: string;
236
+ type: ToolType;
237
+ getDescription(): string;
238
+ getInputSchema(): CreateColumnToolInput;
239
+ execute(input: ToolInputType<CreateColumnToolInput>): Promise<ToolOutputType<never>>;
240
+ }
241
+
242
+ declare const deleteColumnToolSchema: {
243
+ columnId: z.ZodString;
244
+ };
245
+ declare const deleteColumnInBoardToolSchema: {
246
+ columnId: z.ZodString;
247
+ boardId: z.ZodNumber;
248
+ };
249
+ type DeleteColumnToolInput = typeof deleteColumnToolSchema | typeof deleteColumnInBoardToolSchema;
250
+ declare class DeleteColumnTool extends BaseMondayApiTool<DeleteColumnToolInput> {
251
+ name: string;
252
+ type: ToolType;
253
+ getDescription(): string;
254
+ getInputSchema(): DeleteColumnToolInput;
255
+ execute(input: ToolInputType<DeleteColumnToolInput>): Promise<ToolOutputType<never>>;
256
+ }
257
+
258
+ declare const allMondayApiToolSchema: {
259
+ query: z.ZodString;
260
+ variables: z.ZodString;
261
+ };
262
+ declare class AllMondayApiTool extends BaseMondayApiTool<typeof allMondayApiToolSchema> {
263
+ name: string;
264
+ type: ToolType;
265
+ constructor(mondayApi: ApiClient, context?: MondayApiToolContext);
266
+ getDescription(): string;
267
+ getInputSchema(): typeof allMondayApiToolSchema;
268
+ execute(input: ToolInputType<typeof allMondayApiToolSchema>): Promise<ToolOutputType<never>>;
269
+ }
270
+
271
+ declare const getTypeDetailsToolSchema: {
272
+ typeName: z.ZodString;
273
+ };
274
+ declare class GetTypeDetailsTool extends BaseMondayApiTool<typeof getTypeDetailsToolSchema> {
275
+ name: string;
276
+ type: ToolType;
277
+ getDescription(): string;
278
+ getInputSchema(): typeof getTypeDetailsToolSchema;
279
+ execute(input: ToolInputType<typeof getTypeDetailsToolSchema>): Promise<ToolOutputType<never>>;
280
+ }
281
+
282
+ declare const createUpdateToolSchema: {
283
+ itemId: z.ZodNumber;
284
+ body: z.ZodString;
285
+ };
286
+ declare class CreateUpdateTool extends BaseMondayApiTool<typeof createUpdateToolSchema> {
287
+ name: string;
288
+ type: ToolType;
289
+ getDescription(): string;
290
+ getInputSchema(): typeof createUpdateToolSchema;
291
+ execute(input: ToolInputType<typeof createUpdateToolSchema>): Promise<ToolOutputType<never>>;
292
+ }
293
+
294
+ declare const changeItemColumnValuesToolSchema: {
295
+ itemId: z.ZodNumber;
296
+ columnValues: z.ZodString;
297
+ };
298
+ declare const changeItemColumnValuesInBoardToolSchema: {
299
+ itemId: z.ZodNumber;
300
+ columnValues: z.ZodString;
301
+ boardId: z.ZodNumber;
302
+ };
303
+ type ChangeItemColumnValuesToolInput = typeof changeItemColumnValuesToolSchema | typeof changeItemColumnValuesInBoardToolSchema;
304
+ declare class ChangeItemColumnValuesTool extends BaseMondayApiTool<ChangeItemColumnValuesToolInput> {
305
+ name: string;
306
+ type: ToolType;
307
+ getDescription(): string;
308
+ getInputSchema(): ChangeItemColumnValuesToolInput;
309
+ execute(input: ToolInputType<ChangeItemColumnValuesToolInput>): Promise<ToolOutputType<never>>;
310
+ }
311
+
312
+ declare const moveItemToGroupToolSchema: {
313
+ itemId: z.ZodNumber;
314
+ groupId: z.ZodString;
315
+ };
316
+ declare class MoveItemToGroupTool extends BaseMondayApiTool<typeof moveItemToGroupToolSchema> {
317
+ name: string;
318
+ type: ToolType;
319
+ getDescription(): string;
320
+ getInputSchema(): typeof moveItemToGroupToolSchema;
321
+ execute(input: ToolInputType<typeof moveItemToGroupToolSchema>): Promise<ToolOutputType<never>>;
322
+ }
323
+
324
+ declare class GetGraphQLSchemaTool extends BaseMondayApiTool<undefined> {
325
+ name: string;
326
+ type: ToolType;
327
+ getDescription(): string;
328
+ getInputSchema(): undefined;
329
+ execute(): Promise<ToolOutputType<never>>;
330
+ }
331
+
332
+ declare const allTools: (typeof DeleteItemTool | typeof GetBoardItemsTool | typeof CreateItemTool | typeof GetBoardSchemaTool | typeof GetUsersTool | typeof CreateBoardTool | typeof CreateColumnTool | typeof DeleteColumnTool | typeof AllMondayApiTool | typeof GetTypeDetailsTool)[];
333
+
334
+ export { AllMondayApiTool, ChangeItemColumnValuesTool, ChangeItemColumnValuesToolInput, CreateBoardTool, CreateColumnTool, CreateColumnToolInput, CreateItemTool, CreateItemToolInput, CreateUpdateTool, DeleteColumnTool, DeleteColumnToolInput, DeleteItemTool, Executable, GetBoardItemsTool, GetBoardSchemaTool, GetGraphQLSchemaTool, GetItemsToolInput, GetTypeDetailsTool, GetUsersTool, MoveItemToGroupTool, Tool, ToolInputType, ToolOutputType, ToolType, allMondayApiToolSchema, allTools, changeItemColumnValuesInBoardToolSchema, changeItemColumnValuesToolSchema, createBoardToolSchema, createColumnInBoardToolSchema, createColumnToolSchema, createItemInBoardToolSchema, createItemToolSchema, createUpdateToolSchema, deleteColumnInBoardToolSchema, deleteColumnToolSchema, deleteItemToolSchema, getBoardSchemaToolSchema, getItemsInBoardToolSchema, getItemsToolSchema, getTypeDetailsToolSchema, getUsersToolSchema, moveItemToGroupToolSchema };