MCP surface: slim payloads, pinned workspaces, costs - #63
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy exact docstring wording from dw_mcp/server.py into docs/MCP.md for export_job, validate_workflow, run_workflow, create_workspace and wait_for_job; note the workspace-override exception in dw_mcp/CLAUDE.md; fix the stale $DW_TOKEN/$DW_SERVER example in WORKFLOW_GUIDE.md; reformat four templates' cost arrays to match the established three-line form; and add queue_position to wait_for_job's slim keys (TDD: failing test first) plus a get_job assertion on the terminal-wait test. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Items #4, #5, #9 and #10 of the 2026-09-10 MCP field report (
/Users/don/testing/10/dw-improvements.md), executed fromdocs/superpowers/plans/2026-09-10-mcp-field-report-followups.md(PR-2 section).#4 Tool payloads
export_jobno longer inlinesworkflow,manifestandjob— they are in the zip and served individually byget_job_workflow/get_job. A music-video export was 55 KB of repeated JSON.wait_for_jobreturns a slim job: status, warnings, error,queue_position, and the manifest once terminal — noarguments(4-6k tokens of prompt text per poll on an H3 workflow) or traceback.get_jobhas those.#5 Workspace sharp edges
run_workflow(workspace=...)/validate_workflow(workspace=...)pin one call to a named workspace without switching the session — a restarted session forgetsuse_workspace, and a job then resolvedoutput:references in the wrong root.create_workspace(use=False): passuse=trueto switch as well; otherwise the result says where the session still is.#9 Catalog costs
Measured RTX 3090
costarrays onmusic-video(35 min),dialogue-short(42 min),assemble-and-scoreanddissolve-between-shots(0.2 min).#10 The last mile
Step 7 of the guide's agent loop: fetching outputs from a remote server with the
DW_API_TOKENbearer; pointer from docs/MCP.md.Also:
black --checkwas red on master from #62 (two files) — fixed here.Full suite: 3314 passed, 5 skipped.
black --check dw dw_mcp testsclean.🤖 Generated with Claude Code