
- 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
19 lines
406 B
Python
19 lines
406 B
Python
# Import built-in modules
|
|
from pathlib import Path
|
|
|
|
PACKAGE_NAME = "pypi_query_mcp"
|
|
THIS_ROOT = Path(__file__).parent.parent
|
|
PROJECT_ROOT = THIS_ROOT.parent
|
|
|
|
|
|
def _assemble_env_paths(*paths):
|
|
"""Assemble environment paths separated by a semicolon.
|
|
|
|
Args:
|
|
*paths: Paths to be assembled.
|
|
|
|
Returns:
|
|
str: Assembled paths separated by a semicolon.
|
|
"""
|
|
return ";".join(paths)
|