From d8a745606b13b797d0d0f19eded43c3ac67cd7f1 Mon Sep 17 00:00:00 2001 From: wannabeing Date: Mon, 11 Aug 2025 16:08:47 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20MCP=20=EB=8F=84=EC=9E=85=ED=95=A0?= =?UTF-8?q?=20=EB=95=8C=20=ED=95=84=EC=9A=94=ED=95=9C=20npx=20=ED=8C=A8?= =?UTF-8?q?=ED=82=A4=EC=A7=80=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cs25-service/Dockerfile | 8 ++++++++ cs25-service/src/main/resources/application.properties | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/cs25-service/Dockerfile b/cs25-service/Dockerfile index 65fd9b67..dc2c1800 100644 --- a/cs25-service/Dockerfile +++ b/cs25-service/Dockerfile @@ -20,6 +20,14 @@ LABEL type="application" module="cs25-service" # 작업 디렉토리 WORKDIR /apps +# Node.js + npm 설치 후, MCP 서버 전역 설치 +RUN apt-get update && apt-get install -y curl ca-certificates gnupg \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y nodejs \ + && npm install -g @modelcontextprotocol/server-brave-search \ + && node -v && npm -v && which server-brave-search \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + # jar 복사 COPY --from=builder /build/cs25-service/build/libs/*.jar app.jar diff --git a/cs25-service/src/main/resources/application.properties b/cs25-service/src/main/resources/application.properties index 7fa42814..b879bdc8 100644 --- a/cs25-service/src/main/resources/application.properties +++ b/cs25-service/src/main/resources/application.properties @@ -68,9 +68,7 @@ spring.ai.mcp.client.type=SYNC spring.ai.mcp.client.request-timeout=30s spring.ai.mcp.client.root-change-notification=false # STDIO Connect: Brave Search -spring.ai.mcp.client.stdio.connections.brave.command=npx -spring.ai.mcp.client.stdio.connections.brave.args[0]=-y -spring.ai.mcp.client.stdio.connections.brave.args[1]=@modelcontextprotocol/server-brave-search +spring.ai.mcp.client.stdio.connections.brave.command=server-brave-search spring.ai.mcp.client.stdio.connections.brave.env.BRAVE_API_KEY=${BRAVE_API_KEY} #MAIL spring.mail.host=smtp.gmail.com From 10c438a49b53887e13e0d105e460113756f1f71a Mon Sep 17 00:00:00 2001 From: wannabeing Date: Mon, 11 Aug 2025 16:22:42 +0900 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=EB=B6=80=ED=8C=85=20=EC=8B=9C=20?= =?UTF-8?q?=EC=99=B8=EB=B6=80=20=ED=94=84=EB=A1=9C=EC=84=B8=EC=8A=A4=20?= =?UTF-8?q?=EB=AF=B8=EC=8B=A4=ED=96=89=20(=EC=9A=94=EC=B2=AD=20=EC=8B=9C?= =?UTF-8?q?=20=EC=97=B0=EA=B2=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cs25-service/src/main/resources/application.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/cs25-service/src/main/resources/application.properties b/cs25-service/src/main/resources/application.properties index b879bdc8..9da7b156 100644 --- a/cs25-service/src/main/resources/application.properties +++ b/cs25-service/src/main/resources/application.properties @@ -70,6 +70,7 @@ spring.ai.mcp.client.root-change-notification=false # STDIO Connect: Brave Search spring.ai.mcp.client.stdio.connections.brave.command=server-brave-search spring.ai.mcp.client.stdio.connections.brave.env.BRAVE_API_KEY=${BRAVE_API_KEY} +spring.ai.mcp.client.initialized=false #MAIL spring.mail.host=smtp.gmail.com spring.mail.port=587