pypi-query-mcp/tests
Ryan Malloy 2534f42d8b feat: implement PyPI metadata management tools
- Add new metadata.py module with 4 core functions:
  * update_package_metadata: Update description, keywords, classifiers
  * manage_package_urls: Update homepage, documentation, repository URLs
  * set_package_visibility: Make packages private/public (for organizations)
  * manage_package_keywords: Update search keywords and tags

- Add PyPIMetadataClient with comprehensive async/await patterns
- Include robust error handling and validation for all metadata formats
- Provide implementation guidance for metadata updates via package uploads
- Add MCP server endpoints for all 4 metadata management functions
- Update tools/__init__.py with proper imports and exports
- Create comprehensive test suite with 50+ test cases covering:
  * Client initialization and validation
  * All metadata management functions
  * Error handling and edge cases
  * URL validation and accessibility checking
  * Keyword quality analysis and scoring
  * Integration workflows

Features:
- Production-ready code following existing patterns
- Comprehensive docstrings and type hints
- Authentication with API tokens
- Dry-run mode for safe validation
- URL quality scoring and accessibility validation
- Keyword quality analysis with recommendations
- Organization detection for visibility management
- Detailed validation errors and recommendations
2025-08-16 09:00:32 -06:00
..
__init__.py feat: Complete PyPI Query MCP Server Implementation (#3) 2025-05-27 11:14:49 +08:00
conftest.py feat: implement comprehensive configuration management system with multi-mirror support 2025-05-27 17:41:42 +08:00
test_basic.py feat: implement comprehensive configuration management system with multi-mirror support 2025-05-27 17:41:42 +08:00
test_config.py feat: implement comprehensive configuration management system with multi-mirror support 2025-05-27 17:41:42 +08:00
test_dependency_resolver.py fix: update dependency resolver tests to match new implementation 2025-08-15 22:34:12 -06:00
test_download_stats.py chore: upgrade all Python packages and fix linting issues 2025-08-15 20:23:14 -06:00
test_metadata.py feat: implement PyPI metadata management tools 2025-08-16 09:00:32 -06:00
test_package_downloader.py fix: resolve all lint issues and fix failing tests 2025-05-29 18:47:15 +08:00
test_prompt_templates.py fix: resolve all lint issues and fix failing tests 2025-05-29 18:47:15 +08:00
test_publishing.py Implement PyPI Account & Publishing Tools 2025-08-16 08:52:03 -06:00
test_search.py feat: add comprehensive PyPI search functionality with advanced filtering 2025-08-16 07:45:40 -06:00
test_version_sorting.py chore: upgrade all Python packages and fix linting issues 2025-08-15 20:23:14 -06:00