Skip to content

Commit 49bfa98

Browse files
committed
edge case fix and version bump
1 parent 75d30d0 commit 49bfa98

5 files changed

Lines changed: 8 additions & 4 deletions

File tree

docs/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"icon": "code",
3434
"versions": [
3535
{
36-
"version": "0.5.5",
36+
"version": "0.5.6",
3737
"groups": [
3838
{
3939
"group": "Get Started",

hud/environment/environment.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ async def _execute_tool(self, name: str, arguments: dict[str, Any]) -> MCPToolRe
450450
logger.debug("Mock mode: returning mock result for tool %s", name)
451451
return self._get_mock_result(name, arguments)
452452

453+
# Rebuild routing if invalidated (e.g., after add_tool)
454+
if not self._routing_built:
455+
await self._build_routing()
456+
453457
if self._router.is_local(name):
454458
# Call tool manager directly to avoid FastMCP context requirement
455459
result = await self._tool_manager.call_tool(name, arguments)

hud/utils/tests/test_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ def test_import():
55
"""Test that the package can be imported."""
66
import hud
77

8-
assert hud.__version__ == "0.5.5"
8+
assert hud.__version__ == "0.5.6"

hud/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
from __future__ import annotations
66

7-
__version__ = "0.5.5"
7+
__version__ = "0.5.6"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hud-python"
3-
version = "0.5.5"
3+
version = "0.5.6"
44
description = "SDK for the HUD platform."
55
readme = "README.md"
66
requires-python = ">=3.11, <3.13"

0 commit comments

Comments
 (0)