This directory contains utility scripts for the MCP project.
A Python script that verifies package name consistency between pyproject.toml and README.md files.
python3 scripts/verify_package_name.py <package_directory> [--verbose]# Basic usage
python3 scripts/verify_package_name.py src/amazon-neptune-mcp-server
# Verbose output
python3 scripts/verify_package_name.py src/amazon-neptune-mcp-server --verbose- Extracts the package name from the
pyproject.tomlfile in the specified directory - Searches the
README.mdfile for package name references in installation instructions, including:- JSON configuration blocks
- Command-line examples (
uvx,uv tool run,pip install) - Cursor installation links (with Base64-encoded config)
- VS Code installation links (with URL-encoded JSON config)
- Docker run commands
- Intelligently filters out false positives like:
- AWS service references (e.g.,
aws.s3@ObjectCreated) - JSON configuration keys
- Command-line flags
- Common non-package words
- AWS service references (e.g.,
- Verifies that all package references match the actual package name from
pyproject.toml - Reports any mismatches that could lead to installation errors, including line numbers for easy debugging
This script is automatically run as part of the GitHub Actions workflow for each MCP server to ensure package name consistency.
- Python 3.10+
tomlipackage (for Python < 3.11) or built-intomllib(for Python 3.11+)
The script will automatically try to use the built-in tomllib (Python 3.11+) first, then fall back to tomli if needed.
Install tomli if needed:
pip install tomli