read json supporting
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from typing import Type
|
from typing import Type
|
||||||
import tyro
|
import tyro
|
||||||
import json
|
import commentjson
|
||||||
import asyncio
|
import asyncio
|
||||||
import os.path as osp
|
import os.path as osp
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
@@ -35,7 +35,7 @@ class ClientToolManager:
|
|||||||
|
|
||||||
def populate_module(self):
|
def populate_module(self):
|
||||||
with open(self.config.mcp_config_f, "r") as f:
|
with open(self.config.mcp_config_f, "r") as f:
|
||||||
self.mcp_configs = json.load(f)
|
self.mcp_configs = commentjson.load(f)
|
||||||
|
|
||||||
self.cli = MultiServerMCPClient(self.mcp_configs)
|
self.cli = MultiServerMCPClient(self.mcp_configs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user