From ee292ea549ac44fd077cb91020455d03488e12d5 Mon Sep 17 00:00:00 2001 From: cardosofede Date: Mon, 9 Mar 2026 20:21:13 -0300 Subject: [PATCH] (feat) update server to publish in uvx --- hummingbot_mcp/server.py | 9 +++++++-- pyproject.toml | 3 ++- server.json | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/hummingbot_mcp/server.py b/hummingbot_mcp/server.py index 51a55cb..3234a0a 100644 --- a/hummingbot_mcp/server.py +++ b/hummingbot_mcp/server.py @@ -1140,7 +1140,7 @@ async def manage_gateway_clmm( return f"Gateway CLMM Position Management Result: {result}" -async def main(): +async def _run(): """Run the MCP server""" # Setup logging once at application start logger.info("Starting Hummingbot MCP Server") @@ -1158,5 +1158,10 @@ async def main(): await hummingbot_client.close() +def main(): + """Entry point for uvx/pip console_scripts.""" + asyncio.run(_run()) + + if __name__ == "__main__": - asyncio.run(main()) + main() diff --git a/pyproject.toml b/pyproject.toml index 60b30dc..065c12d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hummingbot_mcp" -version = "0.1.0" +version = "0.1.1" description = "MCP server for Hummingbot API integration - manage crypto trading across multiple exchanges" readme = "README.md" requires-python = ">=3.11" @@ -28,6 +28,7 @@ Repository = "https://github.com/hummingbot/mcp" Issues = "https://github.com/hummingbot/mcp/issues" [project.scripts] +hummingbot-mcp = "hummingbot_mcp:main" mcp-hummingbot = "hummingbot_mcp:main" [build-system] diff --git a/server.json b/server.json index 7d6aa32..9191b22 100644 --- a/server.json +++ b/server.json @@ -6,13 +6,13 @@ "url": "https://github.com/hummingbot/mcp", "source": "github" }, - "version": "0.1.0", + "version": "0.1.1", "packages": [ { "registryType": "oci", "registryBaseUrl": "https://docker.io", "identifier": "hummingbot/hummingbot-mcp", - "version": "0.1.0", + "version": "0.1.1", "transport": { "type": "stdio" }, "environmentVariables": [ {