diff --git a/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/ChatController.java b/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/ChatController.java index 85d67d45..4263a979 100644 --- a/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/ChatController.java +++ b/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/ChatController.java @@ -15,6 +15,7 @@ package io.shinhanlife.dap.mcg.presentation; * * */ +import io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse; import io.shinhanlife.dap.lib.dto.ToolMetadata; import io.shinhanlife.dap.mcg.registry.RedisRegistryService; import io.shinhanlife.dap.mcg.service.ExecuteService; @@ -56,7 +57,7 @@ public class ChatController { try { List callbacks = new ArrayList<>(); - io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse toolsResponse = mcpRouterController.listTools(null).getBody(); + JsonRpcResponse toolsResponse = mcpRouterController.listTools(null).getBody(); if (toolsResponse != null && toolsResponse.getResult() instanceof Map) { Map resultMap = (Map) toolsResponse.getResult(); if (resultMap.containsKey("tools")) { diff --git a/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/McpRouterController.java b/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/McpRouterController.java index a81d0522..4cc5ca9f 100644 --- a/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/McpRouterController.java +++ b/dap-gateway/src/main/java/io/shinhanlife/dap/mcg/presentation/McpRouterController.java @@ -91,7 +91,7 @@ public class McpRouterController { try { Object result = executeService.execute(payload, effectiveTenantId); - io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse response = new io.shinhanlife.dap.lib.adapter.dto.JsonRpcResponse(); + JsonRpcResponse response = new JsonRpcResponse(); response.setJsonrpc("2.0"); response.setId(payload.containsKey("id") ? String.valueOf(payload.get("id")) : UUID.randomUUID().toString()); response.setResult(result);