Add OpenClaw bundle support and harden DeepWork MCP flow#387
Open
tylerwillis wants to merge 3 commits intomainfrom
Open
Add OpenClaw bundle support and harden DeepWork MCP flow#387tylerwillis wants to merge 3 commits intomainfrom
tylerwillis wants to merge 3 commits intomainfrom
Conversation
3 tasks
The MCP workflow runtime changes from this branch have been extracted into a separate draft PR (#394) for independent review. This branch now contains only the OpenClaw bundle content. Note: with MCP hardening removed, `uvx deepwork serve --platform openclaw` will reject "openclaw" as an unsupported platform (FORMATTERS registry only knows "claude" on main). That is expected during this review split — determines whether the MCP changes are actually required to ship OpenClaw support, or whether the bundle can work on the main-branch runtime alone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes DeepWork work cleanly with stock OpenClaw without requiring users to patch OpenClaw itself.
It does four things:
plugins/openclaw/with MCP wiring, workflow/review skills, and a bootstrap hookget_active_workflowandvalidate_step_outputsMCP tools for safer session recovery and step submissionWhy
OpenClaw’s runtime surface differs from Claude Code:
get_active_workflowpathfinished_stepWithout these changes, DeepWork can point OpenClaw at the wrong root, give it the wrong review instructions, or make step submission more brittle than it needs to be.
What Changed
OpenClaw bundle
plugins/openclaw/.codex-plugin/plugin.jsonplugins/openclaw/.mcp.jsondeepwork-openclaw-bootstraphookplugins/openclaw/README.mdMCP workflow improvements
get_active_workflowvalidate_step_outputsdoc/mcp_interface.mdRoot and session handling
OpenClaw review flow
Non-goals
Testing
Ran:
uv run pytest tests/unit/jobs/mcp/test_tools.py tests/unit/jobs/mcp/test_roots.py tests/unit/jobs/mcp/test_state.py tests/unit/jobs/mcp/test_status.py tests/unit/jobs/mcp/test_quality_gate.py tests/unit/review/test_formatter.py tests/unit/review/test_instructions.py tests/unit/review/test_mcp.py tests/unit/plugins/test_openclaw_plugin.py -quv run pytest tests/unit/plugins/test_claude_plugin.py tests/integration/test_quality_gate_integration.py tests/e2e/test_claude_code_integration.py -quv run pytest tests/unit/jobs/mcp/test_server.py tests/unit/jobs/mcp/test_schemas.py -qResults:
307 passed57 passed, 1 skipped, 1 xfailed64 passed