@kadoa/mcp 0.3.5-rc.7 → 0.3.5

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 +17 -56
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -49261,24 +49261,6 @@ function classifyError(error48) {
49261
49261
  return "Unknown error";
49262
49262
  }
49263
49263
  function registerTools(server, ctx) {
49264
- async function elicit(message, schema, required2) {
49265
- try {
49266
- const result = await server.server.elicitInput({
49267
- message,
49268
- requestedSchema: {
49269
- type: "object",
49270
- properties: schema,
49271
- ...required2 ? { required: required2 } : {}
49272
- }
49273
- });
49274
- if (result.action === "accept" && result.content) {
49275
- return result.content;
49276
- }
49277
- return null;
49278
- } catch {
49279
- return null;
49280
- }
49281
- }
49282
49264
  function withErrorHandling(name, handler) {
49283
49265
  return async (...args) => {
49284
49266
  try {
@@ -49608,20 +49590,13 @@ function registerTools(server, ctx) {
49608
49590
  workflowStatus = workflow.displayState ?? workflow.state ?? "unknown";
49609
49591
  } catch {}
49610
49592
  if (!args.confirmed) {
49611
- const confirmation = await elicit(`Are you sure you want to permanently delete "${workflowName}" (${workflowStatus})? This cannot be undone.`, { confirm: { type: "boolean", description: "Confirm deletion" } }, ["confirm"]);
49612
- if (confirmation !== null) {
49613
- if (!confirmation.confirm) {
49614
- return jsonResult({ success: false, message: "Deletion cancelled by user." });
49615
- }
49616
- } else {
49617
- return jsonResult({
49618
- pending: true,
49619
- workflowId: args.workflowId,
49620
- workflowName,
49621
- status: workflowStatus,
49622
- message: `⚠️ You are about to permanently delete "${workflowName}" (${workflowStatus}). This cannot be undone. Ask the user to confirm, then call delete_workflow again with confirmed=true.`
49623
- });
49624
- }
49593
+ return jsonResult({
49594
+ pending: true,
49595
+ workflowId: args.workflowId,
49596
+ workflowName,
49597
+ status: workflowStatus,
49598
+ message: `⚠️ You are about to permanently delete "${workflowName}" (${workflowStatus}). This cannot be undone. Ask the user to confirm, then call delete_workflow again with confirmed=true.`
49599
+ });
49625
49600
  }
49626
49601
  await ctx.client.workflow.delete(args.workflowId);
49627
49602
  return jsonResult({
@@ -49758,18 +49733,11 @@ function registerTools(server, ctx) {
49758
49733
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true }
49759
49734
  }, withErrorHandling("delete_notification_channel", async (args) => {
49760
49735
  if (!args.confirmed) {
49761
- const confirmation = await elicit(`Are you sure you want to delete notification channel "${args.channelId}"?`, { confirm: { type: "boolean", description: "Confirm deletion" } }, ["confirm"]);
49762
- if (confirmation !== null) {
49763
- if (!confirmation.confirm) {
49764
- return jsonResult({ success: false, message: "Deletion cancelled by user." });
49765
- }
49766
- } else {
49767
- return jsonResult({
49768
- pending: true,
49769
- channelId: args.channelId,
49770
- message: `⚠️ About to delete notification channel "${args.channelId}". Ask the user to confirm, then call again with confirmed=true.`
49771
- });
49772
- }
49736
+ return jsonResult({
49737
+ pending: true,
49738
+ channelId: args.channelId,
49739
+ message: `⚠️ About to delete notification channel "${args.channelId}". Ask the user to confirm, then call again with confirmed=true.`
49740
+ });
49773
49741
  }
49774
49742
  await ctx.client.notification.channels.deleteChannel(args.channelId);
49775
49743
  return jsonResult({
@@ -49889,18 +49857,11 @@ function registerTools(server, ctx) {
49889
49857
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true }
49890
49858
  }, withErrorHandling("delete_notification_setting", async (args) => {
49891
49859
  if (!args.confirmed) {
49892
- const confirmation = await elicit(`Are you sure you want to delete notification setting "${args.settingsId}"?`, { confirm: { type: "boolean", description: "Confirm deletion" } }, ["confirm"]);
49893
- if (confirmation !== null) {
49894
- if (!confirmation.confirm) {
49895
- return jsonResult({ success: false, message: "Deletion cancelled by user." });
49896
- }
49897
- } else {
49898
- return jsonResult({
49899
- pending: true,
49900
- settingsId: args.settingsId,
49901
- message: `⚠️ About to delete notification setting "${args.settingsId}". Ask the user to confirm, then call again with confirmed=true.`
49902
- });
49903
- }
49860
+ return jsonResult({
49861
+ pending: true,
49862
+ settingsId: args.settingsId,
49863
+ message: `⚠️ About to delete notification setting "${args.settingsId}". Ask the user to confirm, then call again with confirmed=true.`
49864
+ });
49904
49865
  }
49905
49866
  await ctx.client.notification.settings.deleteSettings(args.settingsId);
49906
49867
  return jsonResult({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.3.5-rc.7",
3
+ "version": "0.3.5",
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",