Contributing to Nutrient DWS MCP Server
July 16, 2025 ยท View on GitHub
We welcome contributions to the Nutrient DWS MCP Server! This document outlines the process for contributing to the project.
Getting Started
- 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
Development Process
- 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
Pull Request Guidelines
- 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
Testing
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 test
Running the Server Locally
To run the server locally:
# With sandbox mode (recommended)
SANDBOX_PATH=/path/to/sandbox/directory npx .
# Without sandbox mode (not recommended)
npx .
Reporting Issues
- Use the GitHub issue tracker
- Search existing issues before creating a new one
- Provide clear reproduction steps
License
By contributing, you agree that your contributions will be licensed under the MIT License.