Add MCP tool for pseudolocalizing assets via the pseudo endpoint - #1098
Open
ehoogerbeets wants to merge 1 commit into
Open
ehoogerbeets wants to merge 1 commit into
ehoogerbeets wants to merge 1 commit into
Conversation
This is the `mojito pseudo` generate call, so an agent can produce en-x-pseudo files without the CLI walking the tree. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Sep 24, 2026
ehoogerbeets
added this pull request to stack #1102
September 24, 2026 23:04
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.
What pseudo is
In Mojito, pseudolocalizing an asset means taking one source resource file and generating an accented copy so missing translations and layout issues show up before real locales exist. The CLI writes that file under the synthetic tag
en-x-pseudo. This is not applying TM translations (mojito_asset_localize/mojito pull).What this adds
One MCP tool:
mojito_asset_pseudo— generate one pseudolocalized resource file for an existingassetIdTogether with import and localize, an agent can replace
mojito push,mojito pull, andmojito pseudofor the per-file generate steps (the agent still owns scanning and writing files).What the underlying API does
POST /api/assets/{assetId}/pseudois the synchronous callmojito pseudouses (AssetClient.getPseudoLocalizedAssetForContent). The JSON body is aLocalizedAssetBody:assetIdand sourcecontentlocaleId(synthetic locale, not a repository translation locale)outputBcp47tagdefaults toen-x-pseudoto match the Java clientfilterConfigIdOverride/filterOptionssubstituteType—RANDOM(server/CLI default) orCONSISTENT(CLI--substitute)When writing the returned
content, use path tagen-x-pseudo. The generate pipeline usesen-x-psaccentinternally; that is not the filename tag.Scope: this is not
mojito pseudoThe CLI command scans a source directory and writes each generated file. This tool is only the per-asset generate underneath that.
Also not exposed: async/parallel localize, importing already-localized files, XLIFF export.
Test plan
cd mojito-mcp && yarn testcd mojito-mcp && yarn buildMade with Cursor
Made with Cursor