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 d2c9119f..74a1863a 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 @@ -181,29 +181,15 @@ public class McpRouterController { toolMap.put("annotations", annotations); Map meta = new HashMap<>(); - meta.put("uid", t.getUid()); meta.put("version", t.getSemver()); - meta.put("moduleName", t.getModuleName()); meta.put("category_key", t.getCategoryKey()); meta.put("tags", t.getTags()); meta.put("owner_org", t.getOwnerOrg()); meta.put("legacy_interface_id", t.getMciServiceId()); meta.put("display_description", t.getDisplayDescription()); meta.put("example_queries", t.getExampleQueries()); + meta.put("example_queries", t.getExampleQueries()); meta.put("required_env_keys", t.getRequiredEnvKeys()); - meta.put("endpoint", t.getEndpoint()); - meta.put("podUrl", t.getPodUrl()); - meta.put("visible", t.getVisible()); - meta.put("enabled", t.getEnabled()); - meta.put("isRegistered", t.getIsRegistered()); - meta.put("requiresApproval", t.getRequiresApproval()); - meta.put("integrationType", t.getIntegrationType()); - meta.put("mciServiceId", t.getMciServiceId()); - meta.put("operationType", t.getOperationType()); - meta.put("retryEnabled", t.getRetryEnabled()); - meta.put("circuitBreakerFailureThreshold", t.getCircuitBreakerFailureThreshold()); - meta.put("circuitBreakerOpenMillis", t.getCircuitBreakerOpenMillis()); - meta.put("timeoutMillis", t.getTimeoutMillis()); toolMap.put("_meta", meta); return toolMap; diff --git a/dap-gateway/src/main/resources/static/tester.html b/dap-gateway/src/main/resources/static/tester.html index 10d760c2..7ae48a56 100644 --- a/dap-gateway/src/main/resources/static/tester.html +++ b/dap-gateway/src/main/resources/static/tester.html @@ -297,8 +297,9 @@ t._latency = 0; t._responseData = null; categories.add(t._meta?.category_key || 'oth'); - if (t._meta?.moduleName) { - modules.add(t._meta.moduleName.replace('dap-was-', '')); + const modName = t.name ? t.name.split('_')[0].replace('dap-was-', '') : ''; + if (modName) { + modules.add(modName); } }); @@ -358,7 +359,7 @@ filteredTools = allTools.filter(t => { const matchSearch = t.name.toLowerCase().includes(search) || (t.description || '').toLowerCase().includes(search); const matchCategory = !category || (t._meta?.category_key || 'oth') === category; - const toolMod = t._meta?.moduleName ? t._meta.moduleName.replace('dap-was-', '') : ''; + const toolMod = t.name ? t.name.split('_')[0].replace('dap-was-', '') : ''; const matchModule = !moduleFlt || toolMod === moduleFlt; return matchSearch && matchCategory && matchModule; }); @@ -395,7 +396,7 @@ html += ` - ${tool._meta?.moduleName ? tool._meta.moduleName.replace('dap-was-', '') : 'unknown'} + ${tool.name ? tool.name.split('_')[0].replace('dap-was-', '') : 'unknown'} ${tool._meta?.category_key || 'oth'} ${tool.name}