Thank you for your interest in contributing to the DeepL MCP Server! We appreciate your efforts to improve this project.
There are several ways you can contribute:
- Reporting Bugs: If you find a bug, please report it by opening an issue on GitHub.
- Suggesting Features: Have an idea for a new feature? Open an issue to discuss it.
- Submitting Pull Requests: If you'd like to contribute code, please follow the guidelines below.
To set up your local development environment, follow these steps:
-
Clone the repository:
git clone https://github.com/AlwaysSany/deepl-fastmcp-python-server.git cd deepl-fastmcp-python-server -
Install
uv(recommended) or usepip:With pip,
pip install uv
With pipx,
pipx install uv
-
Install dependencies:
uv sync
-
Set your environment variables: Create a
.envfile or exportDEEPL_AUTH_KEYin your shell. You can do this by running the following command and then update the.envfile with your DeepL API key:cp .env.example .env
Example
.envfile:DEEPL_AUTH_KEY=your_deepl_api_key
-
Run the server in development mode:
uv run mcp dev main.py
To ensure your changes don't introduce regressions, please run the existing tests.
- Ensure you have
pytestinstalled. It should be installed withuv sync. - Run tests from the project root:
uv run pytest tests/
- Follow PEP 8 for Python code style.
- We recommend using a linter (e.g.,
flake8orruff) and a formatter (e.g.,black) to ensure consistency.
- Fork the repository and create your branch from
main. - Make your changes.
- Ensure your code passes tests and adheres to the code style guidelines.
- Write clear, concise commit messages.
- Push your changes to your forked repository.
- Open a pull request to the
mainbranch of the original repository.- Provide a clear and detailed description of your changes.
- Reference any related issues.
If you find a bug or have a feature request, please open an issue on our GitHub Issues page.
- For bug reports, please include steps to reproduce the bug and any relevant error messages.
- For feature requests, describe the feature and why you think it would be valuable.