Structured Workflow 标志

Structured Workflow

社区
kingdomseed

An MCP server that tries to force an AI agent to follow structured problem solving steps to accomplish a goal.

发布者kingdomseed
代码仓库structured-workflow
复刻数
3
星标数
12
可用工具
20
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    Structured Workflow 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 20 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 12 个 Star 和 3 个 Fork。

Structured Workflow

[!IMPORTANT] Work in progress. The 20 workflow skills are available for review and experimentation. Project initialization, templates, companion subagents, hooks, and packaged installation are still being designed.

Structured Workflow started as an MCP server in the Sonnet 3.5/3.7 era, when I was trying to answer a question: “How do I get my agents to follow a more structured approach, like a human would, when facing new problems and unknown territory?” This update evolves that idea by bringing in the MYP Design Cycle from my years as a teacher as the core process for building anything with agents.

Structured Workflow is a collaborative skillset for agents and humans. It gives coding agents an evidence-producing design cycle as a workflow structure, guiding them through the reasoned process that a product developer, designer, or engineer would use when approaching and solving a problem. It can be lightweight or support detailed analysis and research. It provides a useful default direction while allowing the work to follow new questions, ideas, prototypes, implementation discoveries, and evaluation evidence wherever they lead.

The repository currently contains 20 skills: one parent and four criterion skills for each of four phases. It also defines the durable project files that preserve shared understanding and workflow position across sessions.

The design cycle

The default direction is to work through phases A–D, one criterion at a time. Work can move to any criterion or phase that best answers the current question. Research, ideas, exploratory visuals, and evaluation can move naturally between criteria as the current question changes.

A — Inquire and Analyze

  • A1 — Explain and justify the need
  • A2 — Identify and prioritize research
  • A3 — Analyze prior art
  • A4 — Develop the Design Brief

The phase produces an approved Design Brief supported by inquiry evidence.

B — Develop Ideas

  • B1 — Develop design specifications
  • B2 — Develop feasible ideas
  • B3 — Present and justify the chosen design
  • B4 — Develop planning drawings and diagrams

The phase produces an approved Spec that defines the chosen solution.

C — Create Solution

  • C1 — Construct a logical plan
  • C2 — Demonstrate technical skills
  • C3 — Follow the plan to create the solution
  • C4 — Justify changes to the design

The phase produces approved tickets, a working solution, verification evidence, and justified changes.

D — Evaluate

  • D1 — Design testing methods
  • D2 — Evaluate the solution against the design specification
  • D3 — Explain how the solution could be improved
  • D4 — Explain the solution's impact

The phase produces an evidence-backed verdict, improvements, and an impact explanation.

The default direction inside A and B follows criterion order. Criterion C starts with C1, demonstrates C2 while carrying out C3, and uses C4 when creation requires a design change. A complete final evaluation follows D1 through D4.

Evaluation is also available throughout the cycle. A Design Brief, Spec, plan, ticket set, prototype, implementation, or claim can be evaluated whenever the work needs an evidence-based judgment.

How artifacts develop

Each phase maintains one authoritative project document:

  1. The inquiry document preserves A1–A4 evidence and produces the Design Brief.
  2. The developing-ideas document preserves B1–B4 evidence and completes the Spec.
  3. The creating-solution document preserves the logical plan, technical skills evidence, creation record, and justified changes. Approved implementation tickets live in the project's issue tracker.
  4. The evaluation document accumulates reviews and final evaluation evidence.

The documents preserve the reasoning behind each handoff. A later phase can load the approved artifact first and retrieve deeper evidence from the owning phase document when needed.

Durable project context

Structured Workflow uses a small set of project files to survive context loss:

  • AGENTS.md contains the short, always-loaded workflow rules.
  • workflow-tracker.md records the current phase, exact criterion, current question, active artifact, target result, and likely next move.
  • GLOSSARY.md preserves the shared meaning of important project terms.
  • Phase documents preserve findings, evidence, decisions, and uncertainty.
  • Project templates define the document locations and reusable expectations, including the project's Definition of Done.

The tracker records position rather than findings. Research and reasoning belong in the phase document that owns them. Implementation work belongs in the issue tracker.

Human-agent collaboration

Prefer retrieval-led reasoning over training-led reasoning. The agent begins with the project, its code or materials, direct human knowledge, and primary sources. Material claims are cited where they are recorded. Supported facts, human judgments, inferences, and unknowns remain distinguishable.

The agent develops questions from the request, project evidence, industry evidence, contradictions, constraints, and missing understanding. It leads retrieval, review, synthesis, and other bounded work. The human directs intent, priorities, values, and consequential choices. The balance can be even or mostly agent-led, depending on the human and the work.

This evidence trail gives the human a concrete basis for inspecting the agent's reasoning, evidence, and uncertainty.

Repository status

