From 3729e2d6ee9df5a77fb1de6f70440fe0579e507b Mon Sep 17 00:00:00 2001 From: jade Date: Tue, 4 Aug 2026 23:43:44 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20McpRouterController,=20ChatController=20?= =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20FQCN=20=EC=84=A0?= =?UTF-8?q?=EC=96=B8=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20import=20=ED=86=B5?= =?UTF-8?q?=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/shinhanlife/dap/mcg/presentation/ChatController.java | 3 ++- .../shinhanlife/dap/mcg/presentation/McpRouterController.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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);