Repository navigation
Conversation
This reverts commit a88e9c5.
This branch has not been 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.
Add an optional MCP server inside the editor, following the suggestion in #4505 (comment) to use the existing scripting API and interact with a running Tiled instance.
Edit > MCP Server starts a loopback-only Streamable HTTP endpoint and copies client connection settings. One
execute_scripttool runs synchronous JavaScript against the existing script engine, so callers operate on live documents and use the existing editing and Undo APIs. Thetiled://scripting-apiresource serves the existing TypeScript API reference.The endpoint starts disabled, requires a generated bearer token, rejects browser origins and unexpected Host headers, and revokes its credentials when disabled. Script errors reach the client; preceding edits are not automatically rolled back. The script-engine reset blocker and a reentrancy guard protect calls that enter nested event loops.
Qt HTTP Server is an optional build dependency (Qt 6.4+). Packaging includes the module and its WebSockets dependency where available; the Qt 6.2 macOS build remains supported without MCP. Qt HTTP Server's GPLv3 license is included and the corresponding package metadata is updated.
Snap builds run independently. Arm64 CI installs the official Qt SDK revision 52 used by the preceding successful upstream build, then declares the KF6 SDK explicitly so the KDE extension uses the installed Qt SDK without querying its unavailable channel. All architecture targets are preserved.
Validation:
Access is denied; all 7 pass in a temporary copy using a directory-backed fixture instead of an openQTemporaryFile. That unrelated workaround is not included here.