@modudraft/mcp 0.5.0 → 0.5.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/index.js +21 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24311,7 +24311,9 @@ var apiEndpointSchema = external_exports.object({
|
|
|
24311
24311
|
var dataFlowSchema = external_exports.object({
|
|
24312
24312
|
id: external_exports.string().min(1),
|
|
24313
24313
|
name: external_exports.string().default("Untitled flow"),
|
|
24314
|
-
order: external_exports.number().int().min(0)
|
|
24314
|
+
order: external_exports.number().int().min(0),
|
|
24315
|
+
sourceToTransformNote: external_exports.string().optional(),
|
|
24316
|
+
transformToSinkNote: external_exports.string().optional()
|
|
24315
24317
|
});
|
|
24316
24318
|
var dataFlowStageSchema = external_exports.object({
|
|
24317
24319
|
id: external_exports.string().min(1),
|
|
@@ -24319,6 +24321,7 @@ var dataFlowStageSchema = external_exports.object({
|
|
|
24319
24321
|
type: external_exports.enum(["source", "transform", "sink"]),
|
|
24320
24322
|
tool: external_exports.string().default(""),
|
|
24321
24323
|
label: external_exports.string().default(""),
|
|
24324
|
+
description: external_exports.string().optional(),
|
|
24322
24325
|
order: external_exports.number().int().min(0)
|
|
24323
24326
|
});
|
|
24324
24327
|
|
|
@@ -25854,7 +25857,9 @@ var ALL_TOOLS = [
|
|
|
25854
25857
|
type: "object",
|
|
25855
25858
|
properties: {
|
|
25856
25859
|
diagram_id: { type: "string" },
|
|
25857
|
-
name: { type: "string", description: 'Name for the flow (e.g. "Ingestion pipeline", "ETL")' }
|
|
25860
|
+
name: { type: "string", description: 'Name for the flow (e.g. "Ingestion pipeline", "ETL")' },
|
|
25861
|
+
source_to_transform_note: { type: "string", description: "Optional note shown on the arrow between source and transform columns" },
|
|
25862
|
+
transform_to_sink_note: { type: "string", description: "Optional note shown on the arrow between transform and sink columns" }
|
|
25858
25863
|
},
|
|
25859
25864
|
required: ["diagram_id", "name"]
|
|
25860
25865
|
},
|
|
@@ -25863,7 +25868,13 @@ var ALL_TOOLS = [
|
|
|
25863
25868
|
let flow;
|
|
25864
25869
|
await mutateTypedTab(id, "data-flow", (entry) => {
|
|
25865
25870
|
const order = (entry.dataFlows ?? []).length;
|
|
25866
|
-
flow = {
|
|
25871
|
+
flow = {
|
|
25872
|
+
id: genId(),
|
|
25873
|
+
name: str(args.name, "Untitled flow"),
|
|
25874
|
+
order,
|
|
25875
|
+
...str(args.source_to_transform_note) ? { sourceToTransformNote: str(args.source_to_transform_note) } : {},
|
|
25876
|
+
...str(args.transform_to_sink_note) ? { transformToSinkNote: str(args.transform_to_sink_note) } : {}
|
|
25877
|
+
};
|
|
25867
25878
|
entry.dataFlows = [...entry.dataFlows ?? [], flow];
|
|
25868
25879
|
});
|
|
25869
25880
|
return flow;
|
|
@@ -25883,7 +25894,8 @@ var ALL_TOOLS = [
|
|
|
25883
25894
|
description: "Stage role: source (ingestion), transform (processing), sink (output/storage)"
|
|
25884
25895
|
},
|
|
25885
25896
|
label: { type: "string", description: 'Display label (e.g. "Raw Events", "Filter PII", "DW Load")' },
|
|
25886
|
-
tool: { type: "string", description: 'Technology slug (e.g. "kafka", "postgresql", "spark", "dbt", "redis", "s3")' }
|
|
25897
|
+
tool: { type: "string", description: 'Technology slug (e.g. "kafka", "postgresql", "spark", "dbt", "redis", "s3")' },
|
|
25898
|
+
description: { type: "string", description: "Optional explanation of what this stage does, shown on the canvas card" }
|
|
25887
25899
|
},
|
|
25888
25900
|
required: ["diagram_id", "type", "label"]
|
|
25889
25901
|
},
|
|
@@ -25899,6 +25911,7 @@ var ALL_TOOLS = [
|
|
|
25899
25911
|
type: str(args.type, "source"),
|
|
25900
25912
|
label: str(args.label),
|
|
25901
25913
|
tool: str(args.tool),
|
|
25914
|
+
...str(args.description) ? { description: str(args.description) } : {},
|
|
25902
25915
|
order
|
|
25903
25916
|
};
|
|
25904
25917
|
entry.dataFlowStages = [...entry.dataFlowStages ?? [], stage];
|
|
@@ -25929,7 +25942,7 @@ var ALL_TOOLS = [
|
|
|
25929
25942
|
},
|
|
25930
25943
|
{
|
|
25931
25944
|
name: "update_data_flow_stage",
|
|
25932
|
-
description: "Update an existing data flow stage's type, tool, and/or
|
|
25945
|
+
description: "Update an existing data flow stage's type, tool, label, and/or description.",
|
|
25933
25946
|
inputSchema: {
|
|
25934
25947
|
type: "object",
|
|
25935
25948
|
properties: {
|
|
@@ -25937,7 +25950,8 @@ var ALL_TOOLS = [
|
|
|
25937
25950
|
stage_id: { type: "string", description: "ID of the stage to update" },
|
|
25938
25951
|
type: { type: "string", enum: ["source", "transform", "sink"], description: "New stage role (optional)" },
|
|
25939
25952
|
tool: { type: "string", description: "New technology slug (optional)" },
|
|
25940
|
-
label: { type: "string", description: "New display label (optional)" }
|
|
25953
|
+
label: { type: "string", description: "New display label (optional)" },
|
|
25954
|
+
description: { type: "string", description: "Explanation of what this stage does (optional; pass empty string to clear)" }
|
|
25941
25955
|
},
|
|
25942
25956
|
required: ["diagram_id", "stage_id"]
|
|
25943
25957
|
},
|
|
@@ -25951,6 +25965,7 @@ var ALL_TOOLS = [
|
|
|
25951
25965
|
if (typeof args.type === "string") stage.type = args.type;
|
|
25952
25966
|
if (typeof args.tool === "string") stage.tool = args.tool;
|
|
25953
25967
|
if (typeof args.label === "string") stage.label = args.label;
|
|
25968
|
+
if (typeof args.description === "string") stage.description = args.description || void 0;
|
|
25954
25969
|
updated = stage;
|
|
25955
25970
|
});
|
|
25956
25971
|
return { ok: true, id: updated.id };
|