mirror of
https://github.com/FuzzingLabs/fuzzforge_ai.git
synced 2026-07-04 16:57:49 +02:00
fix(hub): increase StreamReader limit and add volumes/expandvars support
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user