The current repository includes:

  • the always-loaded workflow rules in AGENTS.md;
  • four parent skills and sixteen criterion skills under skills/;
  • four human-facing phase guides;
  • a project-level workflow tracker template.

The following surfaces are still planned:

  • project initialization and document templates;
  • companion subagent definitions;
  • continuity and guardrail hooks;
  • packaged installation and update commands.

The skills can be inspected and tested now, but the repository does not yet provide a complete installer. Projects using the workflow must currently place the skills and project files through their agent harness's normal configuration mechanism.

Repository structure

text
AGENTS.md
README.md
skills/
  inquiry-analysis/
    README.md
    start-inquire-and-analyze/
    explain-and-justify-the-need/
    identify-and-prioritize-research/
    analyze-prior-art/
    develop-design-brief/
  developing-ideas/
    README.md
    start-develop-ideas/
    develop-design-specifications/
    develop-feasible-ideas/
    present-and-justify-the-chosen-design/
    develop-planning-drawings-and-diagrams/
  creating-solution/
    README.md
    start-create-solution/
    construct-a-logical-plan/
    demonstrate-technical-skills/
    follow-the-plan-to-create-the-solution/
    justify-changes-to-the-design/
  evaluating/
    README.md
    start-evaluate/
    design-testing-methods/
    evaluate-against-the-design-specification/
    explain-how-the-solution-could-be-improved/
    explain-the-solutions-impact/
  workflow-management/
    workflow-tracker.md

The phase folders organize the skills; they are not additional workflow phases. workflow-management/ contains cross-phase project resources.

Sources and acknowledgments

Structured Workflow adapts the four criteria of the IB MYP Design Cycle for human-agent software work.

The criterion structure was checked against the IB MYP Design Subject Brief and the diagrams published by Design and Inquiry.

The workflow and skill design were informed by:

The human-judgment and evidence-trace principles were also informed by Shaw and Nave's research on cognitive surrender.

安装

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "structured-workflow": {
      "command": "npx",
      "args": [
        "structured-workflow-mcp@latest"
      ]
    }
  }
}

可用工具

  • refactor_workflow

    Start a structured refactoring workflow to improve existing code without changing functionality

  • create_feature_workflow

    Start a structured workflow for adding new functionality with integrated testing

  • test_workflow

    Start a focused workflow for writing or improving test coverage

  • tdd_workflow

    Start a Test-Driven Development workflow with Red-Green-Refactor cycles

  • build_custom_workflow

    Build a custom workflow with full control over phases and configuration. Use specific workflow tools (refactor_workflow, create_feature_workflow, etc.) for optimized presets.

  • setup_guidance

    Get guidance for the SETUP phase - initialize workflow and establish patterns

  • audit_inventory_guidance

    Get guidance for the AUDIT_INVENTORY phase - analyze code and catalog changes

  • compare_analyze_guidance

    Get guidance for the COMPARE/ANALYZE phase - evaluating approaches

  • question_determine_guidance

    Get guidance for the QUESTION_DETERMINE phase - clarify and finalize plan

  • refactor_guidance

    Get guidance for the WRITE/REFACTOR phase - implementing changes

  • lint_guidance

    Get guidance for the LINT phase - verifying code quality

  • iterate_guidance

    Get guidance for the ITERATE phase - fixing issues

  • present_guidance

    Get guidance for the PRESENT phase - summarizing work

  • test_guidance

    Get MANDATORY guidance for the TEST phase - execute tests and validate functionality after refactoring

  • validate_action

    Check if an action follows critical safety rules

  • validate_phase_completion

    Validate that current phase meets all completion requirements before allowing progression

  • user_input_required_guidance

    Handle escalation to user input when iteration limits reached or checkpoints triggered

  • workflow_status

    Check current workflow progress and session state

  • phase_output

    Record the output/results when completing a workflow phase - REQUIRES ACTUAL OUTPUT ARTIFACTS with numbered file naming

  • discover_workflow_tools

    List the workflow guidance tools provided by this MCP server

将 Structured Workflow MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 Structured Workflow 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 Structured Workflow 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 Structured Workflow MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "structured-workflow": {
      "command": "npx",
      "args": [
        "-y",
        "structured-workflow-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 Structured Workflow MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 Structured Workflow MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 Structured Workflow 帮我完成这项任务吗?
Structured Workflow
当然。我已阅读。
以下是我使用 Structured Workflow 得到的结果。

常见问题

Structured Workflow MCP 服务器有什么用途?

Structured Workflow 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 Structured Workflow MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 Structured Workflow,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 Structured Workflow MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 Structured Workflow 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 Structured Workflow MCP 连接到 TypingMind?

Structured Workflow 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

Structured Workflow MCP 在 TypingMind 中提供哪些工具?

Structured Workflow 提供 20 个 MCP 工具,您可以在 TypingMind 的插件页面启用这些工具,然后在聊天中使用,或将其分配给 AI 智能体。

使用 Structured Workflow MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 Structured Workflow 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