@kadoa/mcp 0.4.2-rc.1 → 0.4.2

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -31
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -51083,7 +51083,7 @@ function registerTools(server, ctx) {
51083
51083
  });
51084
51084
  }));
51085
51085
  server.registerTool("list_templates", {
51086
- description: "List all templates in the current team. Templates define reusable configurations (prompt, schema, validation, notifications) that can be linked to multiple workflows.",
51086
+ description: "List all templates in the current team. Templates define reusable configurations (prompt, schema, notifications) that can be linked to multiple workflows.",
51087
51087
  inputSchema: strictSchema({}),
51088
51088
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true }
51089
51089
  }, withErrorHandling("list_templates", async () => {
@@ -51101,7 +51101,7 @@ function registerTools(server, ctx) {
51101
51101
  return jsonResult({ template });
51102
51102
  }));
51103
51103
  server.registerTool("create_template", {
51104
- description: "Create a new template. Templates define reusable configurations that can be linked to workflows. After creation, use create_template_version to publish a version with prompt, schema, and validation rules.",
51104
+ description: "Create a new template. Templates define reusable configurations that can be linked to workflows. After creation, use create_template_version to publish a version with prompt, schema, and notifications.",
51105
51105
  inputSchema: strictSchema({
51106
51106
  name: exports_external.string().describe("Template name (1-255 chars)"),
51107
51107
  description: exports_external.string().optional().describe("Template description (max 2000 chars)")
@@ -51171,37 +51171,13 @@ function registerTools(server, ctx) {
51171
51171
  isKey: exports_external.preprocess(coerceBoolean(), exports_external.boolean()).optional().describe("Whether the field is a key field")
51172
51172
  };
51173
51173
  server.registerTool("create_template_version", {
51174
- description: "Publish a new version of a template. Versions capture the full workflow config: prompt, schema, validation rules, and notifications. All fields are optional — include only what this version should set.",
51174
+ description: "Publish a new version of a template. Versions capture the full workflow config: prompt, schema, and notifications. All fields are optional — include only what this version should set.",
51175
51175
  inputSchema: strictSchema({
51176
51176
  templateId: exports_external.string().describe("The template ID to publish a version for"),
51177
51177
  prompt: exports_external.string().optional().describe("User prompt to copy into workflow config"),
51178
51178
  schemaId: exports_external.string().optional().describe("Existing schema ID to reference (mutually exclusive with schemaFields)"),
51179
51179
  schemaFields: exports_external.preprocess(coerceArray(), exports_external.array(exports_external.object(TemplateSchemaFieldShape))).optional().describe("Inline schema fields to create a new schema (mutually exclusive with schemaId)"),
51180
51180
  schemaEntity: exports_external.string().optional().describe("Entity name for the inline schema"),
51181
- dataValidation: exports_external.preprocess(coerceJson(), exports_external.object({
51182
- config: exports_external.object({
51183
- enabled: exports_external.preprocess(coerceBoolean(), exports_external.boolean()).describe("Whether data validation is enabled"),
51184
- alerting: exports_external.object({
51185
- system: exports_external.object({
51186
- enabled: exports_external.preprocess(coerceBoolean(), exports_external.boolean()),
51187
- threshold: exports_external.preprocess(coerceNumber(), exports_external.number()).optional()
51188
- }).optional().describe("System alerting configuration"),
51189
- user: exports_external.object({
51190
- enabled: exports_external.preprocess(coerceBoolean(), exports_external.boolean()),
51191
- threshold: exports_external.preprocess(coerceNumber(), exports_external.number()).optional()
51192
- }).optional().describe("User alerting configuration")
51193
- }).optional().describe("Alerting configuration")
51194
- }).optional().describe("Data validation config to copy into workflow.config.dataValidation"),
51195
- rules: exports_external.preprocess(coerceArray(), exports_external.array(exports_external.object({
51196
- name: exports_external.string().describe("Rule name"),
51197
- description: exports_external.string().optional().describe("Rule description"),
51198
- ruleType: exports_external.enum(["regex", "custom_sql", "llm"]).describe("Type of validation rule"),
51199
- targetColumns: exports_external.preprocess(coerceArray(), exports_external.array(exports_external.string())).optional().describe("Columns this rule targets"),
51200
- parameters: exports_external.preprocess(coerceJson(), exports_external.record(exports_external.string(), exports_external.unknown())).describe("Rule parameters (e.g., {sql: '...', pattern: '...'})"),
51201
- status: exports_external.enum(["preview", "enabled", "disabled"]).optional().describe("Initial rule status (defaults to 'enabled')"),
51202
- metadata: exports_external.preprocess(coerceJson(), exports_external.record(exports_external.string(), exports_external.unknown())).optional().describe("Additional metadata")
51203
- }))).optional().describe("Validation rules to clone as data_validation rows")
51204
- })).optional().describe("Data validation configuration: { config?: { enabled, alerting? }, rules?: [{ name, ruleType, parameters, ... }] }"),
51205
51181
  notifications: exports_external.preprocess(coerceArray(), exports_external.array(exports_external.object({
51206
51182
  eventType: exports_external.string().describe("Notification event type"),
51207
51183
  eventConfiguration: exports_external.preprocess(coerceJson(), exports_external.record(exports_external.string(), exports_external.unknown())).optional(),
@@ -51287,7 +51263,7 @@ function registerTools(server, ctx) {
51287
51263
  });
51288
51264
  }));
51289
51265
  server.registerTool("apply_template_update", {
51290
- description: "Apply a specific template version to workflows. Updates the workflows' config (prompt, schema, validation, notifications) to match the specified version.",
51266
+ description: "Apply a specific template version to workflows. Updates the workflows' config (prompt, schema, notifications) to match the specified version.",
51291
51267
  inputSchema: strictSchema({
51292
51268
  templateId: exports_external.string().describe("The template ID"),
51293
51269
  targetVersion: exports_external.preprocess(coerceNumber(), exports_external.number().int().min(1)).describe("Version number to apply"),
@@ -51306,7 +51282,7 @@ function registerTools(server, ctx) {
51306
51282
  });
51307
51283
  }));
51308
51284
  server.registerTool("save_workflow_as_template", {
51309
- description: "Create a template from an existing workflow's configuration (prompt, schema, validation, notifications). " + "Provide 'name' to create a new template, or 'templateId' to add a new version to an existing template.",
51285
+ description: "Create a template from an existing workflow's configuration (prompt, schema, notifications). " + "Provide 'name' to create a new template, or 'templateId' to add a new version to an existing template.",
51310
51286
  inputSchema: strictSchema({
51311
51287
  workflowId: exports_external.string().describe("Source workflow ID to extract config from"),
51312
51288
  name: exports_external.string().optional().describe("Name for the new template (required if templateId is not set)"),
@@ -51359,7 +51335,7 @@ var package_default;
51359
51335
  var init_package = __esm(() => {
51360
51336
  package_default = {
51361
51337
  name: "@kadoa/mcp",
51362
- version: "0.4.2-rc.1",
51338
+ version: "0.4.2",
51363
51339
  description: "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
51364
51340
  type: "module",
51365
51341
  main: "dist/index.js",
@@ -51377,7 +51353,7 @@ var init_package = __esm(() => {
51377
51353
  build: "bun build src/index.ts --outdir=dist --target=node --external express --external ioredis",
51378
51354
  "check-types": "tsc --noEmit",
51379
51355
  test: "BUN_TEST=1 bun test",
51380
- "test:unit": "BUN_TEST=1 bun test tests/unit --timeout=120000",
51356
+ "test:unit": "BUN_TEST=1 bun test tests/unit/server.test.ts --timeout=120000 && BUN_TEST=1 bun test $(find tests/unit -maxdepth 1 -name '*.test.ts' ! -name 'server.test.ts') --timeout=120000",
51381
51357
  "test:e2e": "BUN_TEST=1 bun test tests/e2e --timeout=600000",
51382
51358
  "test:eval": "BUN_TEST=1 bun test tests/evals --timeout=300000",
51383
51359
  prepublishOnly: "bun run check-types && bun run test:unit && bun run build"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.4.2-rc.1",
3
+ "version": "0.4.2",
4
4
  "description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,7 +18,7 @@
18
18
  "build": "bun build src/index.ts --outdir=dist --target=node --external express --external ioredis",
19
19
  "check-types": "tsc --noEmit",
20
20
  "test": "BUN_TEST=1 bun test",
21
- "test:unit": "BUN_TEST=1 bun test tests/unit --timeout=120000",
21
+ "test:unit": "BUN_TEST=1 bun test tests/unit/server.test.ts --timeout=120000 && BUN_TEST=1 bun test $(find tests/unit -maxdepth 1 -name '*.test.ts' ! -name 'server.test.ts') --timeout=120000",
22
22
  "test:e2e": "BUN_TEST=1 bun test tests/e2e --timeout=600000",
23
23
  "test:eval": "BUN_TEST=1 bun test tests/evals --timeout=300000",
24
24
  "prepublishOnly": "bun run check-types && bun run test:unit && bun run build"