From ba744a5f3def5a2df2fd908d4287bdcd05122c98 Mon Sep 17 00:00:00 2001 From: huangge1199 Date: Wed, 4 Jun 2025 16:39:52 +0800 Subject: [PATCH] =?UTF-8?q?MCP=EF=BC=9A=E5=9B=BE=E7=89=87=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=9C=8D=E5=8A=A1=EF=BC=8C=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - src/main/resources/application.yml | 2 +- src/main/resources/mcp-servers.json | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/mcp-servers.json diff --git a/.gitignore b/.gitignore index f116dbc..eb3a026 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,3 @@ build/ .vscode/ /src/main/resources/application-dev.yml /tmp/ -/src/main/resources/mcp-servers.json diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 2c51b80..315066d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -9,7 +9,7 @@ spring: options: model: qwen-plus ollama: - base-url: http://192.168.1.9:11435 + base-url: http://192.168.188.2:11435 chat: model: llama3.2:3b vectorstore: diff --git a/src/main/resources/mcp-servers.json b/src/main/resources/mcp-servers.json new file mode 100644 index 0000000..f573ea4 --- /dev/null +++ b/src/main/resources/mcp-servers.json @@ -0,0 +1,15 @@ +{ + "mcpServers": { + "yu-image-search-mcp-server": { + "command": "java", + "args": [ + "-Dspring.ai.mcp.server.stdio=true", + "-Dspring.main.web-application-type=none", + "-Dlogging.pattern.console=", + "-jar", + "long-image-search-mcp-server/target/long-image-search-mcp-server-0.0.1-SNAPSHOT.jar" + ], + "env": {} + } + } +}