diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml
new file mode 100644
index 0000000..ee45b7f
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,8 @@
+blank_issues_enabled: false
+contact_links:
+ - name: Question
+ url: https://github.com/eclipse-glsp/glsp/discussions
+ about: Please ask questions on the Eclipse GLSP discussions page.
+ - name: Create issue in GLSP umbrella project
+ url: https://github.com/eclipse-glsp/glsp/issues/new/choose
+ about: Please create new issues in the GLSP umbrella project, as we are tracking the issues for all components of GLSP there.
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 0000000..1d326d0
--- /dev/null
+++ b/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,29 @@
+
+
+#### What it does
+
+
+
+#### How to test
+
+
+
+#### Follow-ups
+
+
+
+#### Changelog
+
+
+
+- [ ] This PR should be mentioned in the changelog
+- [ ] This PR introduces a breaking change (if yes, provide more details below for the changelog and the migration guide)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..ae01de2
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,85 @@
+name: CI
+
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+on:
+ workflow_dispatch:
+ push:
+ branches: [main]
+ paths-ignore:
+ - '**/*.md'
+ - 'LICENSE'
+ - '.vscode/**'
+ pull_request:
+ branches: [main]
+ paths-ignore:
+ - '**/*.md'
+ - 'LICENSE'
+ - '.vscode/**'
+
+jobs:
+ build:
+ name: Build
+ timeout-minutes: 60
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ with:
+ node-version: 22.x
+ cache: pnpm
+ - name: Build
+ run: pnpm build
+ test:
+ name: Test
+ timeout-minutes: 60
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ with:
+ node-version: 22.x
+ cache: pnpm
+ - name: Test
+ run: pnpm test
+ lint:
+ name: Lint
+ timeout-minutes: 60
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ with:
+ node-version: 22.x
+ cache: pnpm
+ - name: Create eslint json report
+ run: pnpm lint:ci
+ - name: Create summary
+ if: always()
+ run: |
+ npm_config_yes=true npx github:10up/eslint-json-to-md#82ff16b --path ./eslint_report.json --output ./eslint_report.md
+ cat eslint_report.md >> $GITHUB_STEP_SUMMARY
+ coverage:
+ name: Coverage
+ timeout-minutes: 60
+ runs-on: ubuntu-22.04
+ if: github.ref == 'refs/heads/main'
+ steps:
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
+ with:
+ node-version: 22.x
+ cache: pnpm
+ - name: Run Coverage Tests
+ run: pnpm test:coverage
+ - name: Upload Coverage Report
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: coverage-report
+ path: coverage/
+ if: always()
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..749389f
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,67 @@
+# For most projects, this workflow file will not need changing; you simply need
+# to commit it to your repository.
+#
+# You may wish to alter this file to override the set of languages analyzed,
+# or to provide custom queries or build logic.
+#
+# ******** NOTE ********
+# We have attempted to detect the languages in your repository. Please check
+# the `language` matrix defined below to confirm you have the correct set of
+# supported CodeQL languages.
+#
+name: 'CodeQL'
+
+on:
+ workflow_dispatch:
+ schedule:
+ - cron: '26 0 * * 4' # At 00:26 on Thursday
+
+jobs:
+ analyze:
+ name: Analyze
+ runs-on: ubuntu-latest
+ permissions:
+ actions: read
+ contents: read
+ security-events: write
+
+ strategy:
+ fail-fast: false
+ matrix:
+ language: ['javascript']
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
+ # Learn more:
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
+ with:
+ languages: ${{ matrix.language }}
+ # If you wish to specify custom queries, you can do so here or in a config file.
+ # By default, queries listed here will override any specified in a config file.
+ # Prefix the list here with "+" to use these queries and those in the config file.
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
+
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
+ # If this step fails, then you should remove it and run the build manually (see below)
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
+
+ # βΉοΈ Command-line programs to run using the OS shell.
+ # π https://git.io/JvXDl
+
+ # βοΈ If the Autobuild fails above, remove it and uncomment the following three lines
+ # and modify them (or add more) to build your code if your project
+ # uses a compiled language
+
+ #- run: |
+ # make bootstrap
+ # make release
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@87557b9c84dde89fdd9b10e88954ac2f4248e463 # v4.36.1
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9d78d0c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+.idea/
+.metadata/
+coverage
+
+node_modules/
+lib/
+dist/
+artifacts/
+
+examples/workflow-standalone/app/*
+!examples/workflow-standalone/app/diagram.html
+!examples/workflow-standalone/app/example1.wf
+
+# Generated server bundles
+examples/*/wf-glsp-server-node.js
+examples/*/wf-glsp-server-node.js.map
+examples/*/wf-glsp-server-webworker.js
+examples/*/wf-glsp-server-webworker.js.map
+examples/*/mcp-service-worker.js
+examples/*/index.bundle.js
+examples/*/index.bundle.js.map
+
+*.ttf
+*.log
+*.jar
+
+!packages/client/client/src/lib
+*.tsbuildinfo
+eslint.xml
+eslint_report.json
+report.xml
+
+# Agent-specific files
+.claude/local.settings.json
+.claude/settings.local.json
+.claude/plans/
+CLAUDE.local.md
+.reviews/
+.worktrees/
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..73750b7
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,28 @@
+# Dependencies
+node_modules/
+
+# Build outputs
+lib/
+dist/
+coverage/
+.nyc_output/
+
+# Generated files
+*.min.js
+*.min.css
+examples/*/wf-glsp-server-webworker.js
+examples/*/wf-glsp-server-webworker.js.map
+examples/*/index.bundle.js
+examples/*/index.bundle.js.map
+
+# Lock files
+package-lock.json
+pnpm-lock.yaml
+
+# Logs
+*.log
+
+# Claude Code
+.claude/
+.reviews/
+.worktrees/
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..0ff4285
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1 @@
+"@eclipse-glsp/prettier-config"
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..a131279
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,59 @@
+# Community Code of Conduct
+
+Version 1.2
+
+August 19, 2020
+
+## Our Pledge
+
+
+In the interest of fostering an open and welcoming environment, we as community members, contributors, committers, and project leaders pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment include:
+
+- Using welcoming and inclusive language
+- Being respectful of differing viewpoints and experiences
+- Gracefully accepting constructive criticism
+- Focusing on what is best for the community
+- Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+- The use of sexualized language or imagery and unwelcome sexual attention or advances
+- Trolling, insulting/derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or electronic address, without explicit permission
+- Other conduct which could reasonably be considered inappropriate in a professional setting
+
+## Our Responsibilities
+
+With the support of the Eclipse Foundation staff (the βStaffβ), project committers and leaders are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
+
+Project committers and leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the Eclipse Foundation project or its community in public spaces. Examples of representing a project or community include posting via an official social media account, or acting as a project representative at an online or offline event. Representation of a project may be further defined and clarified by project committers, leaders, or the EMO.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the Staff at codeofconduct@eclipse.org. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The Staff is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
+
+Project committers or leaders who do not follow the Code of Conduct in good faith may face temporary or permanent repercussions as determined by the Staff.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
+
+For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
+
+
+
+

