Commit 01063a5
Release v1.0.4 (#15)
* chore: add .npmignore for cleaner npm package
* chore(package): update bin path and repository url syntax
Add the .claude directory to npm ignore to exclude development files.
Improve package.json metadata by correcting repository URL format to use
the git+ protocol and adjusting the CLI binary path to avoid a leading
relative path indicator, ensuring better compatibility with package tools.
* feat: implement automated release workflow
- Add master release workflow triggered from develop branch
- Integrate DXT packaging into main CI workflow
- Remove redundant release-dxt.yml workflow
- Update semantic-release config to disable npm publishing
- Add comprehensive release documentation with secrets guide
- Implement full GitFlow automation with back-merging
This allows contributors to release new versions with a single
workflow trigger from the develop branch. The process automatically:
1. Creates release branch with version updates
2. Opens PR to main
3. After merge: publishes to npm, creates GitHub release with DXT
4. Back-merges to develop
* feat: extend CI workflow to run on every push to main branches
- Rename workflow to ci-code-quality.yml
- Run on both pull requests AND pushes to main/develop
- Adjust PR-specific features to only run on PRs
- Update summaries to reflect branch vs PR context
This ensures code quality on all commits to protected branches.
* chore: add missing newline at end of config file
* fix: add workflow permissions and create CHANGELOG.md
- Add explicit permissions for contents and pull-requests in release workflow
- Create initial CHANGELOG.md for version tracking
- Fix 403 error when creating PRs from GitHub Actions
* feat: add pre-commit hooks for formatting and linting
- Configure husky to run pre-commit hooks
- Add lint-staged to run biome format and lint on staged files
- Ensures code quality before commits
* fix: update release workflow to handle GitHub Actions PR permissions
- Add support for GH_PAT as alternative to repository permissions
- Document required GitHub repository settings in RELEASING.md
- Add troubleshooting for 403 PR creation errors
- Fix lint-staged to only process supported file types
* fix: use GitHub CLI for PR creation to avoid permissions issue
- Replace github-script with gh CLI for more reliable PR creation
- Update documentation for fine-grained token permissions
- Add pull request write permission requirement
* chore: remove redundant source file ignores from ignore configs
Remove obsolete ignore rules for source and script directories in ignore
files to simplify project configuration and avoid conflicts with actual
publishing logic. This clarifies which files are included during packaging
and syncing, ensuring ignore files remain minimal and accurate.
* ci: use environment vars for signing certificates
Modify the CI workflow to pass signing certificates via environment variables instead of referencing secrets directly in the script.
This improves readability and consistency in handling sensitive data during the release process. Minor whitespace cleanups and formatting adjustments are also included for better maintainability.
* ci: update dxt command and remove signature verification
Replace signature verification step with cleaning the package in the CI workflow to streamline the process.
Remove redundant signature verification from the signing script to simplify signing and reduce failure points.
Delete the now-unused `.dxtignore` file that listed excluded files for the DXT package.
* refactor(logger): defer logger initialization and file setup
Improve startup performance and avoid module-level side effects by
lazily initializing loggers and deferring log file creation until the
first log event. Streamline logger initialization by centralizing file
logging setup and replacing synchronous early setup with on-demand
initialization. This enhances reliability and reduces unnecessary I/O
during import phases.
Also apply lazy logger instantiation to domain-related modules for
consistent behavior and safer side effect management.
* Deployment: Dockerfile and Smithery config (#6)
This PR adds files for deploying your MCP server on Smithery. After
deployment, users can use your server over streamable HTTP (hosted on
[Smithery](https://smithery.ai)) without needing to install any
dependencies.
### Changes
- Added **Dockerfile** to package your server for deployment.
- Added **Smithery Configuration** file to specify how to start your
server. See [documentation](https://smithery.ai/docs/build/deployments).
- Updated **README** to include installation command via Smithery. _Note
that the command only works after the server is deployed on Smithery._
### Server Details
- **Smithery ID**: `@AbdallahAHO/lokalise-mcp`
- **Server Homepage**:
[https://smithery.ai/server/@AbdallahAHO/lokalise-mcp](https://smithery.ai/server/@AbdallahAHO/lokalise-mcp?utm_campaign=pr&modal=claim)
### Action Items
- [X] **Build Passing**: We verified that the Docker builds and your
server starts up using an automated test.
- [ ] **Code Review**: Please review the changes to ensure the
configuration is accurate for your server.
*These files were automatically generated and tested by Smithery*
---------
Co-authored-by: smithery-ai[bot] <194235850+smithery-ai[bot]@users.noreply.github.com>
* Update smithery.yaml
* feat(config): add MCP initialization config handling and prioritization (#12)
Introduce a handler extracting configuration from MCP client info during
initialization, enabling dynamic config setup based on client-provided
data.
Update configuration loader to prioritize MCP init config over
environment variables and other sources, ensuring runtime flexibility
and seamless integration with MCP clients.
Add comprehensive tests verifying MCP config precedence, boolean
parsing, nested config handling, and hostname extraction.
* ci: improve back-merge handling in release workflow
- Add proper error handling for merge conflicts
- Create PR automatically if conflicts occur
- Use proper git fetch and checkout commands
- Add GH_TOKEN for PR creation
* refactor: reorder exports to improve consistency
Adjust export statements in the transport module to maintain consistent ordering and grouping.
Also tidy up import order in several modules for improved readability and alphabetical consistency,
such as reordering imports in the contributors service and keys controller.
These changes focus on code style and maintainability without affecting runtime behavior.
* feat(usergroups): add complete user group management domain
Implement full user groups management including CLI commands, MCP tools,
and MCP resources to enable listing, retrieving, creating, updating, deleting,
and managing members and projects within user groups.
- Introduce domain exports and types with comprehensive Zod validation schemas
- Add controller layer handling input validation, error processing, and formatting
- Build service layer interfacing with Lokalise User Groups API for actual data operations
- Create detailed Markdown formatters for human-readable output of API responses
- Provide CLI commands for seamless command-line interaction and automation
- Register MCP tools exposing user group operations to the MCP server
- Register MCP resources enabling resource-based access to user groups via URI schemes
This modular setup establishes a robust user groups domain supporting team-based
permission management and integration with Lokalise platform workflows.
* feat(teamusers): add domain with CLI, service, controller, formatter, and MCP tools
Introduce a new domain for managing Lokalise team users including:
- CLI commands for listing, retrieving, updating, and deleting team users.
- Controller layer with validation and error handling.
- Service layer integrating Lokalise API for team user operations.
- Formatting of responses into readable markdown.
- MCP resource and tool registration supporting API and interactive usage.
Establishes a foundation for consistent and extensible team user management within the system.
* feat(queuedprocesses): add domain for monitoring async operations
Introduce a new queuedprocesses domain to support tracking and managing
background asynchronous processes within Lokalise projects. This includes:
- CLI commands for listing and retrieving queued process details with validation
- Controller layer for input validation, error handling, and response formatting
- Rich Markdown formatters presenting process status, details, and summaries
- Service layer encapsulating API communication with Lokalise SDK
- MCP resources enabling resource-based access to queued processes data
- Tools integration for MCP server with typed argument schemas and error handling
- Comprehensive TypeScript types and guards aligned with Lokalise SDK v9.0.0+
This domain provides a structured and user-friendly way to monitor various
async tasks such as file uploads, downloads, project imports/exports,
improving observability and operational control.
Closes #N/A
* refactor(prompts): expand and restructure MCP prompts with detailed schemas
Rebuilds the MCP prompt registration to provide comprehensive, structured
workflows for Lokalise operations using explicit, XML-like instructions
aligned with Claude 4 best practices.
- Replaces previous prompts with extensively detailed prompts covering
project management, language localization, key management, tasks, workflows,
team collaboration, compliance, and advanced workflows.
- Introduces strict Zod schemas defining argument validation and user-friendly
parameter naming to improve usability and robustness.
- Enhances prompt guidance with stepwise instructions, context, and output
formats to standardize responses and improve clarity.
- Enables parallel execution hints and comprehensive analysis steps for
efficiency and thorough reporting.
- Adds new complex workflows including file upload review, team onboarding,
automated review pipelines, process monitoring, and translation memory import.
This refactor significantly improves maintainability, clarity, and feature
coverage of prompts, setting a foundation for scalable, user-friendly
automation workflows within the MCP environment.
* feat(prompts): add workflows for post-upload and document extraction reviews
Introduce two new review workflows to improve translation task management:
- Add post-upload review workflow enabling creation of language-specific
review tasks for files already uploaded to the platform with flexible
assignee mapping and optional confirmation prior to task creation.
- Add document extraction review workflow that parses raw document content
into translation keys, creates them in bulk, and sets up translation
tasks with language-based assignee assignments.
Additionally, enhance key listing functionality by supporting filename-based
filtering to precisely select keys associated with specific files, improving
task scope accuracy.
These additions streamline review and translation setup processes for files
and document content, reducing manual overhead and enhancing assignment
flexibility.
* docs: update documentation
Provides a detailed, code-verified guide summarizing full MCP server
capabilities including 11 completed domains, 59 tools, 21 resources,
and 17 workflow prompts. Enhances project documentation with updated
architecture, usage examples, domain interfaces, and best practices to
support scalable development and onboarding. Updates metadata and
readme to reflect latest feature set and expanded domain coverage.
* chore(release): prepare release v1.0.4
---------
Co-authored-by: Abdallah Othman <abdallah.ali.hassan@gmail.com>
Co-authored-by: smithery-ai[bot] <194235850+smithery-ai[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent 79bd0b7 commit 01063a5
40 files changed
Lines changed: 7514 additions & 1475 deletions
File tree
- .github/workflows
- release
- src
- domains
- contributors
- keys
- queuedprocesses
- teamusers
- usergroups
- prompts
- server/transports
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
138 | 172 | | |
139 | 173 | | |
140 | 174 | | |
| |||
147 | 181 | | |
148 | 182 | | |
149 | 183 | | |
| 184 | + | |
| 185 | + | |
150 | 186 | | |
151 | | - | |
152 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
153 | 190 | | |
154 | 191 | | |
155 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
156 | 205 | | |
157 | | - | |
158 | | - | |
| 206 | + | |
| 207 | + | |
159 | 208 | | |
160 | | - | |
161 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
162 | 227 | | |
163 | 228 | | |
164 | 229 | | |
| |||
168 | 233 | | |
169 | 234 | | |
170 | 235 | | |
171 | | - | |
| 236 | + | |
172 | 237 | | |
173 | 238 | | |
174 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
2 | 47 | | |
3 | 48 | | |
4 | 49 | | |
| |||
89 | 134 | | |
90 | 135 | | |
91 | 136 | | |
| 137 | + | |
92 | 138 | | |
93 | 139 | | |
94 | 140 | | |
| |||
0 commit comments