Native MCP mutations reject current editing contract while current CLI succeeds
User story
An agent must create and edit native draft pages in a connected Webstudio project through the documented MCP workflow.
Summary
Read operations and local destructive planning succeed, but native MCP commits fail because the client and API report different public editing contracts. The current official CLI performs the same mutations successfully.
What the agent tried
- Started a project session and loaded the task guide.
- Inspected the bounded design context.
- Created a restore point.
- Called a native page creation mutation.
- Planned and confirmed a native destructive instance mutation.
- Retried equivalent operations through the current official CLI.
Expected behavior
Native MCP mutation calls should use the same current editing contract as the official CLI and commit documented page and instance changes.
Actual result
Native mutation commits returned TRPCClientError with an editing contract mismatch. Equivalent current CLI single-operation calls committed successfully.
Recovery attempts
- Refreshed the project session.
- Verified the installed official CLI was current.
- Retried a confirmed destructive mutation through native MCP.
- Used current CLI single-operation calls as a workaround.
User impact
The requested project work could be completed, but only through an undocumented mixed native-read and CLI-write workflow with additional refreshes.
Technical context
Failed tools: create-page and delete-instance. Error code: TRPCClientError. The client and API reported different public-api editing contract identifiers. Current official CLI version: 0.303.0.
Agent environment
- Client: Codex desktop
- Provider: unknown
- Model: gpt-6
- Reasoning effort: unknown
- Trigger: automatic-friction
- Category: schema-or-docs-mismatch
Technical runtime
- CLI: 0.302.0
- Node.js: 22.23.1
- Project ID:
84f84590-6c72-4846-a93c-27b86f68625a - Operating system: darwin 25 (arm64)
- Execution mode: mcp
- API contract: public-api:bixfi6
- Bundle contract: bundle-1e81gg6
- Session namespace issues: stale=none; missing=marketplaceProduct; invalidated=none
- Preview: stale=false; rendered=true; version matches session=true
Acceptance criteria
- Native MCP mutations and the official CLI use a compatible editing contract.
- Confirmed destructive mutations commit through native MCP after the documented confirmation flow.
- No CLI fallback is required for standard page and instance mutations.
Source: webstudio-is/webstudio