@mondaydotcomorg/agent-toolkit 2.29.0 → 2.29.1
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/dist/cjs/core/index.d.ts +4 -0
- package/dist/cjs/core/index.js +1 -1
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/mcp/index.d.ts +34 -25
- package/dist/cjs/mcp/index.js +22 -22
- package/dist/cjs/mcp/index.js.map +1 -1
- package/dist/cjs/openai/index.d.ts +9 -0
- package/dist/cjs/openai/index.js +2 -2
- package/dist/cjs/openai/index.js.map +1 -1
- package/dist/esm/core/index.d.ts +4 -0
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/mcp/index.d.ts +34 -25
- package/dist/esm/mcp/index.js +17 -17
- package/dist/esm/mcp/index.js.map +1 -1
- package/dist/esm/openai/index.d.ts +9 -0
- package/dist/esm/openai/index.js +2 -2
- package/dist/esm/openai/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/mcp/index.d.ts
CHANGED
|
@@ -1,8 +1,39 @@
|
|
|
1
1
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ToolAnnotations, CallToolResult } from '@modelcontextprotocol/sdk/types';
|
|
3
3
|
import { ApiClientConfig } from '@mondaydotcomorg/api';
|
|
4
4
|
import { ZodRawShape, z, ZodTypeAny } from 'zod';
|
|
5
5
|
|
|
6
|
+
interface Executable<Input, Output> {
|
|
7
|
+
execute: (input?: Input) => Promise<Output>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ToolInputType<Input extends ZodRawShape | undefined> = Input extends ZodRawShape ? z.objectOutputType<Input, ZodTypeAny> : undefined;
|
|
11
|
+
type ToolOutputType<T extends Record<string, unknown>> = {
|
|
12
|
+
content: string;
|
|
13
|
+
metadata?: T;
|
|
14
|
+
};
|
|
15
|
+
declare enum ToolType {
|
|
16
|
+
READ = "read",
|
|
17
|
+
WRITE = "write",
|
|
18
|
+
ALL_API = "all_api"
|
|
19
|
+
}
|
|
20
|
+
interface Tool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> extends Executable<ToolInputType<Input>, ToolOutputType<Output>> {
|
|
21
|
+
name: string;
|
|
22
|
+
type: ToolType;
|
|
23
|
+
annotations: ToolAnnotations;
|
|
24
|
+
/** Whether the tool is enabled by default. Defaults to true if not specified. */
|
|
25
|
+
enabledByDefault?: boolean;
|
|
26
|
+
getDescription(): string;
|
|
27
|
+
getInputSchema(): Input;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type MondayApiToolContext = {
|
|
31
|
+
boardId?: number;
|
|
32
|
+
agentType?: string;
|
|
33
|
+
agentClientName?: string;
|
|
34
|
+
clientRedirectUris?: string[];
|
|
35
|
+
};
|
|
36
|
+
|
|
6
37
|
declare enum ToolMode {
|
|
7
38
|
API = "api",
|
|
8
39
|
APPS = "apps"
|
|
@@ -20,6 +51,7 @@ type MondayAgentToolkitConfig = {
|
|
|
20
51
|
mondayApiVersion?: ApiClientConfig['apiVersion'];
|
|
21
52
|
mondayApiRequestConfig?: ApiClientConfig['requestConfig'];
|
|
22
53
|
toolsConfiguration?: ToolsConfiguration;
|
|
54
|
+
context?: MondayApiToolContext;
|
|
23
55
|
};
|
|
24
56
|
|
|
25
57
|
/**
|
|
@@ -28,6 +60,7 @@ type MondayAgentToolkitConfig = {
|
|
|
28
60
|
declare class MondayAgentToolkit extends McpServer {
|
|
29
61
|
private readonly mondayApiClient;
|
|
30
62
|
private readonly mondayApiToken;
|
|
63
|
+
private readonly context?;
|
|
31
64
|
private readonly dynamicToolManager;
|
|
32
65
|
private toolInstances;
|
|
33
66
|
private managementTool;
|
|
@@ -123,30 +156,6 @@ declare class MondayAgentToolkit extends McpServer {
|
|
|
123
156
|
private handleToolError;
|
|
124
157
|
}
|
|
125
158
|
|
|
126
|
-
interface Executable<Input, Output> {
|
|
127
|
-
execute: (input?: Input) => Promise<Output>;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
type ToolInputType<Input extends ZodRawShape | undefined> = Input extends ZodRawShape ? z.objectOutputType<Input, ZodTypeAny> : undefined;
|
|
131
|
-
type ToolOutputType<T extends Record<string, unknown>> = {
|
|
132
|
-
content: string;
|
|
133
|
-
metadata?: T;
|
|
134
|
-
};
|
|
135
|
-
declare enum ToolType {
|
|
136
|
-
READ = "read",
|
|
137
|
-
WRITE = "write",
|
|
138
|
-
ALL_API = "all_api"
|
|
139
|
-
}
|
|
140
|
-
interface Tool<Input extends ZodRawShape | undefined, Output extends Record<string, unknown> = never> extends Executable<ToolInputType<Input>, ToolOutputType<Output>> {
|
|
141
|
-
name: string;
|
|
142
|
-
type: ToolType;
|
|
143
|
-
annotations: ToolAnnotations;
|
|
144
|
-
/** Whether the tool is enabled by default. Defaults to true if not specified. */
|
|
145
|
-
enabledByDefault?: boolean;
|
|
146
|
-
getDescription(): string;
|
|
147
|
-
getInputSchema(): Input;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
159
|
interface ToolkitManager {
|
|
151
160
|
enableTool(toolName: string): boolean;
|
|
152
161
|
disableTool(toolName: string): boolean;
|