Documentation
¶
Overview ¶
Package workflow exposes the workflow engine as a fixed single-instance MCP connector. Every op in §9 of the workflow design (Tier 1/2/3) is reachable via wick_execute so any AI with MCP access — Claude Desktop, ChatGPT plugin, Gemini — can create, edit, test, and run workflows without needing native file access.
File layout:
- connector.go — Meta, Configs, Input structs, Operations, thin handlers
- ops.go — handler implementations that delegate to mcp.Ops
Wire-up: call workflow.Module(ops) and pass the result to connectors.Register(...) before connectors.Service.Bootstrap. The mcp.Ops pointer is obtained from the workflow bootstrap (internal/agents/workflow/). Use workflow.ModuleWithRunner(ops, runner) to also enable the workflow_test / workflow_test_coverage ops.
AI usage pattern (no file access):
workflow_workspace → workflow_node_types → workflow_create → workflow_add_node → workflow_connect → workflow_validate → workflow_simulate → workflow_test → workflow_request_review
Index ¶
Constants ¶
const Key = "workflow"
Variables ¶
This section is empty.
Functions ¶
func Module ¶
Module returns the fully-wired connector.Module for the given ops. Call connectors.Register(workflow.Module(ops)) at boot before connectors.Service.Bootstrap runs. The workflow_test / workflow_test_coverage ops return an error when no runner is wired — use ModuleWithRunner to enable.
func ModuleWithRunner ¶
ModuleWithRunner is like Module but also wires a wftest.Runner so the workflow_test and workflow_test_coverage ops are functional.