Contributing¶
Thank you for considering contributing to the Palo Alto Networks MCP Server! This document provides guidelines and instructions for contributing to the project.
Code of Conduct¶
Please be respectful and considerate of others when contributing to this project.
Reporting Bugs¶
If you find a bug, please create an issue on the GitHub repository with the following information:
- A clear and descriptive title
- A detailed description of the bug
- Steps to reproduce the bug
- Expected behavior
- Actual behavior
- Any relevant logs or error messages
- Your environment (Python version, operating system, etc.)
Suggesting Enhancements¶
If you have an idea for an enhancement, please create an issue on the GitHub repository with the following information:
- A clear and descriptive title
- A detailed description of the enhancement
- Any relevant examples or use cases
- Any potential implementation details
Code Contribution Workflow¶
- Fork the repository
- Create a new branch for your changes
- Make your changes
- Write tests for your changes
- Run the tests to ensure they pass
- Submit a pull request
Fork the Repository¶
Click the "Fork" button at the top right of the GitHub repository page to create a copy of the repository in your GitHub account.
Create a Branch¶
Create a new branch for your changes:
Make Your Changes¶
Make your changes to the codebase. Be sure to follow the code style guidelines and write tests for your changes.
Write Tests¶
Write tests for your changes to ensure they work as expected and to prevent regressions in the future.
Run Tests¶
Run the tests to ensure they pass:
Submit a Pull Request¶
Push your changes to your fork and submit a pull request to the main repository.
Code Style Guidelines¶
This project follows the Black code style. Please ensure your code is formatted according to these guidelines.
You can use the following tools to check and format your code:
Setting Up Development Environment¶
- Clone the repository:
- Create a virtual environment:
- Install the package in development mode:
- Create a
.env
file with your development environment variables:
Documentation¶
When making changes, please update the documentation as needed. This project uses MkDocs with the Material theme for documentation.
To build and view the documentation locally:
# Install mkdocs and the material theme
pip install mkdocs mkdocs-material
# Build and serve the documentation
mkdocs serve
Then open http://127.0.0.1:8000 in your browser.
Release Process¶
- Update the version number in
pyproject.toml
- Update the CHANGELOG.md file
- Create a new release on GitHub
- Tag the release with the version number
- Publish the package to PyPI (if applicable)
Thank you for your contributions!