Repository navigation
feat: MCP project methods and connecting from the project manager - #2340
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
kpal81xd
force-pushed
the
feat/mcp-project-tools
branch
from
October 13, 2026 10:55
438791a to
262aae9
Compare
…ocal flags on open
This branch was successfully deployed
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.
Refs playcanvas/editor-mcp-server#119
What's Changed
project:list,project:get,project:create,project:updateandproject:open. They run with the tab's signed-in session, through the existing REST helpers.name,description,privateandowner(a username) can be set. Any other field is rejected by name. New projects get the same defaults as the New Project dialog. REST errors are passed back as the method's error.project:createwaits for theproject.createmessenger event before it returns. If the event hasn't arrived within 30s, it returnsmeta.initializing.project:openreplies before navigating to/editor/project/:id. The connection has a newflushed(), so the reply isn't lost when the page unloads. It keepsuse_local_frontendanduse_local_engine, like the Launch button, and the Editor then reconnects on load.project(the open project id, ornullon the blank page). The server uses it to say "no project is open"./editorpage has an MCP button in the project manager header, between NEW PROJECT and the user avatar. It loads only the project methods. The connect popover moved out of the toolbar into sharedcreateMcpButton(placement)code.Server side: playcanvas/editor-mcp-server#120.
Tested end to end
I ran this against playcanvas.com in headless Chrome, using a signed-in test account,
use_local_frontendwith this branch, and the server branch acting as the agent:list_projectsreturns real projects. On the blank page,get_projectand scene tools say that no project is open.create_projectreturns in about 0.6s and the project appears in the list.update_projectandget_projectreflect the change.open_projectmoves the tab into the project and the Editor reconnects with no click (about 1.4s). Scene tools then work, and opening the same project again does nothing.create_projectwithopen: truefrom inside a project returns in about 1.4s. Theproject.createevent does reach project pages./editor, the page reconnects from the saved flag.Manual smoke test
playcanvas.com/editor. Expected: an MCP button appears between NEW PROJECT and your avatar.fork_fromorsettingsfield on create. Expected: it is refused, naming the field.Checks