Skip to content

Commit 30dd05b

Browse files
committed
experiment: support for hub verbose (for calls)
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
1 parent 3b48017 commit 30dd05b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

mcpserver/core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def receive_job(request: str) -> dict:
7070

7171
active_providers = [inst for cat in self.catalog.values() for inst in cat]
7272

73-
agent = SecretaryAgent(active_providers)
73+
agent = SecretaryAgent(active_providers, verbose=self.verbose)
7474
raw_result = await agent.submit(request)
7575
try:
7676
receipt = json.loads(utils.extract_code_block(raw_result))

mcpserver/core/hub.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __init__(
3434
hub_id=None,
3535
path="/mcp",
3636
mock=False,
37+
verbose: Optional[bool] = False,
3738
):
3839
# Probably can simplify some of this between worker and hub
3940
self.mcp = mcp
@@ -42,6 +43,7 @@ def __init__(
4243
self.path = path
4344
self.secret = secret or secrets.token_urlsafe(32)
4445
self.workers: Dict[str, Dict[str, Any]] = {}
46+
self.verbose = verbose
4547

4648
# For use if we are also a worker.
4749
self.worker_id = hub_id or socket.gethostname()
@@ -109,6 +111,7 @@ def from_args(cls, mcp, args) -> Optional["HubManager"]:
109111
serial=args.serial,
110112
dual=args.dual,
111113
mock=args.mock,
114+
verbose=args.verbose,
112115
# server path
113116
path=args.path,
114117
)

0 commit comments

Comments
 (0)