@mondaydotcomorg/agent-toolkit 2.0.10 → 2.1.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.
@@ -1,23 +1,68 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { ApiClientConfig } from '@mondaydotcomorg/api';
3
3
 
4
+ declare enum ToolMode {
5
+ API = "api",
6
+ APPS = "apps"
7
+ }
4
8
  type ToolsConfiguration = {
5
9
  include?: string[];
6
10
  exclude?: string[];
7
11
  readOnlyMode?: boolean;
12
+ mode?: ToolMode;
8
13
  enableDynamicApiTools?: boolean | 'only';
9
14
  };
10
-
11
15
  type MondayAgentToolkitConfig = {
12
16
  mondayApiToken: ApiClientConfig['token'];
13
17
  mondayApiVersion?: ApiClientConfig['apiVersion'];
14
18
  mondayApiRequestConfig?: ApiClientConfig['requestConfig'];
15
19
  toolsConfiguration?: ToolsConfiguration;
16
20
  };
21
+
22
+ /**
23
+ * Monday Agent Toolkit providing an MCP server with Monday.com tools
24
+ */
17
25
  declare class MondayAgentToolkit extends McpServer {
18
26
  private readonly mondayApiClient;
27
+ private readonly mondayApiToken;
28
+ /**
29
+ * Creates a new instance of the Monday Agent Toolkit
30
+ * @param config Configuration for the toolkit
31
+ */
19
32
  constructor(config: MondayAgentToolkitConfig);
33
+ /**
34
+ * Create and configure the Monday API client
35
+ */
36
+ private createApiClient;
37
+ /**
38
+ * Register all tools with the MCP server
39
+ */
40
+ private registerTools;
41
+ /**
42
+ * Initialize both API and CLI tools
43
+ */
44
+ private initializeTools;
45
+ /**
46
+ * Register a single tool with the MCP server
47
+ */
48
+ private registerTool;
49
+ /**
50
+ * Register a tool that doesn't require input
51
+ */
52
+ private registerNoInputTool;
53
+ /**
54
+ * Register a tool that requires input
55
+ */
56
+ private registerInputTool;
20
57
  getServer(): McpServer;
58
+ /**
59
+ * Format the tool result into the expected MCP format
60
+ */
61
+ private formatToolResult;
62
+ /**
63
+ * Handle tool execution errors
64
+ */
65
+ private handleToolError;
21
66
  }
22
67
 
23
- export { MondayAgentToolkit, MondayAgentToolkitConfig };
68
+ export { MondayAgentToolkit };