- Made feedparser import optional in discovery.py with graceful fallback - Fixed GitHubClient import to use correct GitHubAPIClient class name - Made server import optional in __init__.py to allow tool imports without fastmcp dependency - Added warning when feedparser is not available for RSS functionality - All tool modules now importable without external dependencies This allows the MCP server to start even when optional dependencies are missing, providing graceful degradation of functionality.
18 lines
465 B
Python
18 lines
465 B
Python
"""PyPI Query MCP Server.
|
|
|
|
A Model Context Protocol (MCP) server for querying PyPI package information,
|
|
dependencies, and compatibility checking.
|
|
"""
|
|
|
|
__version__ = "0.1.0"
|
|
__author__ = "Hal"
|
|
__email__ = "hal.long@outlook.com"
|
|
|
|
try:
|
|
from pypi_query_mcp.server import mcp
|
|
__all__ = ["mcp", "__version__"]
|
|
except ImportError:
|
|
# Server dependencies not available (fastmcp, etc.)
|
|
# Tools can still be imported individually
|
|
__all__ = ["__version__"]
|