From 363568e004b0bd91400f89770ada53fe14ed0f3c Mon Sep 17 00:00:00 2001 From: bigtian <7990497@qq.com> Date: Thu, 26 Jun 2025 17:19:33 +0800 Subject: [PATCH] Refactor project structure and update Maven configuration for CRM service --- crm-mcp/pom.xml | 2 +- .../src/main/resources/application-dev.yml | 23 ++++++++----------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/crm-mcp/pom.xml b/crm-mcp/pom.xml index 7c381a0..b7a0153 100644 --- a/crm-mcp/pom.xml +++ b/crm-mcp/pom.xml @@ -20,7 +20,7 @@ org.springframework.ai - spring-ai-starter-mcp-server-webmvc + spring-ai-starter-mcp-server-webflux com.alibaba.fastjson2 diff --git a/crm-mcp/src/main/resources/application-dev.yml b/crm-mcp/src/main/resources/application-dev.yml index bb582b8..5197477 100644 --- a/crm-mcp/src/main/resources/application-dev.yml +++ b/crm-mcp/src/main/resources/application-dev.yml @@ -3,21 +3,16 @@ crm: tenantId: BIO token: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJUXdrczhuUWc4NnJPQkpuenJDUThtbjl1N3FEQ2lWZyJ9.91GO7OMhVbc0tLBRZ7HYiFDEA92PXE7H1gHduwxWu2I -# Using spring-ai-starter-mcp-server-webmvc spring: ai: mcp: server: - name: webmvc-mcp-server - version: 1.0.0 - type: SYNC - instructions: "This server provides weather information tools and resources" - sse-message-endpoint: /crm-mcp/mcp/sse - capabilities: - tool: true - resource: true - prompt: true - completion: true -server: - servlet: - context-path: /crm-mcp \ No newline at end of file + name: crm-mcp-server + version: 0.0.1 + type: ASYNC + # 配置 URL 前缀 + base-url: /crm-mcp + # 配置 sse 的根路径,默认值为 /sse + sse-endpoint: /sse + sse-message-endpoint: /mcp +