CodeCanvas 2.0.0 · Free WordPress plugin · GPL-2.0-or-later
Write real code inside WordPress.
CodeCanvas 2.0.0 is a code-first plugin. It gives you a real-file Code Studio workspace, per-page coded HTML, CSS and JavaScript, and a scoped MCP server so an AI client can edit the same files you do. It also generates a real theme for your site — no page-builder onboarding, and nothing in the database standing between you and your templates.
Requires WordPress 6.6+ and PHP 7.4+. Install with Plugins → Add New → Upload Plugin, then open CodeCanvas → Code Studio.
<?php // Your website lives in its own theme, // generated once and never overwritten. if ( ! defined( 'ABSPATH' ) ) { exit; } get_header(); while ( have_posts() ) : the_post(); ?> <article class="cc-section"> <h1><?php the_title(); ?></h1> <div><?php the_content(); ?></div> </article> <?php endwhile; get_footer();
EDITED IN CODE STUDIO · SAVED TO DISK
Code Studio: a real-file workspace, not a page builder.
Browse and edit the actual PHP, CSS and JavaScript on the server. Files are read from disk and written back, with validation before every write.
Edit real source files
Browse eligible files under wp-content/themes and wp-content/plugins. Create, rename and delete supported source files from the Explorer.
Search and jump
Full-text search across supported files, with results that open the editor at the matching line.
Your theme, generated for you
One click creates and activates the standalone CodeCanvas Site theme. Existing files are never overwritten, and the plugin folder stays read-only in Studio.
Syntax checks before saving
PHP syntax errors are rejected before they touch disk. A save is refused if the file changed on disk since you opened it.
Snapshot history
Three revisions per file are kept before every change. Compare a hash, restore a snapshot, and keep working.
Focus mode & mobile
Hide the WordPress chrome to fill the screen (Ctrl/Cmd+Shift+M, leave with Esc). On phones the Explorer becomes a slide-in drawer with touch-sized controls.
Optional · off by default
Connect Claude, Cursor or any MCP client — with a scope you choose.
CodeCanvas ships a scoped HTTP MCP endpoint. Generate a token, pick the exact projects and tools an AI client can reach, and leave writes off until you need them. OAuth 2.1 with PKCE is supported for browser clients such as claude.ai.
- Bearer token, stored only as an HMAC hash and shown once.
- File writes and content writes are separate switches, both off by default.
- The plugin's own source is never exposed; paths are validated and every write is snapshotted.
- Calls are rate-limited and audited — the log folds out of the way, with the failure count in its header.
create_pluginscaffolds a plugin but never adds it to the write scope, and activation stays manual.
POST /wp-json/codecanvas/v1/mcp
25 tools, grouped by what they can do.
Pick the projects and tools an AI client may use. Tools are grouped by capability, and each group header shows how many are enabled, so gated tools are visible without opening anything.
Read-only 12 · on by default
File writes 7 · off by default
Content writes 6 · off by default
Gated tools stay listed but cannot be called: with file writes on and content writes off, 19 of the 25 are reachable.
Recovery guard
A bad write is a one-request outage, not a file-manager repair.
Install the must-use guard and CodeCanvas restores the last snapshot automatically when a PHP fatal error comes from a theme or plugin file. Install, repair or remove it from MCP & Settings — nothing runs until you ask it to.
Built for the way you already work
Everything the site renders is a file.
Content written over MCP is a regular page or post, so it stays editable in the block editor. Menus, settings and media go through normal WordPress APIs. CodeCanvas adds one menu with three destinations — Welcome, Code Studio and MCP & Settings — plus Pages → CodeCanvas Editor for a single page's own code. It does not replace the dashboard, block editor, media library, users, plugins or settings screens.
- No template, content-type or global-code screen — and no such store in the database.
- Public pages load no Studio, MCP settings or CodeMirror assets.
- Translation-ready, threaded comments, custom logo and menus, wide blocks.
From install to a live build in three steps.
Recommended on local or staging first. Review the security model before enabling source writes or MCP on production.
Install & activate
Upload codecanvas-2.0.0.zip under Plugins → Add New → Upload Plugin and activate CodeCanvas. The Welcome screen shows the version, website theme, MCP state and recovery-guard status.
Create the website theme
One explicit click in Code Studio creates and activates the standalone CodeCanvas Site theme and opens wp-content/themes/codecanvas-site. Existing files are never overwritten.
Build — optionally with AI
Edit templates, CSS and JS in Studio, give a page its own HTML/CSS/JS under Pages → CodeCanvas Editor, or enable MCP and connect Claude Code, Cursor, VS Code or claude.ai with the scope you choose.
Documented end to end.
A full product specification, security model and QA record ship inside the plugin. The automated suite passes 305 tests covering path policy, framework protection, MCP authentication and tools, sanitization, rate limiting and audit redaction.
CodeCanvas is free, standalone and open source.
GPL-2.0-or-later. No required companion plugin, no vendor lock-in, no dashboard takeover. Back it up, try it on staging, and keep your source where it belongs — on the server.