Skip to main content

Multi-language Code Package (MCP) latest version query service

Project description

LibraryMaster MCP

中文文档 | API Reference | Release Notes

A powerful MCP (Model Context Protocol) service for library management and dependency operations across Python, Node.js, Java, and Rust ecosystems, integrated with Context7 API for intelligent library search and documentation queries.

Version Features (v0.1.1)

  • Context7 API Integration: Intelligent library search and documentation queries
  • 🔧 Cache System Refactor: Enhanced performance with cacheout library
  • 🛡️ Full Backward Compatibility: No breaking changes to existing features
  • 📚 Enhanced Documentation: Complete API reference and usage guides

Quick Start

Installation

# Clone the repository
git clone <repository-url>
cd LibraryMaster

# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install project dependencies
uv sync

Environment Configuration

Configure necessary environment variables before starting the service:

# Context7 API configuration (optional, for intelligent search features)
export LIBRARY_MASTER_CONTEXT7_API_KEY="your_context7_api_key"
export LIBRARY_MASTER_CONTEXT7_BASE_URL="https://context7.com/api/v1"  # optional

# Cache configuration (optional)
export LIBRARY_MASTER_CACHE_TTL=3600
export LIBRARY_MASTER_CACHE_MAX_SIZE=1000

MCP Service Setup

# Start MCP service
uv run -m library_master.mcp_service

# Or with custom configuration
LIBRARY_MASTER_CONTEXT7_API_KEY=your_key uv run -m library_master.mcp_service

Available MCP Tools

Core Library Management Tools

  • find_latest_versions - Find the latest versions of libraries
  • check_versions_exist - Verify if specific library versions exist
  • find_library_docs - Get official documentation URLs
  • find_library_dependencies - Retrieve dependency information
  • get_cache_stats - Get cache statistics
  • clear_cache - Clear cache data

Context7 Intelligent Search Tools

  • search_libraries - Use Context7 API to intelligently search for relevant libraries and code examples
  • get_library_docs - Use Context7 API to get detailed documentation for specified libraries
  • context7_health_check - Check Context7 API service status

For detailed API documentation, please refer to API Reference.

Integration with MCP Clients

{
  "mcpServers": {
    "library_master": {
      "command": "uv",
      "args": ["run", "-m", "library_master.mcp_service"],
      "cwd": "/path/to/LibraryMaster"
    }
  }
}

Testing

Run the test suite:

# Run all tests
uv run python test/test_mcp_tools.py

License

This project is licensed under the Apache 2.0 License - see the LICENSE .

Note: This project is part of a monorepo, and the license file is located in the repository root directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

library_master-0.1.1.tar.gz (109.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

library_master-0.1.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file library_master-0.1.1.tar.gz.

File metadata

  • Download URL: library_master-0.1.1.tar.gz
  • Upload date:
  • Size: 109.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for library_master-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3252037aac8233175541ec3c5606d23757af70902ff781415256714b8f1e8ee4
MD5 f81e7dd0619cffaaa1b9a4144a8b0008
BLAKE2b-256 2f4418b376aa51e775d9a3e0c80ed05d154541aea107589c0e7439526eec5970

See more details on using hashes here.

Provenance

The following attestation bundles were made for library_master-0.1.1.tar.gz:

Publisher: publish-to-pypi-library_master.yml on Kirky-X/mcps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file library_master-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: library_master-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for library_master-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 088f2f09de8d4cb7855f29ef0425d58709d19e085fd3996e876163e068101280
MD5 a449f7a2d0d2570c596537b0afc020bd
BLAKE2b-256 cfa34675715f55eeb1b227eaf69577d518eeb4ba7011399abb0fd58ed8ced65b

See more details on using hashes here.

Provenance

The following attestation bundles were made for library_master-0.1.1-py3-none-any.whl:

Publisher: publish-to-pypi-library_master.yml on Kirky-X/mcps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page