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:
parent
030b3a2607
commit
576652571c
12 changed files with 38 additions and 51 deletions
|
|
@ -3,8 +3,8 @@ import os
|
|||
|
||||
# Import third-party modules
|
||||
import nox
|
||||
from nox_actions.utils import PACKAGE_NAME
|
||||
from nox_actions.utils import THIS_ROOT
|
||||
|
||||
from nox_actions.utils import PACKAGE_NAME, THIS_ROOT
|
||||
|
||||
|
||||
def pytest(session: nox.Session) -> None:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
# Import third-party modules
|
||||
import nox
|
||||
|
||||
from nox_actions.utils import PACKAGE_NAME
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ import zipfile
|
|||
|
||||
# Import third-party modules
|
||||
import nox
|
||||
from nox_actions.utils import PACKAGE_NAME
|
||||
from nox_actions.utils import THIS_ROOT
|
||||
|
||||
from nox_actions.utils import PACKAGE_NAME, THIS_ROOT
|
||||
|
||||
|
||||
def build(session: nox.Session) -> None:
|
||||
|
|
@ -49,4 +49,4 @@ def build_exe(session: nox.Session) -> None:
|
|||
zip_obj.write(os.path.join(root, file),
|
||||
os.path.relpath(os.path.join(root, file),
|
||||
os.path.join(platform_dir, ".")))
|
||||
print("Saving to {zipfile}".format(zipfile=zip_file))
|
||||
print(f"Saving to {zip_file}")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# Import built-in modules
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
PACKAGE_NAME = "pypi_query_mcp"
|
||||
THIS_ROOT = Path(__file__).parent.parent
|
||||
PROJECT_ROOT = THIS_ROOT.parent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue