Problem/Motivation
The first GitLab CI pipeline after enabling .gitlab-ci.yml (pipeline #856060, commit 94b9ac94) failed.
The phpunit job cannot install the module’s dependencies because the repository has no composer.json. All kernel and functional tests fail with errors such as:
Unavailable module: 'mcp_server'. If this module needs to be downloaded for testing, include it in the 'require-dev' section of your composer.json file.Unavailable module: 'tool'.(required transitively bymcp_serverand listed inContentTypeListResourceTest::$modules)
Additionally, the cspell job (allowed to fail, but still red) reports unrecognized words, including project-specific terms like kenkeep, groundstrokes, baseliner, handers, and base64-encoded image data embedded in prompt config YAML files.
Proposed resolution
- Add a
composer.jsonthat declares the module’s runtime and test dependencies, at minimum:drupal/mcp_server: ^2.0
This will pull in transitive dependencies such as
drupal/toolso the PHPUnit job can enable the required modules. - Fix the cspell failures by:
- Adding legitimate project words to the project dictionary or
cspellconfiguration (e.g.kenkeep,groundstrokes,baseliner,handers). - Configuring cspell to ignore base64-encoded image strings in
config/install/*.ymlfiles.
- Adding legitimate project words to the project dictionary or
Remaining tasks
- [ ] Add
composer.jsonwith required dependencies. - [ ] Confirm PHPUnit job can install and enable
mcp_serverandtool. - [ ] Configure cspell to ignore base64 image data and add project-specific words.
- [ ] Confirm the full pipeline is green on
1.x.
User interface changes
None.
API changes
None.
Data model changes
None.
Testing instructions
- Push a branch with the proposed changes.
- Open a merge request and wait for the GitLab CI pipeline.
- Verify the pipeline at https://git.drupalcode.org/project/mcp_server_examples/-/pipelines is green.
- Confirm the phpunit and cspell jobs pass.
Issue fork mcp_server_examples-3604038
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
e0ipso