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, Rust, Go, and C++ ecosystems, integrated with Context7 API for intelligent library search and documentation queries.

⚠️ Notice: Java interfaces may occasionally fail to retrieve due to network or API limitations.

Version Features (v0.1.3)

🌟 New Features

  • 🌐 Mirror Source Configuration & Failover: Support for multiple mirror sources with automatic failover
  • 🔄 Enhanced Network Retry Mechanism: Intelligent retry strategies and timeout optimization
  • 🛡️ Circuit Breaker Pattern: Protection against cascading failures
  • 📊 Real-time Health Monitoring: Mirror source status monitoring and automatic recovery
  • 🌍 Extended Language Support: Added Go and C++ language support

🚀 Core Features

  • 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 document search features)
export LIBRARY_MASTER_CONTEXT7_API_KEY="your_context7_api_key"

# Mirror source configuration (v0.1.3 new)
export LIBRARYMASTER_RUST_MIRRORS="https://rsproxy.cn/crates.io-index,https://mirrors.ustc.edu.cn/crates.io-index"
export LIBRARYMASTER_PYTHON_MIRRORS="https://pypi.tuna.tsinghua.edu.cn/simple,https://mirrors.aliyun.com/pypi/simple"
export LIBRARYMASTER_JAVA_MIRRORS="https://maven.aliyun.com/repository/central,https://repo.huaweicloud.com/repository/maven"
export LIBRARYMASTER_NODE_MIRRORS="https://registry.npmmirror.com,https://registry.npm.taobao.org"
export LIBRARYMASTER_GO_MIRRORS="https://goproxy.cn,https://goproxy.io"
export LIBRARYMASTER_CPP_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/vcpkg-ports.git"

# Network enhancement configuration (v0.1.3 new)
export LIBRARYMASTER_ENABLE_MIRROR_FALLBACK=true
export LIBRARYMASTER_MAX_RETRIES=3
export LIBRARYMASTER_CIRCUIT_BREAKER_THRESHOLD=5

# 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.3.tar.gz (43.5 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.3-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: library_master-0.1.3.tar.gz
  • Upload date:
  • Size: 43.5 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.3.tar.gz
Algorithm Hash digest
SHA256 cdadda0113f74cc882161b93725b670f64bd393cd255f1d0168e1ca6c0721042
MD5 62484d52e9d6517799cf2ef1721c52d0
BLAKE2b-256 6617764a2cb546907e845ada6fdf3e08e48fd1898e4efddbfb6a96bf74e83284

See more details on using hashes here.

Provenance

The following attestation bundles were made for library_master-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: library_master-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 44.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 25f61f10e62fd88fc78328199dfc0fd08134991f2649b6ef1aa1cb791679a1bf
MD5 9efd402eb1883f43359f6af1cd401941
BLAKE2b-256 ef8336b9e9d03fd4fce002ab9f83d3fc7d9c7065eabc576ea601e908f9dae278

See more details on using hashes here.

Provenance

The following attestation bundles were made for library_master-0.1.3-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