fix: correct FastMCP interface usage and resolve lint issues

- 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
This commit is contained in:
longhao 2025-05-27 11:25:25 +08:00 committed by Hal
parent 030b3a2607
commit 576652571c
12 changed files with 38 additions and 51 deletions

View file

@ -8,6 +8,6 @@ __version__ = "0.1.0"
__author__ = "Hal"
__email__ = "hal.long@outlook.com"
from pypi_query_mcp.server import app
from pypi_query_mcp.server import mcp
__all__ = ["app", "__version__"]
__all__ = ["mcp", "__version__"]