How To Use
This app is an MCP server named workflow-os.
It helps an MCP client route a request into one of the bundled workflow domains, run a single main workflow, optionally apply one utility pass, and end with one concrete next action.
What It Does
The server exposes:
- tools for routing and execution
- prompts for common workflow entry points
- resources that expose the bundled workflow markdown files
The intended pattern is:
- Route the task first
- Select or inspect the right workflow/resource if needed
- Run one main workflow
- Optionally apply one utility prompt
- Return one immediate next action
Start The Server
Build first:
pnpm install
pnpm run build
Run in stdio mode:
node dist/index.js
Run in HTTP mode:
MCP_TRANSPORT=http MCP_PORT=<port> node dist/index.js
# Example: MCP_TRANSPORT=http MCP_PORT=3000 node dist/index.js
HTTP endpoints:
GET /healthGET /docsGET /docs-api.jsonPOST /mcpGET /mcpDELETE /mcp
In HTTP mode, interactive API docs are available at /docs, and the raw OpenAPI document is available at /docs-api.json.
Environment Variables
| Variable | Default | Meaning |
|---|---|---|
MCP_TRANSPORT |
stdio |
Transport mode: stdio or http |
MCP_PORT |
defaults to 3000 |
HTTP port when using HTTP transport |
WORKFLOW_ROOT |
./workflows bundle |
Override workflow markdown source directory |
Main Tools
route_task
Use this first.
Input:
task- optional
goal - optional
audience - optional
constraints - optional
preferred_mode - optional
preferred_domain
Output:
modedomainconfidencereasonsequenceuse_utilityutility_candidates
Example intent:
Route: "Help me validate a digital product idea for busy founders"
select_domain_workflow
Use this when you want the workflow resource URI and normalized stage before running.
Input:
domain- optional
stage
Output includes:
resource_urisubsection_uristagecommand_formatresponse_shape
run_workflow_sequence
This is the primary execution tool.
Input:
modedomaintask- optional
context - optional
stage - optional
optimize_once - optional
next_action_required
Output includes:
main_deliverableapplied_sequenceoptimization_appliednext_action
apply_utility_prompt
Use only after a main workflow has already run.
Available utilities:
clarity_rewriteconversion_rewritetone_calibrationstructure_rebuildaudience_rewriteimpact_compressorblind_spot_findershortcut_strategyultra_leveragemomentum_amplifier
generate_next_action
Use this when you already have output and need exactly one immediate next step.
Prompts
The server also exposes prompts for higher-level MCP clients.
Mode prompts:
clarify_taskstrategize_taskbuild_outputimprove_persuasionforce_executionreview_optimize
Domain prompts:
run_freelancing_workflowrun_products_workflowrun_content_workflowrun_execution_workflowrun_investing_workflowrun_utility_workflow
Front-door prompt:
route_and_run
Resources
Full workflow resources:
workflow://os/v4workflow://freelancing/v4workflow://products/v4workflow://content/v4workflow://execution/v4workflow://investing/v4workflow://utility/v4workflow://execute-referencing/v4
Section resources follow this template:
workflow://{domain}/v4/{sectionGroup}/{sectionName}
Examples:
workflow://products/v4/execution/sequenceworkflow://content/v4/output/response-shape
Recommended Client Flow
For most client integrations, use this sequence:
- Call
route_task - Optionally read
resource_urior a section resource - Call
run_workflow_sequence - If needed, call
apply_utility_promptonce - Return the final output with the supplied
next_action
Client Configuration
For client setup across Codex, Claude, ChatGPT, Kimi, Claw-style clients, and VS Code extensions, use the generic MCP configuration guide:
Notes
- The bundled workflow markdown files are the source of truth.
- The server is designed to run one main workflow per request.
- Utility prompts are supporting tools, not the primary entry point.
- Output should end with one immediate next action.