@ebowwa/workflows 0.1.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.
@@ -0,0 +1,57 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * MCP Server for Workflow Control
4
+ *
5
+ * Provides MCP tools for:
6
+ * - Listing and managing workflows
7
+ * - Triggering workflow runs
8
+ * - Checking run status
9
+ * - Canceling runs
10
+ * - Streaming logs
11
+ */
12
+ import { WorkflowRunner, type Workflow } from '../index.js';
13
+ export interface WorkflowMCPOptions {
14
+ /** Default workspace directory */
15
+ workspace?: string;
16
+ /** Default environment variables */
17
+ env?: Record<string, string>;
18
+ }
19
+ export declare class WorkflowMCPServer {
20
+ private server;
21
+ private runner;
22
+ private workflows;
23
+ private runs;
24
+ private logs;
25
+ constructor(options?: WorkflowMCPOptions);
26
+ private setupHandlers;
27
+ private handleWorkflowList;
28
+ private handleWorkflowCreate;
29
+ private handleWorkflowGet;
30
+ private handleWorkflowDelete;
31
+ private handleWorkflowRun;
32
+ private handleRunList;
33
+ private handleRunGet;
34
+ private handleRunCancel;
35
+ private handleRunLogs;
36
+ /**
37
+ * Start the MCP server
38
+ */
39
+ start(): Promise<void>;
40
+ /**
41
+ * Get the underlying runner for direct access
42
+ */
43
+ getRunner(): WorkflowRunner;
44
+ /**
45
+ * Add a workflow programmatically
46
+ */
47
+ addWorkflow(workflow: Workflow): void;
48
+ /**
49
+ * Get a workflow by ID
50
+ */
51
+ getWorkflow(id: string): Workflow | undefined;
52
+ }
53
+ /**
54
+ * Create and start an MCP server
55
+ */
56
+ export declare function createMCPServer(options?: WorkflowMCPOptions): Promise<WorkflowMCPServer>;
57
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;GASG;AAWH,OAAO,EACL,cAAc,EAGd,KAAK,QAAQ,EAId,MAAM,aAAa,CAAC;AA+JrB,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC9B;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAiB;IAC/B,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,IAAI,CAAkC;IAC9C,OAAO,CAAC,IAAI,CAAiC;gBAEjC,OAAO,GAAE,kBAAuB;IA4B5C,OAAO,CAAC,aAAa;YAyEP,kBAAkB;YAkBlB,oBAAoB;YAuBpB,iBAAiB;YAiBjB,oBAAoB;YAkBpB,iBAAiB;YAyCjB,aAAa;YAqCb,YAAY;YAiBZ,eAAe;YAkBf,aAAa;IAqC3B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B;;OAEG;IACH,SAAS,IAAI,cAAc;IAI3B;;OAEG;IACH,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI;IAIrC;;OAEG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS;CAG9C;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAI9F"}