@mondaydotcomorg/agent-toolkit 2.32.1 → 2.33.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/dist/cjs/core/index.d.ts +1 -0
- package/dist/cjs/core/index.js +153 -132
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/mcp/index.d.ts +15 -3
- package/dist/cjs/mcp/index.js +154 -133
- package/dist/cjs/mcp/index.js.map +1 -1
- package/dist/cjs/openai/index.js +153 -132
- package/dist/cjs/openai/index.js.map +1 -1
- package/dist/esm/core/index.d.ts +1 -0
- package/dist/esm/core/index.js +153 -132
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/mcp/index.d.ts +15 -3
- package/dist/esm/mcp/index.js +154 -133
- package/dist/esm/mcp/index.js.map +1 -1
- package/dist/esm/openai/index.js +153 -132
- package/dist/esm/openai/index.js.map +1 -1
- package/package.json +2 -2
package/dist/esm/mcp/index.d.ts
CHANGED
|
@@ -57,6 +57,9 @@ type MondayAgentToolkitConfig = {
|
|
|
57
57
|
context?: MondayApiToolContext;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
+
interface GetToolsOptions {
|
|
61
|
+
schemaFormat?: 'zod' | 'json';
|
|
62
|
+
}
|
|
60
63
|
/**
|
|
61
64
|
* Monday Agent Toolkit providing an MCP server with monday.com tools
|
|
62
65
|
*/
|
|
@@ -116,9 +119,10 @@ declare class MondayAgentToolkit extends McpServer {
|
|
|
116
119
|
/**
|
|
117
120
|
* Get all tools as an array of tool objects that can be registered individually
|
|
118
121
|
* Each tool includes name, description, schema, annotations, and handler for external registration
|
|
122
|
+
* @param options Options for schema format control
|
|
119
123
|
* @returns Array of tool objects ready for individual registration
|
|
120
124
|
*/
|
|
121
|
-
getTools(): Array<{
|
|
125
|
+
getTools(options?: GetToolsOptions): Array<{
|
|
122
126
|
name: string;
|
|
123
127
|
description: string;
|
|
124
128
|
schema: any;
|
|
@@ -128,9 +132,10 @@ declare class MondayAgentToolkit extends McpServer {
|
|
|
128
132
|
/**
|
|
129
133
|
* Get all tools with MCP-formatted handlers for direct registration with MCP servers
|
|
130
134
|
* This method wraps the handlers to return the proper CallToolResult format
|
|
135
|
+
* @param options Options for schema format control
|
|
131
136
|
* @returns Array of tool objects with MCP-compatible handlers
|
|
132
137
|
*/
|
|
133
|
-
getToolsForMcp(): Array<{
|
|
138
|
+
getToolsForMcp(options?: GetToolsOptions): Array<{
|
|
134
139
|
name: string;
|
|
135
140
|
description: string;
|
|
136
141
|
schema: any;
|
|
@@ -149,6 +154,13 @@ declare class MondayAgentToolkit extends McpServer {
|
|
|
149
154
|
* @returns Async handler function that returns CallToolResult format
|
|
150
155
|
*/
|
|
151
156
|
private createMcpToolHandler;
|
|
157
|
+
/**
|
|
158
|
+
* Get the schema for a tool in the requested format
|
|
159
|
+
* @param tool The tool instance
|
|
160
|
+
* @param options Options for schema format control
|
|
161
|
+
* @returns Schema in the requested format (Zod shape or JSON Schema)
|
|
162
|
+
*/
|
|
163
|
+
private getSchemaForTool;
|
|
152
164
|
/**
|
|
153
165
|
* Format the tool result into the expected MCP format
|
|
154
166
|
*/
|
|
@@ -243,4 +255,4 @@ declare class DynamicToolManager implements ToolkitManager {
|
|
|
243
255
|
clear(): void;
|
|
244
256
|
}
|
|
245
257
|
|
|
246
|
-
export { DynamicToolManager, MondayAgentToolkit };
|
|
258
|
+
export { DynamicToolManager, GetToolsOptions, MondayAgentToolkit };
|