We welcome contributions to the Nutrient DWS MCP Server! This document outlines the process for contributing to the project.
- Fork the repository
- Clone your fork:
git clone https://github.com/PSPDFKit/nutrient-dws-mcp-server.git - Install dependencies:
pnpm install - Build the project:
pnpm run build - Run tests:
pnpm test
- Create a new branch for your changes
- Make your changes
- Run
pnpm run lintto ensure code style compliance - Run
pnpm run formatto format the code. - Run
pnpm testto verify all tests pass - Submit a pull request
- Follow the existing code style
- Include tests for new functionality
- Update documentation as needed
- Keep changes focused and atomic
- Provide a clear description of changes
The project uses Vitest as the test framework. The test suite includes:
- Unit tests for API calls and file-based operations (high-level concepts such as networking and the file system are mocked)
- End-to-end DWS API tests to ensure a message format is adhered to
To run the tests:
- Copy the
.env.exampleto.envand add your Nutrient DWS API key. - Install the dependencies and run the tests:
pnpm install
pnpm testTo run the server locally:
# With sandbox mode (recommended)
SANDBOX_PATH=/path/to/sandbox/directory npx .
# Without sandbox mode (not recommended)
npx .- Use the GitHub issue tracker
- Search existing issues before creating a new one
- Provide clear reproduction steps
By contributing, you agree that your contributions will be licensed under the MIT License.