+
+
+---
+
+Note: Please see [here](https://www.eclipse.org/org/documents/Community_Code_of_Conduct.php) for the latest version of this document, hosted at the Eclipse Foundation
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..a7feb4c
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,46 @@
+# Contributing to Eclipse GLSP
+
+Thank you for your interest in the GLSP project!
+The following is a set of guidelines for contributing to GLSP.
+
+## Code of Conduct
+
+This project is governed by the [Eclipse Community Code of Conduct](https://github.com/eclipse/.github/blob/master/CODE_OF_CONDUCT.md).
+By participating, you are expected to uphold this code.
+
+## Communication
+
+The following communication channels are available:
+
+- [GitHub issues](https://github.com/eclipse-glsp/glsp/issues) - for bug reports, feature requests, etc.
+- [GitHub Discussions](https://github.com/eclipse-glsp/glsp/discussions) - for questions
+- [Developer mailing list](https://accounts.eclipse.org/mailing-list/glsp-dev) - for organizational issues (e.g. elections of new committers)
+
+In case you have a question, please look into the [GitHub Discussions](https://github.com/eclipse-glsp/glsp/discussions) first.
+If you don't find any answer there, feel free to start a new discussion or create a new [issue](https://github.com/eclipse-glsp/glsp/issues) to get help.
+
+Please create new issues only in the [GLSP umbrella project](https://github.com/eclipse-glsp/glsp), as we are tracking the issues for all components of GLSP there.
+
+## How to Contribute
+
+In order to contribute, please first open an issue in this project, irrespectively whether this bug or feature concerns the glsp-client, glsp-server, or one of the platform integrations.
+This issue should describe the bug you intend to fix or the feature you would like to add.
+Once you have your code ready for review, please open a pull request in the respective repository.
+A [committer of the GLSP project](https://projects.eclipse.org/projects/ecd.glsp/who) will then review your contribution and help to get it merged.
+
+Please note that before your pull request can be accepted, you must electronically sign the [Eclipse Contributor Agreement](https://www.eclipse.org/legal/ECA.php).
+For more information, see the [Eclipse Foundation Project Handbook](https://www.eclipse.org/projects/handbook/#resources-commit).
+
+### Branch names and commit messages
+
+If you are an [elected committer of the GLSP project](https://projects.eclipse.org/projects/ecd.glsp/who) please create a branch in the respective repository.
+Otherwise please fork and create a branch in your fork for the pull request.
+
+The branch name should be in the form `issues/{issue_number}`, e.g. `issues/123`. So please create an issue before creating a pull request.
+All branches with this naming schema will be deleted after they are merged.
+
+In the commit message you should also reference the corresponding issue, e.g. using `closes https://github.com/eclipse-glsp/glsp/issues/241`, thus allowing [auto close of issues](https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords).
+Please use the absolute URL of the issue instead of just `#241`, as all issues are kept in , whereas the pull requests are opened against the respective repositories, such as .
+Using the absolute URL will still allow to correctly reference issues irrespectively where you open the pull request.
+
+Please make sure you read the [guide for a good commit message](https://chris.beams.io/posts/git-commit/).
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e079b08
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,642 @@
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v. 2.0 which is available at
+https://www.eclipse.org/legal/epl-2.0, or GNU General Public License, version 2
+with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.
+
+# Eclipse Public License - v 2.0
+
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE
+ PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
+ OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+ 1. DEFINITIONS
+
+ "Contribution" means:
+
+ a) in the case of the initial Contributor, the initial content
+ Distributed under this Agreement, and
+
+ b) in the case of each subsequent Contributor:
+ i) changes to the Program, and
+ ii) additions to the Program;
+ where such changes and/or additions to the Program originate from
+ and are Distributed by that particular Contributor. A Contribution
+ "originates" from a Contributor if it was added to the Program by
+ such Contributor itself or anyone acting on such Contributor's behalf.
+ Contributions do not include changes or additions to the Program that
+ are not Modified Works.
+
+ "Contributor" means any person or entity that Distributes the Program.
+
+ "Licensed Patents" mean patent claims licensable by a Contributor which
+ are necessarily infringed by the use or sale of its Contribution alone
+ or when combined with the Program.
+
+ "Program" means the Contributions Distributed in accordance with this
+ Agreement.
+
+ "Recipient" means anyone who receives the Program under this Agreement
+ or any Secondary License (as applicable), including Contributors.
+
+ "Derivative Works" shall mean any work, whether in Source Code or other
+ form, that is based on (or derived from) the Program and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship.
+
+ "Modified Works" shall mean any work in Source Code or other form that
+ results from an addition to, deletion from, or modification of the
+ contents of the Program, including, for purposes of clarity any new file
+ in Source Code form that contains any contents of the Program. Modified
+ Works shall not include works that contain only declarations,
+ interfaces, types, classes, structures, or files of the Program solely
+ in each case in order to link to, bind by name, or subclass the Program
+ or Modified Works thereof.
+
+ "Distribute" means the acts of a) distributing or b) making available
+ in any manner that enables the transfer of a copy.
+
+ "Source Code" means the form of a Program preferred for making
+ modifications, including but not limited to software source code,
+ documentation source, and configuration files.
+
+ "Secondary License" means either the GNU General Public License,
+ Version 2.0, or any later versions of that license, including any
+ exceptions or additional permissions as identified by the initial
+ Contributor.
+
+ 2. GRANT OF RIGHTS
+
+ a) Subject to the terms of this Agreement, each Contributor hereby
+ grants Recipient a non-exclusive, worldwide, royalty-free copyright
+ license to reproduce, prepare Derivative Works of, publicly display,
+ publicly perform, Distribute and sublicense the Contribution of such
+ Contributor, if any, and such Derivative Works.
+
+ b) Subject to the terms of this Agreement, each Contributor hereby
+ grants Recipient a non-exclusive, worldwide, royalty-free patent
+ license under Licensed Patents to make, use, sell, offer to sell,
+ import and otherwise transfer the Contribution of such Contributor,
+ if any, in Source Code or other form. This patent license shall
+ apply to the combination of the Contribution and the Program if, at
+ the time the Contribution is added by the Contributor, such addition
+ of the Contribution causes such combination to be covered by the
+ Licensed Patents. The patent license shall not apply to any other
+ combinations which include the Contribution. No hardware per se is
+ licensed hereunder.
+
+ c) Recipient understands that although each Contributor grants the
+ licenses to its Contributions set forth herein, no assurances are
+ provided by any Contributor that the Program does not infringe the
+ patent or other intellectual property rights of any other entity.
+ Each Contributor disclaims any liability to Recipient for claims
+ brought by any other entity based on infringement of intellectual
+ property rights or otherwise. As a condition to exercising the
+ rights and licenses granted hereunder, each Recipient hereby
+ assumes sole responsibility to secure any other intellectual
+ property rights needed, if any. For example, if a third party
+ patent license is required to allow Recipient to Distribute the
+ Program, it is Recipient's responsibility to acquire that license
+ before distributing the Program.
+
+ d) Each Contributor represents that to its knowledge it has
+ sufficient copyright rights in its Contribution, if any, to grant
+ the copyright license set forth in this Agreement.
+
+ e) Notwithstanding the terms of any Secondary License, no
+ Contributor makes additional grants to any Recipient (other than
+ those set forth in this Agreement) as a result of such Recipient's
+ receipt of the Program under the terms of a Secondary License
+ (if permitted under the terms of Section 3).
+
+ 3. REQUIREMENTS
+
+ 3.1 If a Contributor Distributes the Program in any form, then:
+
+ a) the Program must also be made available as Source Code, in
+ accordance with section 3.2, and the Contributor must accompany
+ the Program with a statement that the Source Code for the Program
+ is available under this Agreement, and informs Recipients how to
+ obtain it in a reasonable manner on or through a medium customarily
+ used for software exchange; and
+
+ b) the Contributor may Distribute the Program under a license
+ different than this Agreement, provided that such license:
+ i) effectively disclaims on behalf of all other Contributors all
+ warranties and conditions, express and implied, including
+ warranties or conditions of title and non-infringement, and
+ implied warranties or conditions of merchantability and fitness
+ for a particular purpose;
+
+ ii) effectively excludes on behalf of all other Contributors all
+ liability for damages, including direct, indirect, special,
+ incidental and consequential damages, such as lost profits;
+
+ iii) does not attempt to limit or alter the recipients' rights
+ in the Source Code under section 3.2; and
+
+ iv) requires any subsequent distribution of the Program by any
+ party to be under a license that satisfies the requirements
+ of this section 3.
+
+ 3.2 When the Program is Distributed as Source Code:
+
+ a) it must be made available under this Agreement, or if the
+ Program (i) is combined with other material in a separate file or
+ files made available under a Secondary License, and (ii) the initial
+ Contributor attached to the Source Code the notice described in
+ Exhibit A of this Agreement, then the Program may be made available
+ under the terms of such Secondary Licenses, and
+
+ b) a copy of this Agreement must be included with each copy of
+ the Program.
+
+ 3.3 Contributors may not remove or alter any copyright, patent,
+ trademark, attribution notices, disclaimers of warranty, or limitations
+ of liability ("notices") contained within the Program from any copy of
+ the Program which they Distribute, provided that Contributors may add
+ their own appropriate notices.
+
+ 4. COMMERCIAL DISTRIBUTION
+
+ Commercial distributors of software may accept certain responsibilities
+ with respect to end users, business partners and the like. While this
+ license is intended to facilitate the commercial use of the Program,
+ the Contributor who includes the Program in a commercial product
+ offering should do so in a manner which does not create potential
+ liability for other Contributors. Therefore, if a Contributor includes
+ the Program in a commercial product offering, such Contributor
+ ("Commercial Contributor") hereby agrees to defend and indemnify every
+ other Contributor ("Indemnified Contributor") against any losses,
+ damages and costs (collectively "Losses") arising from claims, lawsuits
+ and other legal actions brought by a third party against the Indemnified
+ Contributor to the extent caused by the acts or omissions of such
+ Commercial Contributor in connection with its distribution of the Program
+ in a commercial product offering. The obligations in this section do not
+ apply to any claims or Losses relating to any actual or alleged
+ intellectual property infringement. In order to qualify, an Indemnified
+ Contributor must: a) promptly notify the Commercial Contributor in
+ writing of such claim, and b) allow the Commercial Contributor to control,
+ and cooperate with the Commercial Contributor in, the defense and any
+ related settlement negotiations. The Indemnified Contributor may
+ participate in any such claim at its own expense.
+
+ For example, a Contributor might include the Program in a commercial
+ product offering, Product X. That Contributor is then a Commercial
+ Contributor. If that Commercial Contributor then makes performance
+ claims, or offers warranties related to Product X, those performance
+ claims and warranties are such Commercial Contributor's responsibility
+ alone. Under this section, the Commercial Contributor would have to
+ defend claims against the other Contributors related to those performance
+ claims and warranties, and if a court requires any other Contributor to
+ pay any damages as a result, the Commercial Contributor must pay
+ those damages.
+
+ 5. NO WARRANTY
+
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
+ PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
+ BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
+ TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
+ PURPOSE. Each Recipient is solely responsible for determining the
+ appropriateness of using and distributing the Program and assumes all
+ risks associated with its exercise of rights under this Agreement,
+ including but not limited to the risks and costs of program errors,
+ compliance with applicable laws, damage to or loss of data, programs
+ or equipment, and unavailability or interruption of operations.
+
+ 6. DISCLAIMER OF LIABILITY
+
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
+ PERMITTED BY APPLICABLE LAW, NEITHER RECIPIENT NOR ANY CONTRIBUTORS
+ SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
+ PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
+ EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGES.
+
+ 7. GENERAL
+
+ If any provision of this Agreement is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability of
+ the remainder of the terms of this Agreement, and without further
+ action by the parties hereto, such provision shall be reformed to the
+ minimum extent necessary to make such provision valid and enforceable.
+
+ If Recipient institutes patent litigation against any entity
+ (including a cross-claim or counterclaim in a lawsuit) alleging that the
+ Program itself (excluding combinations of the Program with other software
+ or hardware) infringes such Recipient's patent(s), then such Recipient's
+ rights granted under Section 2(b) shall terminate as of the date such
+ litigation is filed.
+
+ All Recipient's rights under this Agreement shall terminate if it
+ fails to comply with any of the material terms or conditions of this
+ Agreement and does not cure such failure in a reasonable period of
+ time after becoming aware of such noncompliance. If all Recipient's
+ rights under this Agreement terminate, Recipient agrees to cease use
+ and distribution of the Program as soon as reasonably practicable.
+ However, Recipient's obligations under this Agreement and any licenses
+ granted by Recipient relating to the Program shall continue and survive.
+
+ Everyone is permitted to copy and distribute copies of this Agreement,
+ but in order to avoid inconsistency the Agreement is copyrighted and
+ may only be modified in the following manner. The Agreement Steward
+ reserves the right to publish new versions (including revisions) of
+ this Agreement from time to time. No one other than the Agreement
+ Steward has the right to modify this Agreement. The Eclipse Foundation
+ is the initial Agreement Steward. The Eclipse Foundation may assign the
+ responsibility to serve as the Agreement Steward to a suitable separate
+ entity. Each new version of the Agreement will be given a distinguishing
+ version number. The Program (including Contributions) may always be
+ Distributed subject to the version of the Agreement under which it was
+ received. In addition, after a new version of the Agreement is published,
+ Contributor may elect to Distribute the Program (including its
+ Contributions) under the new version.
+
+ Except as expressly stated in Sections 2(a) and 2(b) above, Recipient
+ receives no rights or licenses to the intellectual property of any
+ Contributor under this Agreement, whether expressly, by implication,
+ estoppel or otherwise. All rights in the Program not expressly granted
+ under this Agreement are reserved. Nothing in this Agreement is intended
+ to be enforceable by any entity that is not a Contributor or Recipient.
+ No third-party beneficiary rights are created under this Agreement.
+
+ Exhibit A - Form of Secondary Licenses Notice
+
+ "This Source Code may also be made available under the following
+ Secondary Licenses when the conditions for such availability set forth
+ in the Eclipse Public License, v. 2.0 are satisfied: {name license(s),
+ version(s), and exceptions or additional permissions here}."
+
+ Simply including a copy of this Agreement, including this Exhibit A
+ is not sufficient to license the Source Code under Secondary Licenses.
+
+ If it is not possible or desirable to put the notice in a particular
+ file, then You may include the notice in a location (such as a LICENSE
+ file in a relevant directory) where a recipient would be likely to
+ look for such a notice.
+
+ You may add additional accurate notices of copyright ownership.
+
+---
+
+## The GNU General Public License (GPL) Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor
+ Boston, MA 02110-1335
+ USA
+
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your freedom to
+ share and change it. By contrast, the GNU General Public License is
+ intended to guarantee your freedom to share and change free software--to
+ make sure the software is free for all its users. This General Public
+ License applies to most of the Free Software Foundation's software and
+ to any other program whose authors commit to using it. (Some other Free
+ Software Foundation software is covered by the GNU Library General
+ Public License instead.) You can apply it to your programs, too.
+
+ When we speak of free software, we are referring to freedom, not price.
+ Our General Public Licenses are designed to make sure that you have the
+ freedom to distribute copies of free software (and charge for this
+ service if you wish), that you receive source code or can get it if you
+ want it, that you can change the software or use pieces of it in new
+ free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid anyone
+ to deny you these rights or to ask you to surrender the rights. These
+ restrictions translate to certain responsibilities for you if you
+ distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether gratis
+ or for a fee, you must give the recipients all the rights that you have.
+ You must make sure that they, too, receive or can get the source code.
+ And you must show them these terms so they know their rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+ (2) offer you this license which gives you legal permission to copy,
+ distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+ that everyone understands that there is no warranty for this free
+ software. If the software is modified by someone else and passed on, we
+ want its recipients to know that what they have is not the original, so
+ that any problems introduced by others will not reflect on the original
+ authors' reputations.
+
+ Finally, any free program is threatened constantly by software patents.
+ We wish to avoid the danger that redistributors of a free program will
+ individually obtain patent licenses, in effect making the program
+ proprietary. To prevent this, we have made it clear that any patent must
+ be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+ modification follow.
+
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains a
+ notice placed by the copyright holder saying it may be distributed under
+ the terms of this General Public License. The "Program", below, refers
+ to any such program or work, and a "work based on the Program" means
+ either the Program or any derivative work under copyright law: that is
+ to say, a work containing the Program or a portion of it, either
+ verbatim or with modifications and/or translated into another language.
+ (Hereinafter, translation is included without limitation in the term
+ "modification".) Each licensee is addressed as "you".
+
+ Activities other than copying, distribution and modification are not
+ covered by this License; they are outside its scope. The act of running
+ the Program is not restricted, and the output from the Program is
+ covered only if its contents constitute a work based on the Program
+ (independent of having been made by running the Program). Whether that
+ is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's source
+ code as you receive it, in any medium, provided that you conspicuously
+ and appropriately publish on each copy an appropriate copyright notice
+ and disclaimer of warranty; keep intact all the notices that refer to
+ this License and to the absence of any warranty; and give any other
+ recipients of the Program a copy of this License along with the Program.
+
+ You may charge a fee for the physical act of transferring a copy, and
+ you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion of
+ it, thus forming a work based on the Program, and copy and distribute
+ such modifications or work under the terms of Section 1 above, provided
+ that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any part
+ thereof, to be licensed as a whole at no charge to all third parties
+ under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a notice
+ that there is no warranty (or else, saying that you provide a
+ warranty) and that users may redistribute the program under these
+ conditions, and telling the user how to view a copy of this License.
+ (Exception: if the Program itself is interactive but does not
+ normally print such an announcement, your work based on the Program
+ is not required to print an announcement.)
+
+ These requirements apply to the modified work as a whole. If
+ identifiable sections of that work are not derived from the Program, and
+ can be reasonably considered independent and separate works in
+ themselves, then this License, and its terms, do not apply to those
+ sections when you distribute them as separate works. But when you
+ distribute the same sections as part of a whole which is a work based on
+ the Program, the distribution of the whole must be on the terms of this
+ License, whose permissions for other licensees extend to the entire
+ whole, and thus to each and every part regardless of who wrote it.
+
+ Thus, it is not the intent of this section to claim rights or contest
+ your rights to work written entirely by you; rather, the intent is to
+ exercise the right to control the distribution of derivative or
+ collective works based on the Program.
+
+ In addition, mere aggregation of another work not based on the Program
+ with the Program (or with a work based on the Program) on a volume of a
+ storage or distribution medium does not bring the other work under the
+ scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+ under Section 2) in object code or executable form under the terms of
+ Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections 1
+ and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your cost
+ of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer to
+ distribute corresponding source code. (This alternative is allowed
+ only for noncommercial distribution and only if you received the
+ program in object code or executable form with such an offer, in
+ accord with Subsection b above.)
+
+ The source code for a work means the preferred form of the work for
+ making modifications to it. For an executable work, complete source code
+ means all the source code for all modules it contains, plus any
+ associated interface definition files, plus the scripts used to control
+ compilation and installation of the executable. However, as a special
+ exception, the source code distributed need not include anything that is
+ normally distributed (in either source or binary form) with the major
+ components (compiler, kernel, and so on) of the operating system on
+ which the executable runs, unless that component itself accompanies the
+ executable.
+
+ If distribution of executable or object code is made by offering access
+ to copy from a designated place, then offering equivalent access to copy
+ the source code from the same place counts as distribution of the source
+ code, even though third parties are not compelled to copy the source
+ along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+ except as expressly provided under this License. Any attempt otherwise
+ to copy, modify, sublicense or distribute the Program is void, and will
+ automatically terminate your rights under this License. However, parties
+ who have received copies, or rights, from you under this License will
+ not have their licenses terminated so long as such parties remain in
+ full compliance.
+
+ 5. You are not required to accept this License, since you have not
+ signed it. However, nothing else grants you permission to modify or
+ distribute the Program or its derivative works. These actions are
+ prohibited by law if you do not accept this License. Therefore, by
+ modifying or distributing the Program (or any work based on the
+ Program), you indicate your acceptance of this License to do so, and all
+ its terms and conditions for copying, distributing or modifying the
+ Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+ Program), the recipient automatically receives a license from the
+ original licensor to copy, distribute or modify the Program subject to
+ these terms and conditions. You may not impose any further restrictions
+ on the recipients' exercise of the rights granted herein. You are not
+ responsible for enforcing compliance by third parties to this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+ infringement or for any other reason (not limited to patent issues),
+ conditions are imposed on you (whether by court order, agreement or
+ otherwise) that contradict the conditions of this License, they do not
+ excuse you from the conditions of this License. If you cannot distribute
+ so as to satisfy simultaneously your obligations under this License and
+ any other pertinent obligations, then as a consequence you may not
+ distribute the Program at all. For example, if a patent license would
+ not permit royalty-free redistribution of the Program by all those who
+ receive copies directly or indirectly through you, then the only way you
+ could satisfy both it and this License would be to refrain entirely from
+ distribution of the Program.
+
+ If any portion of this section is held invalid or unenforceable under
+ any particular circumstance, the balance of the section is intended to
+ apply and the section as a whole is intended to apply in other
+ circumstances.
+
+ It is not the purpose of this section to induce you to infringe any
+ patents or other property right claims or to contest validity of any
+ such claims; this section has the sole purpose of protecting the
+ integrity of the free software distribution system, which is implemented
+ by public license practices. Many people have made generous
+ contributions to the wide range of software distributed through that
+ system in reliance on consistent application of that system; it is up to
+ the author/donor to decide if he or she is willing to distribute
+ software through any other system and a licensee cannot impose that choice.
+
+ This section is intended to make thoroughly clear what is believed to be
+ a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+ certain countries either by patents or by copyrighted interfaces, the
+ original copyright holder who places the Program under this License may
+ add an explicit geographical distribution limitation excluding those
+ countries, so that distribution is permitted only in or among countries
+ not thus excluded. In such case, this License incorporates the
+ limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new
+ versions of the General Public License from time to time. Such new
+ versions will be similar in spirit to the present version, but may
+ differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the Program
+ specifies a version number of this License which applies to it and "any
+ later version", you have the option of following the terms and
+ conditions either of that version or of any later version published by
+ the Free Software Foundation. If the Program does not specify a version
+ number of this License, you may choose any version ever published by the
+ Free Software Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+ programs whose distribution conditions are different, write to the
+ author to ask for permission. For software which is copyrighted by the
+ Free Software Foundation, write to the Free Software Foundation; we
+ sometimes make exceptions for this. Our decision will be guided by the
+ two goals of preserving the free status of all derivatives of our free
+ software and of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
+ WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+ OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
+ EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
+ YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+ NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+ AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
+ THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
+ OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+ possible use to the public, the best way to achieve this is to make it
+ free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest to
+ attach them to the start of each source file to most effectively convey
+ the exclusion of warranty; and each file should have at least the
+ "copyright" line and a pointer to where the full notice is found.
+
+ One line to give the program's name and a brief idea of what it does.
+ Copyright (C)
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
+
+ Also add information on how to contact you by electronic and paper mail.
+
+ If the program is interactive, make it output a short notice like this
+ when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
+ `show w'. This is free software, and you are welcome to redistribute
+ it under certain conditions; type `show c' for details.
+
+ The hypothetical commands `show w' and `show c' should show the
+ appropriate parts of the General Public License. Of course, the commands
+ you use may be called something other than `show w' and `show c'; they
+ could even be mouse-clicks or menu items--whatever suits your program.
+
+ You should also get your employer (if you work as a programmer) or your
+ school, if any, to sign a "copyright disclaimer" for the program, if
+ necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
+ program `Gnomovision' (which makes passes at compilers) written by
+ James Hacker.
+
+ signature of Ty Coon, 1 April 1989
+ Ty Coon, President of Vice
+
+ This General Public License does not permit incorporating your program
+ into proprietary programs. If your program is a subroutine library, you
+ may consider it more useful to permit linking proprietary applications
+ with the library. If this is what you want to do, use the GNU Library
+ General Public License instead of this License.
+
+---
+
+## CLASSPATH EXCEPTION
+
+ Linking this library statically or dynamically with other modules is
+ making a combined work based on this library. Thus, the terms and
+ conditions of the GNU General Public License version 2 cover the whole
+ combination.
+
+ As a special exception, the copyright holders of this library give you
+ permission to link this library with independent modules to produce an
+ executable, regardless of the license terms of these independent
+ modules, and to copy and distribute the resulting executable under
+ terms of your choice, provided that you also meet, for each linked
+ independent module, the terms and conditions of the license of that
+ module. An independent module is a module which is not derived from or
+ based on this library. If you modify this library, you may extend this
+ exception to your version of the library, but you are not obligated to
+ do so. If you do not wish to do so, delete this exception statement
+ from your version.
diff --git a/README.md b/README.md
index 3dee219..5ef6fa4 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,113 @@
-# glsp-core
-Core framework (web-based client and TypeScript/Node server) of the graphical language server platform
+# Eclipse GLSP - Core
+
+The core framework of the [Graphical Language Server Platform (GLSP)](https://github.com/eclipse-glsp/glsp): a web-based diagram client framework (based on [Eclipse Sprotty](https://github.com/eclipse/sprotty)) and a TypeScript/Node-based server framework, together with the shared protocol, common development tooling, and the Workflow diagram examples.
+
+This monorepo consolidates the formerly separate `glsp-client`, `glsp-server-node`, and `glsp` (dev-packages) repositories into a single, self-bootstrapping pnpm workspace.
+
+## Structure
+
+The workspace is organized into three groups:
+
+### `packages/client` β web-based diagram client
+
+- [`@eclipse-glsp/protocol`](packages/client/protocol): Generic client-server communication protocol
+- [`@eclipse-glsp/sprotty`](packages/client/glsp-sprotty): Sprotty integration layer providing base bindings and re-exports
+- [`@eclipse-glsp/client`](packages/client/client): Sprotty-based GLSP client
+
+### `packages/server` β TypeScript/Node server
+
+- [`@eclipse-glsp/graph`](packages/server/graph): TypeScript-based implementation of the graphical model used in GLSP (GModel)
+- [`@eclipse-glsp/server`](packages/server/server): Base framework for building GLSP servers
+- [`@eclipse-glsp/layout-elk`](packages/server/layout-elk): ELK-based automatic layout
+- [`@eclipse-glsp/server-mcp`](packages/server/server-mcp): Model Context Protocol (MCP) integration for GLSP servers
+
+The server's main target environment is Node, but all components are implemented in an isomorphic fashion and also provide an entrypoint to target browser environments (e.g. running the server in a web worker).
+
+### `dev-packages` β shared development tooling
+
+- [`@eclipse-glsp/cli`](dev-packages/cli): Helpful scripts and commands for developing GLSP components and release engineering
+- [`@eclipse-glsp/config`](dev-packages/config), [`@eclipse-glsp/config-test`](dev-packages/config-test), [`@eclipse-glsp/dev`](dev-packages/dev): Shared TypeScript, ESLint, Prettier, and test configuration meta-packages
+- [`@eclipse-glsp/ts-config`](dev-packages/ts-config), [`@eclipse-glsp/eslint-config`](dev-packages/eslint-config), [`@eclipse-glsp/prettier-config`](dev-packages/prettier-config), [`@eclipse-glsp/vitest-config`](dev-packages/vitest-config): The individual shared configurations
+
+These dev-packages provide all build/test/lint tooling consumed in this repository β glsp-core is fully self-bootstrapping.
+
+### `examples` β Workflow diagram example
+
+- [`@eclipse-glsp-examples/workflow-glsp`](examples/workflow-glsp) and [`workflow-standalone`](examples/workflow-standalone): Workflow client customizations and the standalone example application (Node & Browser mode)
+- [`@eclipse-glsp-examples/workflow-server`](examples/workflow-server) and the bundled/MCP-demo variants: Workflow GLSP example server
+
+## Developer Documentation
+
+### First time setup
+
+- Install [node.js](https://nodejs.org/) (requires Node v22.18+)
+- Install pnpm: (use pnpm 11+); a recent pnpm automatically switches to the version pinned in the `packageManager` field
+- Clone this repository
+- Install dependencies: `pnpm i` or `pnpm i --frozen-lockfile`
+
+### Build & Testing
+
+- Build (all packages): `pnpm build`
+- Test (all packages): `pnpm test`
+- Lint (all packages): `pnpm lint`
+- Check license headers: `pnpm headers:check`
+- Clean (all packages): `pnpm clean`
+- Full validation (build + lint + format + headers + test): `pnpm check:all`
+- Auto-fix lint/format/headers: `pnpm fix:all`
+
+### GLSP CLI
+
+The `glsp` command from [`@eclipse-glsp/cli`](dev-packages/cli) provides repo-level tooling β license-header checks, index generation, dependency-ordered and multi-repo management, and release engineering. Several root scripts (`headers:check`, `publish:next`, β¦) delegate to it. See the [`@eclipse-glsp/cli` README](dev-packages/cli/README.md) for the full command reference.
+
+## Workflow Diagram Example
+
+> **[Try it online](https://eclipse-glsp.github.io/glsp-client/diagram.html)** β a live deployment of the browser example running on GitHub Pages.
+
+The workflow diagram is a consistent example provided by all GLSP components. It implements a simple flow chart diagram editor with different types of nodes and edges. The example can be used to try out different GLSP features, as well as several available integrations with IDE platforms (Theia, VSCode, Eclipse, Standalone). As the example is fully open source, you can also use it as a blueprint for a custom implementation of a GLSP diagram editor. See [our project website](https://www.eclipse.org/glsp/documentation/#workflowoverview) for an overview.
+
+### How to start the Workflow Diagram example
+
+After `pnpm build`, the standalone example can be run in two modes:
+
+- **Node mode** β The client connects to a GLSP server via WebSocket. The example server is part of this workspace and is started automatically, so no extra setup is needed.
+
+ ```bash
+ pnpm dev # watch client + start the example server + dev server
+ pnpm standalone start # serve a production build against the example server
+ ```
+
+- **Browser mode** β The GLSP server runs as a Web Worker directly in the browser. No external server process is needed.
+
+ ```bash
+ pnpm dev:browser # watch sources + dev server
+ pnpm standalone start:browser # serve a production build
+ ```
+
+The example server can also be started on its own β WebSocket (default) or socket:
+
+```bash
+pnpm server dev # watch mode, WebSocket (port 8081)
+pnpm server start # run the built bundle, WebSocket (port 8081)
+pnpm server dev:socket # watch mode, socket (port 5007)
+pnpm server start:socket # run the built bundle, socket (port 5007)
+```
+
+### Using an external server
+
+To run the client against a GLSP server you start yourself β for example the [Java-based workflow server](https://github.com/eclipse-glsp/glsp-server#workflow-diagram-example) listening on `ws://localhost:8081/workflow` β launch only the client with a bare `--external-server` (no built-in server is started):
+
+```bash
+pnpm dev --external-server # watch client only, connect to your running server
+pnpm standalone start --external-server # serve the built client only, connect to your running server
+```
+
+See the [`workflow-standalone` README](examples/workflow-standalone/README.md) for all `start`/`dev` flags.
+
+### MCP demo
+
+The workflow example also ships a small demo that drives a GLSP diagram over the [Model Context Protocol](https://modelcontextprotocol.io) (MCP): an in-browser GLSP server exposed as MCP tools that an AI client can call. See the [`workflow-server-mcp-demo` README](examples/workflow-server-mcp-demo/README.md) for how to run it and what it exercises.
+
+## More information
+
+For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
+If you have questions, please raise them in the [discussions](https://github.com/eclipse-glsp/glsp/discussions) and have a look at our [communication and support options](https://www.eclipse.org/glsp/contact/).
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..e15da4e
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,7 @@
+# Eclipse GLSP Vulnerability Reporting Policy
+
+If you think or suspect that you have discovered a new security vulnerability in this project, please do not disclose it on GitHub, e.g. in an issue, a PR, or a discussion. Any such disclosure will be removed/deleted on sight, to promote orderly disclosure, as per the Eclipse Foundation Security Policy (1).
+
+Instead, please report any potential vulnerability to the Eclipse Foundation Security Team. Make sure to provide a concise description of the issue, a CWE, and other supporting information.
+
+(1) Eclipse Foundation Vulnerability Reporting Policy:
diff --git a/dev-packages/cli/README.md b/dev-packages/cli/README.md
new file mode 100644
index 0000000..d0791c4
--- /dev/null
+++ b/dev-packages/cli/README.md
@@ -0,0 +1,491 @@
+# Eclipse GLSP - CLI
+
+The `@eclipse-glsp/cli` package provides helpful scripts and commands for extension and application development.
+The contributed `glsp`, is a command line tool that offers all contributed commands.
+
+## Getting Started
+
+Install `@eclipse-glsp/cli` as a dev dependency in your application.
+
+```bash
+pnpm add --save-dev @eclipse-glsp/cli
+```
+
+## Usage
+
+```console
+Usage: glsp [options] [command]
+
+Options:
+ -V, --version output the version number
+ -h, --help display help for command
+
+Commands:
+ checkHeaders [options] Validates the copyright year range (end year) of license header files
+ updateNext|u [options] [rootDir] Updates all `next` dependencies in GLSP project to the latest version
+ generateIndex [options] Generate index files in a given source directory.
+ releng Commands for GLSP release engineering (Linux only, intended for CI/Maintainer use).
+ repo Multi-repository management for GLSP projects
+ help [command] display help for command
+```
+
+## checkHeaders
+
+The `checkHeaders` command can be used to validate the copyright year (range) of license headers.
+It checks for each file (matching the include pattern) whether the defined copyright range is in line with the first and last modification date in the git repository.
+Found violations are printed to the console and can be fixed automatically.
+The validation check can be restricted to pending changes and/or the last commit e.g. to validate a commit before creating a PR.
+
+```console
+$ glsp checkHeaders -h
+
+Usage: glsp checkHeaders [options]
+
+Validates the copyright year range (end year) of license header files
+
+Arguments:
+ rootDir The starting directory for the check
+
+Options:
+ -t, --type The scope of the check. In addition to a full recursive check, is also possible to only
+ consider pending changes or the last commit (choices: "full", "changes", "lastCommit",
+ default: "full")
+ -f, --fileExtensions File extensions that should be checked (default: ["ts","tsx"])
+ -e, --exclude File patterns that should be excluded from the check. New exclude patterns are added to
+ the default patterns (default: [**/@(node_modules|lib|dist|bundle)/**])
+ --no-exclude-defaults Disables the default excludes patterns. Only explicitly passed exclude patterns (-e,
+ --exclude) are considered
+ -j, --json Also persist validation results as json file (default: false)
+ -a, --autoFix Auto apply & commit fixes without prompting the user (default: false)
+ -h, --help display help for command
+```
+
+## updateNext
+
+```console
+$ glsp updateNext -h
+Usage: glsp updateNext|u [options] [rootDir]
+
+Updates all `next` dependencies in GLSP project to the latest version
+
+Arguments:
+ rootDir The repository root (default: "")
+
+Options:
+ -v, --verbose Enable verbose (debug) log output (default: false)
+ -h, --help display help for command
+```
+
+## generateIndex
+
+Use this command to create an index file of all sources for a given directory and all it's sub directories.
+
+```console
+$ glsp generateIndex -h
+Usage: glsp generateIndex [options]
+
+Generate index files in a given source directory.
+
+Arguments:
+ rootDir The source directory for index generation.
+
+Options:
+ -s, --singleIndex Generate a single index file in the source directory instead of indices in each
+ sub-directory (default: false)
+ -f, --forceOverwrite Overwrite existing index files and remove them if there are no entries (default: false)
+ -m, --match [match patterns...] File patterns to consider during indexing (default: ["**/*.ts","**/*.tsx"])
+ -i, --ignore [ignore patterns...] File patterns to ignore during indexing (default:
+ ["**/*.spec.ts","**/*.spec.tsx","**/*.d.ts"])
+ --style Import Style (choices: "commonjs", "esm", default: "commonjs")
+ --ignoreFile The file that is used to specify patterns that should be ignored during indexing (default:
+ ".indexignore")
+ -v, --verbose Generate verbose output during generation (default: false)
+ -h, --help display help for command
+```
+
+## releng
+
+Commands for GLSP release engineering.
+These commands are intended for CI usage and direct usage by Eclipse GLSP committers.
+They are not general-purpose commands. Subcommands might rely on tools and CLI commands that are only available in
+Linux environments.
+
+```console
+$ glsp releng -h
+Usage: glsp releng [options] [command]
+
+Commands for GLSP release engineering (Linux only, intended for CI/Maintainer use).
+
+Options:
+ -h, --help display help for command
+
+Commands:
+ version [options] [customVersion] Set the version of all packages in a GLSP repository
+ prepare [options] [customVersion] Prepare a new release for a GLSP component (version bump, changelog, PR
+ creation ...)
+ publish [options] Publish all workspace packages of a GLSP repository
+ help [command] display help for command
+```
+
+### version
+
+Command to bump the version of all packages in a GLSP repository.
+This bumps the version of all workspace packages (the root `package.json` version is the source of truth).
+In addition, external GLSP dependencies are considered and bumped as well; `workspace:` ranges are preserved.
+The glsp repository type ("glsp-client", "glsp-server-node" etc.) is auto detected from the given repository path.
+If the command is invoked in a non-GLSP repository it will fail.
+
+```console
+$ glsp releng version -h
+Usage: glsp releng version [options] [customVersion]
+
+Set the version of all packages in a GLSP repository
+
+Arguments:
+ versionType The version type (choices: "major", "minor", "patch", "custom", "next")
+ customVersion Custom version number. Will be ignored if the release type is not "custom"
+
+Options:
+ -v, --verbose Enable verbose (debug) log output (default: false)
+ -r, --repoDir Path to the component repository (default:
+ "")
+ -h, --help display help for command
+```
+
+### prepare
+
+Prepares a new release for a GLSP repository.
+This includes bumping the version, updating the changelog, commit & push the changes
+and opening a PR for the release.
+
+The glsp repository type ("glsp-client", "glsp-server-node" etc.) is auto detected from the given repository path.
+If the command is invoked in a non-GLSP repository it will fail.
+
+```console
+$ glsp releng prepare -h
+Usage: glsp releng prepare [options] [customVersion]
+
+Prepare a new release for a GLSP component (version bump, changelog, PR creation ...)
+
+Arguments:
+ versionType The version type (choices: "major", "minor", "patch", "custom", "next")
+ customVersion Custom version number. Will be ignored if the release type is not "custom"
+
+Options:
+ -v, --verbose Enable verbose (debug) log output (default: false)
+ -r, --repoDir Path to the component repository (default:
+ "")
+ --no-push Do not push changes to remote git repository
+ -d, --draft Create a draft pull request (only if push is enabled) (default: false)
+ --no-check Skip initial checks for existing dependency versions
+ -h, --help display help for command
+```
+
+### publish
+
+Publishes all (public) workspace packages of a GLSP repository via `pnpm publish -r` (replaces `lerna publish`).
+
+- `next`: applies a canary version (`.`, e.g. `2.8.0-next.42`) to all
+ workspace packages and publishes them under the `next` dist-tag. Requires the full git history
+ (`fetch-depth: 0` in CI) to derive the commit count.
+- `latest`: publishes the current package versions under the `latest` dist-tag. Packages whose version
+ already exists on the registry are skipped.
+
+Publishing is delegated to `pnpm publish -r`, so `workspace:` dependency ranges are rewritten to exact
+versions; npm provenance/trusted publishing (`NPM_CONFIG_PROVENANCE`) is preserved.
+
+```console
+$ glsp releng publish -h
+Usage: glsp releng publish [options]
+
+Publish all workspace packages of a GLSP repository via `pnpm publish`
+
+Arguments:
+ distTag The npm dist-tag to publish under (choices: "next", "latest")
+
+Options:
+ -v, --verbose Enable verbose (debug) log output (default: false)
+ -r, --repoDir Path to the component repository (default: "")
+ --dry-run Derive versions and run `pnpm publish` in dry-run mode without applying changes (default: false)
+ --registry Publish to a custom npm registry (e.g. a local verdaccio for testing)
+ -h, --help display help for command
+```
+
+## repo
+
+Multi-repository workspace management for GLSP development.
+All repositories are expected to live as siblings in a shared workspace directory (e.g. `~/glsp/glsp-client`, `~/glsp/glsp-server-node`, etc.).
+Repositories are auto-discovered by scanning the workspace directory for known GLSP repo names.
+The workspace directory is resolved automatically by walking up from the current directory; it can be overridden with `--dir`.
+The clone protocol is auto-detected: if the GitHub CLI (`gh`) is installed and authenticated, `gh` is used; otherwise `https`.
+This can be overridden per command via `--protocol`.
+
+```bash
+$ glsp repo -h
+Usage: glsp repo [options] [command]
+
+Multi-repository management for GLSP projects
+
+Options:
+ -h, --help display help for command
+
+Commands:
+ clone [options] [repos...] Clone GLSP repositories
+ fork [options] Add fork remotes to already-cloned repositories
+ build [options] Build repositories (dependency-ordered)
+ link [options] Interlink repositories via pnpm-workspace.yaml link overrides
+ unlink [options] Remove the pnpm link overrides between repositories
+ pwd [options] Print resolved paths for all discovered repositories
+ log [options] Print the last commit for all discovered repositories
+ workspace Manage VS Code workspace files for GLSP projects
+ glsp Operations on the glsp repository
+ glsp-server-node|server-node Operations on the glsp-server-node repository
+ glsp-client|client Operations on the glsp-client repository
+ glsp-theia-integration|theia Operations on the glsp-theia-integration repository
+ glsp-vscode-integration|vscode Operations on the glsp-vscode-integration repository
+ glsp-eclipse-integration|eclipse Operations on the glsp-eclipse-integration repository
+ glsp-server|server-java Operations on the glsp-server repository
+ glsp-playwright|playwright Operations on the glsp-playwright repository
+ help [command] display help for command
+```
+
+### clone
+
+Clones GLSP repositories into the workspace directory.
+Repositories can be specified as positional arguments, via `--preset`, or interactively with `--interactive`.
+
+```console
+$ glsp repo clone -h
+Usage: glsp repo clone [options] [repos...]
+
+Clone GLSP repositories
+
+Arguments:
+ repos Repositories to clone (can combine with --preset)
+
+Options:
+ -d, --dir Target directory for repo clones
+ -p, --protocol Git clone protocol (default: gh|https) (choices: "ssh", "https", "gh")
+ -b, --branch Branch or tag to check out after cloning
+ --fork Clone from a fork and set up dual-remote (origin=fork, upstream=eclipse-glsp)
+ --override How to handle an existing target directory (choices: "rename", "remove")
+ --preset Clone repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ -i, --interactive Guided setup: choose preset, protocol, and fork interactively (default: false)
+ --no-fail-fast Continue cloning after a failure
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### fork
+
+Adds fork remotes to already-cloned repositories. For each repo, restructures the git remotes so that
+`origin` points to your fork and `upstream` points to `eclipse-glsp`. If the fork doesn't exist on GitHub
+and the `gh` CLI is available, it will create one.
+
+```console
+$ glsp repo fork -h
+Usage: glsp repo fork [options]
+
+Add fork remotes to already-cloned repositories
+
+Arguments:
+ user GitHub username for the fork
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -p, --protocol Git clone protocol (default: gh|https) (choices: "ssh", "https", "gh")
+ -r, --repo Fork only these repos
+ --preset Fork repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### build
+
+Builds repositories in dependency order. Understands the GLSP dependency graph and builds prerequisites first.
+
+```console
+$ glsp repo build -h
+Usage: glsp repo build [options]
+
+Build repositories (dependency-ordered)
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -r, --repo Build only these repos
+ --preset Build repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ --electron Build Theia electron variant instead of browser (default: false)
+ --no-java Skip repositories that require Java/Maven
+ --no-fail-fast Continue building after a failure
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### link / unlink
+
+Links (or unlinks) repositories for cross-repo development by injecting `link:` overrides into each
+consumer's `pnpm-workspace.yaml` and reinstalling. Repositories are processed in dependency order, and
+singleton dependencies (sprotty, sprotty-protocol, vscode-jsonrpc, inversify) are shared from `glsp-client`
+to avoid duplicate instances. After linking a repo it is **built** so the `link:` overrides resolve to
+compiled `lib/` output rather than empty source directories (pass `--no-build` to skip); only the npm/pnpm
+side is built, so the `glsp-eclipse-integration` Maven server is left to a separate build. `unlink` removes
+those overrides again and reinstalls.
+
+For `glsp-eclipse-integration`, whose linkable pnpm workspace lives in a `client/` subdirectory, the
+overrides are injected into `client/pnpm-workspace.yaml`.
+
+```console
+$ glsp repo link -h
+Usage: glsp repo link [options]
+
+Interlink repositories via pnpm-workspace.yaml link overrides
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -r, --repo Link only these repos
+ --preset Link repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ --no-build Skip building the linked repos (links resolve to existing compiled output)
+ --electron Build the Theia electron variant instead of browser (default: false)
+ --no-fail-fast Continue after a failure
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### pwd
+
+```console
+$ glsp repo pwd -h
+Usage: glsp repo pwd [options]
+
+Print resolved paths for all discovered repositories
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ --raw Print repopath per line, no color (default: false)
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### log
+
+```console
+$ glsp repo log -h
+Usage: glsp repo log [options]
+
+Print the last commit for all discovered repositories
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -r, --repo Log only these repos
+ --preset Log repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### workspace
+
+Manage VS Code multi-root workspace files.
+
+```console
+$ glsp repo workspace init -h
+Usage: glsp repo workspace init [options]
+
+Generate a VS Code multi-root workspace file
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -o, --output Output path for the workspace file
+ -r, --repo Include only these repos
+ --preset Include repos from a preset (choices: "core", "theia", "vscode",
+ "eclipse", "playwright", "all")
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+```console
+$ glsp repo workspace open -h
+Usage: glsp repo workspace open [options]
+
+Open the VS Code workspace file
+
+Options:
+ -d, --dir Target directory where repos are cloned
+ -v, --verbose Verbose output (default: false)
+ -h, --help display help for command
+```
+
+### Scoped repository commands
+
+Each repository has a set of scoped subcommands accessible via `glsp repo ` or its short alias.
+Short aliases: `client`, `server-node`, `theia`, `vscode`, `eclipse`, `server-java`, `playwright`.
+
+All repos support `clone`, `switch`, `build`, `pwd`, and `log` subcommands.
+Some repos have additional repo-specific commands:
+
+| Repo | Extra commands |
+| ------------------------- | ---------------------- |
+| `glsp-client` | `start` |
+| `glsp-server-node` | `start` |
+| `glsp-server` | `start` |
+| `glsp-theia-integration` | `start`, `open` |
+| `glsp-vscode-integration` | `vsix-path`, `package` |
+
+```console
+$ glsp repo client -h
+Usage: glsp repo glsp-client|client [options] [command]
+
+Operations on the glsp-client repository
+
+Commands:
+ clone [options] Clone the glsp-client repository
+ switch [options] Switch branch or checkout a PR in glsp-client
+ build [options] Build the glsp-client repository
+ pwd [options] Print the resolved path for glsp-client
+ log [options] Print the last commit for glsp-client
+ start [options] Start the standalone example for glsp-client
+ help [command] display help for command
+```
+
+```console
+$ glsp repo vscode -h
+Usage: glsp repo glsp-vscode-integration|vscode [options] [command]
+
+Operations on the glsp-vscode-integration repository
+
+Commands:
+ clone [options] Clone the glsp-vscode-integration repository
+ switch [options] Switch branch or checkout a PR in glsp-vscode-integration
+ build [options] Build the glsp-vscode-integration repository
+ pwd [options] Print the resolved path for glsp-vscode-integration
+ log [options] Print the last commit for glsp-vscode-integration
+ vsix-path [options] Print the path to the workflow VSIX file
+ package [options] Package the workflow VS Code extension as a VSIX
+ help [command] display help for command
+```
+
+```console
+$ glsp repo theia -h
+Usage: glsp repo glsp-theia-integration|theia [options] [command]
+
+Operations on the glsp-theia-integration repository
+
+Commands:
+ clone [options] Clone the glsp-theia-integration repository
+ switch [options] Switch branch or checkout a PR in glsp-theia-integration
+ build [options] Build the glsp-theia-integration repository
+ pwd [options] Print the resolved path for glsp-theia-integration
+ log [options] Print the last commit for glsp-theia-integration
+ start [options] Start the Theia application for glsp-theia-integration
+ open [options] Open the Theia application in the browser for glsp-theia-integration
+ help [command] display help for command
+```
+
+## More information
+
+For more information, please visit the [Eclipse GLSP Umbrella repository](https://github.com/eclipse-glsp/glsp) and the [Eclipse GLSP Website](https://www.eclipse.org/glsp/).
+If you have questions, please raise them in the [discussions](https://github.com/eclipse-glsp/glsp/discussions) and have a look at our [communication and support options](https://www.eclipse.org/glsp/contact/).
diff --git a/dev-packages/cli/bin/glsp.js b/dev-packages/cli/bin/glsp.js
new file mode 100755
index 0000000..124439b
--- /dev/null
+++ b/dev-packages/cli/bin/glsp.js
@@ -0,0 +1,31 @@
+#!/usr/bin/env node
+/********************************************************************************
+ * Copyright (c) 2026 EclipseSource and others.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the Eclipse
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
+ * with the GNU Classpath Exception which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ ********************************************************************************/
+// Stable launcher committed to the repository so the `glsp` bin symlink can
+// always be created at install time. The actual CLI is the esbuild bundle in
+// `dist/`, which is a build artifact and may not exist yet on a fresh checkout.
+const path = require('path');
+const distEntry = path.join(__dirname, '..', 'dist', 'cli.js');
+
+try {
+ require(distEntry);
+} catch (error) {
+ if (error && error.code === 'MODULE_NOT_FOUND' && error.message.includes(distEntry)) {
+ console.error("The GLSP CLI has not been built yet. Run 'pnpm build' in the @eclipse-glsp/cli package first.");
+ process.exit(1);
+ }
+ throw error;
+}
diff --git a/dev-packages/cli/esbuild.js b/dev-packages/cli/esbuild.js
new file mode 100644
index 0000000..6dfa455
--- /dev/null
+++ b/dev-packages/cli/esbuild.js
@@ -0,0 +1,89 @@
+/********************************************************************************
+ * Copyright (c) 2025 EclipseSource and others.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the Eclipse
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
+ * with the GNU Classpath Exception which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ ********************************************************************************/
+const esbuild = require('esbuild');
+const fs = require('fs');
+
+const production = process.argv.includes('--production');
+const watch = process.argv.includes('--watch');
+
+/**
+ * @type {import('esbuild').Plugin}
+ */
+const esbuildProblemMatcherPlugin = {
+ name: 'esbuild-problem-matcher',
+
+ setup(build) {
+ build.onStart(() => {
+ console.log(`${watch ? '[watch]' : ''} build started`);
+ });
+ build.onEnd(result => {
+ result.errors.forEach(({ text, location }) => {
+ console.error(`β [ERROR] ${text}`);
+ console.error(` ${location.file}:${location.line}:${location.column}:`);
+ });
+ let resultMessage = '';
+ if (watch) {
+ resultMessage += '\n';
+ }
+ resultMessage += ' build finished';
+ if (result.errors.length !== 0) {
+ resultMessage += `\nβ ${result.errors.length} error(s)`;
+ }
+ if (result.warnings.length !== 0) {
+ resultMessage += `\nβ ${result.warnings.length} warning(s)`;
+ }
+ console.log(resultMessage);
+ });
+ }
+};
+
+async function main() {
+ const ctx = await esbuild.context({
+ entryPoints: ['src/cli.ts'],
+ bundle: true,
+ format: 'cjs',
+ minify: production,
+ sourcemap: !production,
+ sourcesContent: false,
+ platform: 'node',
+ outfile: 'dist/cli.js',
+ logLevel: 'silent',
+ banner: {
+ js: '#!/usr/bin/env node'
+ },
+ plugins: [
+ /* add to the end of plugins array */
+ esbuildProblemMatcherPlugin
+ ]
+ });
+ if (watch) {
+ await ctx.watch();
+ } else {
+ await ctx.rebuild();
+ await ctx.dispose();
+ // Make the generated CLI file executable
+ try {
+ fs.chmodSync('dist/cli.js', 0o755);
+ } catch (error) {
+ console.warn('Warning: Could not set executable permissions on dist/cli.js:', error.message);
+ }
+ }
+}
+
+main().catch(e => {
+ console.error(e);
+ process.exit(1);
+});
diff --git a/dev-packages/cli/package.json b/dev-packages/cli/package.json
new file mode 100644
index 0000000..46583e0
--- /dev/null
+++ b/dev-packages/cli/package.json
@@ -0,0 +1,62 @@
+{
+ "name": "@eclipse-glsp/cli",
+ "version": "2.8.0-next",
+ "description": "CLI Tooling & scripts for GLSP components",
+ "homepage": "https://www.eclipse.org/glsp/",
+ "bugs": "https://github.com/eclipse-glsp/glsp/issues",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/eclipse-glsp/glsp.git"
+ },
+ "license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
+ "author": {
+ "name": "Eclipse GLSP"
+ },
+ "contributors": [
+ {
+ "name": "Eclipse GLSP Project",
+ "email": "glsp-dev@eclipse.org",
+ "url": "https://projects.eclipse.org/projects/ecd.glsp"
+ }
+ ],
+ "bin": {
+ "glsp": "bin/glsp.js"
+ },
+ "files": [
+ "bin",
+ "dist"
+ ],
+ "scripts": {
+ "build": "pnpm compile && pnpm bundle",
+ "build:prod": "pnpm compile && pnpm bundle --production",
+ "bundle": "pnpm clean:dist && node esbuild.js",
+ "clean": "rimraf dist tsconfig.tsbuildinfo",
+ "clean:dist": "rimraf dist",
+ "compile": "tsc",
+ "lint": "eslint --ext .ts,.tsx ./src",
+ "lint:ci": "pnpm lint -o eslint.xml -f checkstyle",
+ "prepublishOnly": "pnpm build",
+ "start": "node dist/cli.js",
+ "test": "vitest run",
+ "test:all": "pnpm test && pnpm test:e2e",
+ "test:coverage": "vitest run --coverage",
+ "test:e2e": "pnpm build && vitest run --config vite.config.e2e.ts",
+ "test:watch": "vitest",
+ "watch": "node esbuild.js --watch",
+ "watch:tsc": "tsc --watch"
+ },
+ "devDependencies": {
+ "@eclipse-glsp/config-test": "workspace:*",
+ "@types/semver": "^7.7.1",
+ "commander": "^14.0.0",
+ "esbuild": "~0.28.1",
+ "globby": "^16.2.0",
+ "minimatch": "^10.2.5",
+ "open": "^11.0.0",
+ "semver": "^7.7.2",
+ "yaml": "^2.8.0"
+ },
+ "publishConfig": {
+ "access": "public"
+ }
+}
diff --git a/dev-packages/cli/src/cli.spec.ts b/dev-packages/cli/src/cli.spec.ts
new file mode 100644
index 0000000..d99a61d
--- /dev/null
+++ b/dev-packages/cli/src/cli.spec.ts
@@ -0,0 +1,528 @@
+/********************************************************************************
+ * Copyright (c) 2026 EclipseSource and others.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v. 2.0 which is available at
+ * http://www.eclipse.org/legal/epl-2.0.
+ *
+ * This Source Code may also be made available under the following Secondary
+ * Licenses when the conditions for such availability set forth in the Eclipse
+ * Public License v. 2.0 are satisfied: GNU General Public License, version 2
+ * with the GNU Classpath Exception which is available at
+ * https://www.gnu.org/software/classpath/license.html.
+ *
+ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
+ ********************************************************************************/
+
+import { describe, it, expect } from 'vitest';
+import { Command } from 'commander';
+import { CheckHeaderCommand } from './commands/check-header';
+import { GenerateIndex } from './commands/generate-index';
+import { RelengCommand } from './commands/releng/releng';
+import { RepoCommand } from './commands/repo/repo';
+import { UpdateNextCommand } from './commands/update-next';
+import { GLSPRepo } from './util';
+import { createSubrepoCommand } from './commands/repo/subrepos';
+
+// ββ Helpers ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+const optionLongs = (cmd: Command): string[] => cmd.options.map(o => o.long!);
+const subcommandNames = (cmd: Command): string[] => cmd.commands.map(c => c.name());
+const findSub = (parent: Command, name: string): Command => {
+ const sub = parent.commands.find(c => c.name() === name);
+ expect(sub, `subcommand '${name}' not found on '${parent.name()}'`).toBeDefined();
+ return sub!;
+};
+const choices = (cmd: Command, long: string): string[] | undefined => {
+ const opt = cmd.options.find(o => o.long === long);
+ expect(opt, `option '${long}' not found on '${cmd.name()}'`).toBeDefined();
+ return opt!.argChoices;
+};
+
+// ββ Tests ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+describe('cli', () => {
+ // ββ Top-level ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+ describe('top-level commands', () => {
+ describe('checkHeaders', () => {
+ it('should accept a argument', () => {
+ expect(CheckHeaderCommand.registeredArguments).toHaveLength(1);
+ expect(CheckHeaderCommand.registeredArguments[0].name()).toBe('rootDir');
+ expect(CheckHeaderCommand.registeredArguments[0].required).toBe(true);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(CheckHeaderCommand)).toEqual(
+ expect.arrayContaining([
+ '--type',
+ '--fileExtensions',
+ '--exclude',
+ '--no-exclude-defaults',
+ '--json',
+ '--autoFix',
+ '--commit'
+ ])
+ );
+ });
+
+ it('should restrict --type choices', () => {
+ expect(choices(CheckHeaderCommand, '--type')).toEqual(['full', 'changes', 'lastCommit']);
+ });
+ });
+
+ describe('updateNext', () => {
+ it('should have alias "u"', () => {
+ expect(UpdateNextCommand.alias()).toBe('u');
+ });
+
+ it('should accept an optional [rootDir] argument', () => {
+ expect(UpdateNextCommand.registeredArguments).toHaveLength(1);
+ expect(UpdateNextCommand.registeredArguments[0].required).toBe(false);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(UpdateNextCommand)).toEqual(expect.arrayContaining(['--verbose']));
+ });
+ });
+
+ describe('generateIndex', () => {
+ it('should accept a variadic argument', () => {
+ expect(GenerateIndex.registeredArguments).toHaveLength(1);
+ expect(GenerateIndex.registeredArguments[0].variadic).toBe(true);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(GenerateIndex)).toEqual(
+ expect.arrayContaining([
+ '--singleIndex',
+ '--forceOverwrite',
+ '--match',
+ '--ignore',
+ '--style',
+ '--ignoreFile',
+ '--verbose'
+ ])
+ );
+ });
+
+ it('should restrict --style choices', () => {
+ expect(choices(GenerateIndex, '--style')).toEqual(['commonjs', 'esm']);
+ });
+ });
+ });
+
+ // ββ Releng βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+ describe('releng', () => {
+ it('should have version and prepare subcommands', () => {
+ expect(subcommandNames(RelengCommand)).toEqual(expect.arrayContaining(['version', 'prepare']));
+ });
+
+ describe('version', () => {
+ const cmd = findSub(RelengCommand, 'version');
+
+ it('should accept argument with choices', () => {
+ const arg = cmd.registeredArguments[0];
+ expect(arg.name()).toBe('versionType');
+ expect(arg.required).toBe(true);
+ expect(arg.argChoices).toEqual(['major', 'minor', 'patch', 'custom', 'next']);
+ });
+
+ it('should accept optional [customVersion] argument', () => {
+ expect(cmd.registeredArguments[1].name()).toBe('customVersion');
+ expect(cmd.registeredArguments[1].required).toBe(false);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--verbose', '--repoDir']));
+ });
+ });
+
+ describe('prepare', () => {
+ const cmd = findSub(RelengCommand, 'prepare');
+
+ it('should accept argument with choices', () => {
+ const arg = cmd.registeredArguments[0];
+ expect(arg.argChoices).toEqual(['major', 'minor', 'patch', 'custom', 'next']);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--verbose', '--repoDir', '--no-push', '--draft', '--no-check']));
+ });
+ });
+ });
+
+ // ββ Repo βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
+
+ describe('repo', () => {
+ it('should register all top-level repo subcommands', () => {
+ expect(subcommandNames(RepoCommand)).toEqual(
+ expect.arrayContaining(['clone', 'fork', 'build', 'link', 'unlink', 'pwd', 'log', 'workspace'])
+ );
+ });
+
+ it('should register a subrepo command for each GLSPRepo', () => {
+ for (const repoName of GLSPRepo.choices) {
+ expect(subcommandNames(RepoCommand), `subrepo '${repoName}' should be registered`).toContain(repoName);
+ }
+ });
+
+ it('should have a global --dir option', () => {
+ expect(optionLongs(RepoCommand)).toContain('--dir');
+ });
+
+ describe('clone', () => {
+ const cmd = findSub(RepoCommand, 'clone');
+
+ it('should accept optional [repos...] argument', () => {
+ expect(cmd.registeredArguments[0].variadic).toBe(true);
+ expect(cmd.registeredArguments[0].required).toBe(false);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(
+ expect.arrayContaining([
+ '--dir',
+ '--protocol',
+ '--branch',
+ '--fork',
+ '--override',
+ '--preset',
+ '--interactive',
+ '--no-fail-fast',
+ '--verbose'
+ ])
+ );
+ });
+
+ it('should restrict --protocol choices', () => {
+ expect(choices(cmd, '--protocol')).toEqual(['ssh', 'https', 'gh']);
+ });
+
+ it('should restrict --override choices', () => {
+ expect(choices(cmd, '--override')).toEqual(['rename', 'remove']);
+ });
+
+ it('should restrict --preset choices', () => {
+ expect(choices(cmd, '--preset')).toEqual(
+ expect.arrayContaining(['core', 'theia', 'vscode', 'eclipse', 'playwright', 'all'])
+ );
+ });
+ });
+
+ describe('fork', () => {
+ const cmd = findSub(RepoCommand, 'fork');
+
+ it('should accept required argument', () => {
+ expect(cmd.registeredArguments[0].name()).toBe('user');
+ expect(cmd.registeredArguments[0].required).toBe(true);
+ });
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--protocol', '--repo', '--preset', '--verbose']));
+ });
+
+ it('should restrict --protocol choices', () => {
+ expect(choices(cmd, '--protocol')).toEqual(['ssh', 'https', 'gh']);
+ });
+ });
+
+ describe('build', () => {
+ const cmd = findSub(RepoCommand, 'build');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(
+ expect.arrayContaining(['--dir', '--repo', '--preset', '--electron', '--no-java', '--no-fail-fast', '--verbose'])
+ );
+ });
+ });
+
+ describe('link', () => {
+ const cmd = findSub(RepoCommand, 'link');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--repo', '--preset', '--no-fail-fast', '--verbose']));
+ });
+ });
+
+ describe('unlink', () => {
+ const cmd = findSub(RepoCommand, 'unlink');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--repo', '--preset', '--no-fail-fast', '--verbose']));
+ });
+ });
+
+ describe('pwd', () => {
+ const cmd = findSub(RepoCommand, 'pwd');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--raw', '--verbose']));
+ });
+ });
+
+ describe('log', () => {
+ const cmd = findSub(RepoCommand, 'log');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--repo', '--preset', '--verbose']));
+ });
+ });
+
+ describe('workspace', () => {
+ const workspace = findSub(RepoCommand, 'workspace');
+
+ it('should have init and open subcommands', () => {
+ expect(subcommandNames(workspace)).toEqual(expect.arrayContaining(['init', 'open']));
+ });
+
+ describe('init', () => {
+ const cmd = findSub(workspace, 'init');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--output', '--repo', '--preset', '--verbose']));
+ });
+ });
+
+ describe('open', () => {
+ const cmd = findSub(workspace, 'open');
+
+ it('should have expected options', () => {
+ expect(optionLongs(cmd)).toEqual(expect.arrayContaining(['--dir', '--verbose']));
+ });
+ });
+ });
+
+ // ββ Subrepo commands βββββββββββββββββββββββββββββββββββββββββββ
+
+ describe('subrepo commands', () => {
+ const SHORT_ALIASES: Partial> = {
+ 'glsp-client': 'client',
+ 'glsp-server-node': 'server-node',
+ 'glsp-theia-integration': 'theia',
+ 'glsp-vscode-integration': 'vscode',
+ 'glsp-eclipse-integration': 'eclipse',
+ 'glsp-server': 'server-java',
+ 'glsp-playwright': 'playwright'
+ };
+
+ for (const repoName of GLSPRepo.choices) {
+ describe(repoName, () => {
+ const cmd = createSubrepoCommand(repoName);
+
+ it('should have common subcommands', () => {
+ expect(subcommandNames(cmd)).toEqual(expect.arrayContaining(['clone', 'switch', 'build', 'pwd', 'log', 'run']));
+ });
+
+ if (SHORT_ALIASES[repoName]) {
+ it(`should have alias "${SHORT_ALIASES[repoName]}"`, () => {
+ expect(cmd.alias()).toBe(SHORT_ALIASES[repoName]);
+ });
+ }
+
+ describe('scoped clone', () => {
+ const clone = findSub(cmd, 'clone');
+
+ it('should have expected options', () => {
+ expect(optionLongs(clone)).toEqual(
+ expect.arrayContaining(['--dir', '--protocol', '--branch', '--fork', '--override', '--verbose'])
+ );
+ });
+
+ it('should restrict --protocol choices', () => {
+ expect(choices(clone, '--protocol')).toEqual(['ssh', 'https', 'gh']);
+ });
+
+ it('should restrict --override choices', () => {
+ expect(choices(clone, '--override')).toEqual(['rename', 'remove']);
+ });
+ });
+
+ describe('scoped switch', () => {
+ const sw = findSub(cmd, 'switch');
+
+ it('should have expected options', () => {
+ expect(optionLongs(sw)).toEqual(expect.arrayContaining(['--branch', '--dir', '--pr', '--force', '--verbose']));
+ });
+ });
+
+ describe('scoped build', () => {
+ const build = findSub(cmd, 'build');
+
+ it('should have expected options', () => {
+ expect(optionLongs(build)).toEqual(expect.arrayContaining(['--dir', '--verbose']));
+ });
+
+ if (repoName === 'glsp-theia-integration') {
+ it('should have --electron option', () => {
+ expect(optionLongs(build)).toContain('--electron');
+ });
+ }
+ });
+
+ describe('scoped pwd', () => {
+ const pwd = findSub(cmd, 'pwd');
+
+ it('should have expected options', () => {
+ expect(optionLongs(pwd)).toEqual(expect.arrayContaining(['--dir', '--verbose']));
+ });
+ });
+
+ describe('scoped log', () => {
+ const log = findSub(cmd, 'log');
+
+ it('should have expected options', () => {
+ expect(optionLongs(log)).toEqual(expect.arrayContaining(['--dir', '--verbose']));
+ });
+ });
+
+ describe('scoped run', () => {
+ const run = findSub(cmd, 'run');
+
+ it('should accept a required
+