refactor: 将 MCP 配置和代码改为符合 Spring AI 标准规范
- 修改 application.properties 使用标准属性路径 spring.ai.mcp.client.stdio.connections - 将 args 参数格式从字符串改为数组格式 args[0] - 移除手动的 MCP 进程启动和 JSON-RPC 实现(60+ 行代码) - 使用 Spring AI 自动配置的 SyncMcpToolCallbackProvider 注入 MCP 工具 - 修复风险成本数值范围(1.2 ~ 2.5)与文档描述一致 - 优化 SKILL.md 描述,明确必须先使用主定价 Agent 参考文档: https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0260bc35cf
commit
7141a3f72c
4 files changed
+11
-125
No files matched your search
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: 客户定价
|
||||
description: 微众银行科创贷主定价Agent,负责编排并串联整个定价流程。确保整个流程有序、可追溯,并与客户经理交互确认。
|
||||
description: 微众银行科创贷主定价Agent,负责编排并串联整个定价流程。确保整个流程有序、可追溯,并与客户经理交互确认。在使用客户分层、定价方案选择、各种定价方案之前必须先使用该SKILL。
|
||||
version: 1.0.0
|
||||
category: business
|
||||
author: 微众银行
|
||||
|
||||
@@ -35,7 +35,8 @@ agent.model.knowledge.cutoff=2025-01-01
|
||||
# agent.model.knowledge.cutoff=Unknown
|
||||
|
||||
## MCP Server Configuration
|
||||
# 参考文档: https://docs.spring.io/spring-ai/reference/api/mcp/mcp-client-boot-starter-docs.html
|
||||
|
||||
# 客户风险成本 MCP 服务器
|
||||
spring.ai.mcp.client.risk-cost.command=node
|
||||
spring.ai.mcp.client.risk-cost.args=D:/project/spring-ai-skill/mcp-servers/risk-cost-server/index.js
|
||||
# 客户风险成本 MCP 服务器 (STDIO 方式)
|
||||
spring.ai.mcp.client.stdio.connections.risk-cost.command=node
|
||||
spring.ai.mcp.client.stdio.connections.risk-cost.args[0]=D:/project/spring-ai-skill/mcp-servers/risk-cost-server/index.js
|
||||
Reference in new issue
Block a user