Skip to content

Add an opt-in MCP server backed by the scripting API - #4653

Open
varnholt wants to merge 11 commits into
mapeditor:masterfrom
varnholt:feature/integrated-mcp
Open

varnholt wants to merge 11 commits into
mapeditor:masterfrom
varnholt:feature/integrated-mcp

Conversation

@varnholt

@varnholt varnholt commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Adds an optional MCP server so clients can work with a running Tiled instance through the existing scripting API, as suggested in #4505 (comment).

Start it from Edit > MCP Server. Clients can run JavaScript against open documents, use the existing editing and Undo APIs, and read the scripting API reference.

The server is disabled by default, accepts only local connections, and requires a generated access token. It needs Qt 6.4+ and the optional Qt HTTP Server module; builds without it remain supported.

Includes native tests and packaging updates.

@bjorn

bjorn commented Nov 15, 2026

Copy link
Copy Markdown
Member

Thanks, this is indeed much closer to what I think an MCP option in Tiled should look like!

I'll look for some time to try it out, but in the meantime, please remove the workaround for the arm64 snap. Since the SDK the snap depends on no longer supports it, I think it's a better idea to drop support for it for now, rather than pinning an old SDK version (see #4657).

The arm64 Snap build is gone upstream (mapeditor#4657), so the pinned Qt SDK
revision and the fail-fast change that kept it from cancelling the
other architectures are no longer needed.
@varnholt

Copy link
Copy Markdown
Contributor Author

Done, the arm64 snap workaround is removed (along with the fail-fast change that only existed for it) and the branch has master merged in, including #4657.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants