Skip to content

feat: add glossaries support and fix URI/account ID handling (MCPSRV-45)#14

Merged
PavelLoparev merged 1 commit into
mainfrom
MCPSRV-45-glossary-support
Jun 10, 2026
Merged

feat: add glossaries support and fix URI/account ID handling (MCPSRV-45)#14
PavelLoparev merged 1 commit into
mainfrom
MCPSRV-45-glossary-support

Conversation

@PavelLoparev

@PavelLoparev PavelLoparev commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

PR for visibility. We wrap new version of smartling cli tool

Summary

  • Glossaries command group - documents all 4 subcommands (list, create, export, import) with flags validated against smartling-cli 3.4 source code (corrected --file-type vs wrong --output-format, added --verification-mode, --focus-locale, --skip-entries)
  • Account ID fix - SMARTLING_ACCOUNT_ID env var is now injected as -a flag automatically by the MCP server; the CLI has no native env var for this, causing files push, projects list, glossaries * and most other commands to fail
  • File URI fix - documented and enforced the convention: push must use explicit URI without /smartling/ prefix, pull must use --directory /smartling; Go's filepath.Join produces double-path output (/smartling/smartling/...) otherwise

Test plan

  • Restart Claude Desktop after merging and confirm glossaries list works
  • Confirm files push /smartling/<file> <uri> uploads with correct URI in Smartling
  • Confirm files pull --directory /smartling writes translated files back to the mounted directory
  • Confirm SMARTLING_ACCOUNT_ID env var in Docker config eliminates "AccountUID cannot be empty" errors

🤖 Generated with Claude Code

…ling

- Add glossaries command group (list, create, export, import) with all
  flags validated against smartling-cli 3.4 source code
- Inject SMARTLING_ACCOUNT_ID env var as -a flag automatically — the CLI
  has no native env var for account ID, causing files push and other
  commands to fail without it
- Fix file URI convention: always specify explicit URI without /smartling
  prefix on push, always use --directory /smartling on pull — Go's
  filepath.Join would otherwise produce double-path output files
- Update README, CLAUDE.md, and tool description accordingly

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@PavelLoparev PavelLoparev merged commit b748c01 into main Jun 10, 2026
2 checks passed
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.

1 participant