feat: fix MCP-related logs format and add Docker tests (#1280)
This commit is contained in:
@@ -32,7 +32,8 @@ jobs:
|
||||
LETTA_PG_PORT: 8888
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
|
||||
run: docker compose -f dev-compose.yaml up --build -d
|
||||
run: |
|
||||
docker compose -f dev-compose.yaml up --build -d
|
||||
#- name: "Setup Python, Poetry and Dependencies"
|
||||
# uses: packetcoders/action-setup-cache-python-poetry@v1.2.0
|
||||
# with:
|
||||
|
||||
@@ -353,8 +353,8 @@ class SyncServer(Server):
|
||||
for server_name, client in self.mcp_clients.items():
|
||||
logger.info(f"Attempting to fetch tools from MCP server: {server_name}")
|
||||
mcp_tools = client.list_tools()
|
||||
logger.info(f"MCP tools connected: {", ".join([t.name for t in mcp_tools])}")
|
||||
logger.debug(f"MCP tools: {"\n".join([str(t) for t in mcp_tools])}")
|
||||
logger.info(f"MCP tools connected: {', '.join([t.name for t in mcp_tools])}")
|
||||
logger.debug(f"MCP tools: {', '.join([str(t) for t in mcp_tools])}")
|
||||
|
||||
def load_agent(self, agent_id: str, actor: User, interface: Union[AgentInterface, None] = None) -> Agent:
|
||||
"""Updated method to load agents from persisted storage"""
|
||||
@@ -1366,8 +1366,8 @@ class SyncServer(Server):
|
||||
# Print out the tools that are connected
|
||||
logger.info(f"Attempting to fetch tools from MCP server: {server_config.server_name}")
|
||||
new_mcp_tools = new_mcp_client.list_tools()
|
||||
logger.info(f"MCP tools connected: {", ".join([t.name for t in new_mcp_tools])}")
|
||||
logger.debug(f"MCP tools: {"\n".join([str(t) for t in new_mcp_tools])}")
|
||||
logger.info(f"MCP tools connected: {', '.join([t.name for t in new_mcp_tools])}")
|
||||
logger.debug(f"MCP tools: {', '.join([str(t) for t in new_mcp_tools])}")
|
||||
|
||||
# Now that we've confirmed the config is working, let's add it to the client list
|
||||
self.mcp_clients[server_config.server_name] = new_mcp_client
|
||||
|
||||
Reference in New Issue
Block a user