fix(hub): increase StreamReader limit and add volumes/expandvars support

This commit is contained in:
AFredefon
2026-03-02 02:19:08 +01:00
parent 6cd8fd3cf5
commit aa50787869
2 changed files with 6 additions and 1 deletions
@@ -237,6 +237,7 @@ async def add_hub_server(
description: str | None = None,
capabilities: list[str] | None = None,
environment: dict[str, str] | None = None,
volumes: list[str] | None = None,
) -> dict[str, Any]:
"""Add a new MCP server to the hub.
@@ -252,6 +253,7 @@ async def add_hub_server(
:param description: Human-readable description.
:param capabilities: Docker capabilities to add (e.g., ["NET_RAW"]).
:param environment: Environment variables to pass.
:param volumes: Docker volume mounts (e.g., ["~/.fuzzforge/hub/workspace:/data"]).
:return: Information about the added server.
Examples:
@@ -290,6 +292,7 @@ async def add_hub_server(
description=description,
capabilities=capabilities or [],
environment=environment or {},
volumes=volumes or [],
)
server = executor.add_server(config)