47 Commits

Author SHA1 Message Date
renovate[bot]
ab88b75703 fix(deps): update dependency fastmcp to v2.11.0 2025-08-02 15:11:40 +08:00
github-actions[bot]
2903740c8a bump: version 0.6.3 → 0.6.4 2025-08-02 07:11:37 +00:00
renovate[bot]
f52df0c3d2 chore(deps): update dependency ruff to ^0.12.0 2025-08-02 15:11:28 +08:00
renovate[bot]
f7e38c599a fix(deps): update dependency click to v8.2.2 2025-08-02 15:11:16 +08:00
github-actions[bot]
94343ce009 bump: version 0.6.2 → 0.6.3 2025-07-13 17:07:41 +00:00
renovate[bot]
8d175ac4ec fix(deps): update dependency pydantic to v2.11.7 2025-07-14 01:07:17 +08:00
github-actions[bot]
3dcca5d28c bump: version 0.6.1 → 0.6.2 2025-07-13 17:07:12 +00:00
dependabot[bot]
a10948e886 chore(deps): bump mcp from 1.9.4 to 1.10.0
Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.9.4 to 1.10.0.
- [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases)
- [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md)
- [Commits](https://github.com/modelcontextprotocol/python-sdk/compare/v1.9.4...v1.10.0)

---
updated-dependencies:
- dependency-name: mcp
  dependency-version: 1.10.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 01:06:46 +08:00
github-actions[bot]
134e642946 bump: version 0.6.0 → 0.6.1 2025-06-25 16:12:51 +00:00
renovate[bot]
452be24e90 fix(deps): update dependency fastmcp to v2.9.0 2025-06-26 00:12:46 +08:00
renovate[bot]
3c387c00c4 fix(deps): update dependency pydantic-settings to v2.10.1 2025-06-26 00:12:31 +08:00
renovate[bot]
63ef17f0ac chore(deps): update dependency pytest-cov to v6 2025-05-30 03:19:56 +08:00
renovate[bot]
798cf0e5de chore(deps): update dependency ruff to v0.11.12 2025-05-30 03:19:35 +08:00
github-actions[bot]
07f10856bc bump: version 0.5.1 → 0.6.0 2025-05-29 10:47:39 +00:00
longhao
a28d999958 fix: resolve all lint issues and fix failing tests
- Fix blank line whitespace issues (W293) using ruff --unsafe-fixes
- Reformat code using ruff format for consistent styling
- Fix analyze_package_quality function to return list[Message] instead of string
- Add missing 'assessment' keyword to package analysis template
- Update tests to use real prompt functions instead of mocks for structure validation
- Fix import ordering in test files
- All 64 tests now pass with 47% code coverage

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-29 18:47:15 +08:00
longhao
d63ef02ef3 feat: add comprehensive environment and trending analysis prompt templates
Environment Analysis Templates:
- analyze_environment_dependencies: Analyze current Python environment and dependencies
- check_outdated_packages: Check for outdated packages with update priorities
- generate_update_plan: Create comprehensive package update plans with strategies

Trending Analysis Templates:
- analyze_daily_trends: Analyze daily PyPI download trends and popular packages
- find_trending_packages: Discover trending packages over different time periods
- track_package_updates: Track recent package updates and releases

Key Features:
- Follow standard MCP workflow with {{parameter}} template variables
- Support environment analysis (uvx pip list integration ready)
- Enable trending package discovery and popularity analysis
- Provide structured update planning with different strategies
- Include comprehensive parameter validation and documentation
- Add usage examples and integration guides

All templates follow the established MCP prompt workflow:
1. User calls tool → MCP client sends request
2. Tool function executes → Collects necessary data and parameters
3. Call Prompt generator → Pass parameters to corresponding generator
4. Load template → Get template with {{parameter}} placeholders
5. Parameter replacement → Replace {{parameter_name}} with actual values
6. Return final prompt → As tool's response back to AI

Updated documentation and README with new template examples and usage patterns.

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-29 18:47:15 +08:00
longhao
4bdf38d455 refactor: update prompt templates to follow standard MCP workflow
- Implement standard MCP prompt workflow with template variables
- Use {{parameter_name}} placeholders instead of direct string interpolation
- Add proper parameter replacement in server prompt registrations
- Update templates to return template strings with placeholders
- Follow MCP workflow: load template → parameter replacement → return final prompt
- Update documentation to reflect standard MCP workflow implementation
- Remove TEMPLATES_USE environment variable as requested
- Maintain all existing functionality while improving MCP compliance

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-29 18:47:15 +08:00
longhao
de54e1e0e8 chore: remove temporary test file 2025-05-29 18:47:15 +08:00
longhao
e481711053 feat: add MCP prompt templates for PyPI package analysis and decision-making
- Add comprehensive prompt templates for package analysis, dependency management, and migration planning
- Implement 8 prompt templates covering quality analysis, package comparison, alternatives suggestion, dependency conflicts, version upgrades, security audits, and migration planning
- Add detailed documentation in PROMPT_TEMPLATES.md with usage examples
- Include demo script and test coverage for prompt template functionality
- Update README.md to highlight new prompt template features
- Templates provide structured guidance for common PyPI package scenarios

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-29 18:47:15 +08:00
renovate[bot]
ed0cf45c18 chore(deps): update dependency pre-commit to v4 2025-05-28 00:33:29 +08:00
renovate[bot]
458481f8c0 chore(deps): update dependency ruff to ^0.11.0 2025-05-28 00:27:01 +08:00
github-actions[bot]
328028ac21 bump: version 0.5.0 → 0.5.1 2025-05-27 13:23:49 +00:00
renovate[bot]
0f70c6f532 chore(deps): update codecov/codecov-action action to v5 2025-05-27 21:23:10 +08:00
renovate[bot]
1725df0ca1 fix(deps): update dependency fastmcp to v2 2025-05-27 21:22:53 +08:00
github-actions[bot]
0153f89882 bump: version 0.4.0 → 0.5.0 2025-05-27 13:22:47 +00:00
longhao
3d9d7b4208 style: fix code formatting and linting issues
- Remove unused imports in stats_client.py and download_stats.py
- Fix import sorting in test files
- Remove unnecessary f-strings in server.py and demo script
- Clean up whitespace and formatting issues
- Ensure all files pass ruff and isort checks

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-27 21:22:18 +08:00
longhao
99c603ed37 feat: add PyPI package download statistics and popularity analysis tools
- Add PyPIStatsClient for pypistats.org API integration
- Implement get_package_download_stats for recent download statistics
- Implement get_package_download_trends for time series analysis
- Implement get_top_packages_by_downloads for popularity rankings
- Add comprehensive MCP tools for download statistics
- Include download trends analysis with growth indicators
- Add repository information and metadata integration
- Provide comprehensive test coverage
- Add demo script and usage examples
- Update README with new features and examples

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-27 21:22:18 +08:00
github-actions[bot]
5344726014 bump: version 0.3.0 → 0.4.0 2025-05-27 11:06:42 +00:00
longhao
f2b92ff0ee style: fix code formatting and linting issues
- Fix whitespace in docstrings and blank lines
- Remove unused variables in tests
- Rename unused loop variables to follow conventions
- All ruff checks now pass

Signed-off-by: Hal <hal.long@outlook.com>
2025-05-27 19:06:18 +08:00
longhao
6b14ff6da5 feat: add advanced dependency resolution and package download tools
- Add DependencyParser for parsing and categorizing package dependencies
- Add DependencyResolver for recursive dependency tree analysis
- Add PackageDownloader for downloading packages with dependencies
- Add resolve_dependencies MCP tool for comprehensive dependency analysis
- Add download_package MCP tool for package collection
- Support Python version filtering and extra dependencies
- Include comprehensive test coverage for new functionality
- Add demonstration script for new features
- Update README with new capabilities and usage examples

Signed-off-by: Hal <hal.long@outlook.com>
2025-05-27 19:06:18 +08:00
github-actions[bot]
04c98b26db bump: version 0.2.0 → 0.3.0 2025-05-27 09:42:07 +00:00
longhao
a0c507c3ff feat: implement comprehensive configuration management system with multi-mirror support
- Add ServerSettings class with pydantic-settings for type-safe configuration
- Support multiple PyPI mirror sources with priority-based fallback mechanism
- Implement RepositoryConfig and RepositoryManager for multi-repository support
- Add environment variable support for all configuration options
- Include private repository authentication configuration
- Add advanced dependency analysis settings (max depth, concurrency, security)
- Provide secure credential management with sensitive data masking
- Update documentation and configuration examples
- Add comprehensive test suite with 23 test cases covering all features
- Include demo script showcasing multi-mirror configuration capabilities

Configuration features:
- Primary, additional, and fallback index URLs
- Automatic duplicate URL removal with priority preservation
- Runtime configuration reloading
- Integration with repository manager for seamless multi-source queries

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-27 17:41:42 +08:00
github-actions[bot]
f27493d8d2 bump: version 0.1.0 → 0.2.0 2025-05-27 06:52:22 +00:00
longhao
ba8536f718 feat: add commitizen configuration for automated version management
- Add commitizen to dev dependencies for semantic versioning
- Configure commitizen with conventional commits and poetry integration
- Set up automatic changelog generation and PEP440 version scheme
- Enable major version zero mode for pre-1.0 releases
- Update poetry.lock with new commitizen dependency

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-27 14:51:58 +08:00
renovate[bot]
c28da94f9c fix(deps): update dependency fastmcp to ^0.4.0 2025-05-27 14:35:11 +08:00
longhao
3d0eda0acf feat: fix CI workflow issues and improve release automation
- Add workflow_call trigger to test.yml to make it reusable by other workflows
- Fix codecov action parameter from 'file' to 'files' for v4 compatibility
- Update deprecated actions/create-release@v1 to softprops/action-gh-release@v2
- Add automated version bumping with commitizen
- Implement PyPI trusted publishing for secure, token-free uploads
- Add changelog generation with smart commit filtering
- Update to Python 3.13 and enhance dependency caching
- Use PERSONAL_ACCESS_TOKEN for enhanced permissions

Signed-off-by: longhao <hal.long@outlook.com>
2025-05-27 14:34:55 +08:00
renovate[bot]
af4040916c fix(deps): update dependency httpx to ^0.28.0 2025-05-27 13:51:44 +08:00
renovate[bot]
852acb080e chore(deps): update codecov/codecov-action action to v5 2025-05-27 13:51:25 +08:00
renovate[bot]
aba43d995d chore(deps): update dependency nox to v2025 2025-05-27 13:49:08 +08:00
longhao
d146e5d775 fix: update poetry.lock after removing mypy dependency
- Regenerate poetry.lock to reflect removal of mypy from dev dependencies
- Ensures CI dependency installation works correctly
- All tests and lint checks continue to pass
2025-05-27 13:44:28 +08:00
longhao
3fea035c13 remove: disable mypy type checking
- Remove mypy from CI workflow
- Remove mypy configuration from pyproject.toml
- Remove mypy dependency from dev dependencies
- Remove mypy session from noxfile.py
- Keep only essential linting (ruff + isort) and testing (pytest)
- All remaining checks still pass
2025-05-27 13:44:28 +08:00
longhao
09f5111eda fix: resolve import sorting conflicts between ruff and isort
- Add isort configuration to pyproject.toml with black profile
- Fix import formatting to be compatible with both ruff and isort
- All lint checks now pass (both ruff and isort)
- Tests continue to pass
2025-05-27 13:44:28 +08:00
longhao
ec677fb709 feat: add MCP configuration examples
- Add Claude Desktop configuration example
- Add Cursor MCP configuration example
- Provide ready-to-use configuration files for users
2025-05-27 13:44:28 +08:00
longhao
3cbb43f2d6 docs: update README with standard MCP server configuration
- Add comprehensive configuration examples for Claude Desktop, Cline, Cursor, and Windsurf
- Include proper uvx installation and usage instructions
- Add environment variables documentation
- Include practical usage examples and conversation patterns
- Follow standard Python MCP server documentation format
- Add pypi-query-mcp-server script entry point for uvx compatibility
2025-05-27 13:44:28 +08:00
longhao
576652571c fix: correct FastMCP interface usage and resolve lint issues
- Fix FastMCP server interface to use correct mcp.run() instead of app.run(host, port)
- Remove unnecessary host and port parameters, use standard STDIO transport
- Fix all ruff lint issues including import sorting and blank lines
- Update ruff configuration to new lint configuration format
- Fix type annotation issues using Union syntax (int | None)
- Ensure uvx pypi-query-mcp-server works correctly
- All tests pass and lint checks pass
2025-05-27 13:44:28 +08:00
Hal
030b3a2607
feat: Complete PyPI Query MCP Server Implementation (#3)
Merge pull request implementing complete PyPI query MCP server with comprehensive features and CI/CD pipeline.
2025-05-27 11:14:49 +08:00
Hal
b1a1a6866d
Initial commit 2025-01-06 01:26:03 +08:00