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 librariescheck_versions_exist- Verify if specific library versions existfind_library_docs- Get official documentation URLsfind_library_dependencies- Retrieve dependency informationget_cache_stats- Get cache statisticsclear_cache- Clear cache data
Context7 Intelligent Search Tools
search_libraries- Use Context7 API to intelligently search for relevant libraries and code examplesget_library_docs- Use Context7 API to get detailed documentation for specified librariescontext7_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdadda0113f74cc882161b93725b670f64bd393cd255f1d0168e1ca6c0721042
|
|
| MD5 |
62484d52e9d6517799cf2ef1721c52d0
|
|
| BLAKE2b-256 |
6617764a2cb546907e845ada6fdf3e08e48fd1898e4efddbfb6a96bf74e83284
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
library_master-0.1.3.tar.gz -
Subject digest:
cdadda0113f74cc882161b93725b670f64bd393cd255f1d0168e1ca6c0721042 - Sigstore transparency entry: 462629013
- Sigstore integration time:
-
Permalink:
Kirky-X/mcps@c8253c700a05f469f2d73241cebd7c4e3814d255 -
Branch / Tag:
refs/tags/library_master/v0.1.3 - Owner: https://github.com/Kirky-X
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi-library_master.yml@c8253c700a05f469f2d73241cebd7c4e3814d255 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25f61f10e62fd88fc78328199dfc0fd08134991f2649b6ef1aa1cb791679a1bf
|
|
| MD5 |
9efd402eb1883f43359f6af1cd401941
|
|
| BLAKE2b-256 |
ef8336b9e9d03fd4fce002ab9f83d3fc7d9c7065eabc576ea601e908f9dae278
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
library_master-0.1.3-py3-none-any.whl -
Subject digest:
25f61f10e62fd88fc78328199dfc0fd08134991f2649b6ef1aa1cb791679a1bf - Sigstore transparency entry: 462629040
- Sigstore integration time:
-
Permalink:
Kirky-X/mcps@c8253c700a05f469f2d73241cebd7c4e3814d255 -
Branch / Tag:
refs/tags/library_master/v0.1.3 - Owner: https://github.com/Kirky-X
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi-library_master.yml@c8253c700a05f469f2d73241cebd7c4e3814d255 -
Trigger Event:
push
-
Statement type: