
liuwenkai01/spring-ai-mcp-demo
Developer toolsThis page was translated automatically. Technical details may differ from the original. View the original
完整的Model Context Protocol演示项目,支持动态工具发现、SSE通信和REST API集成
Overview
这是一个全面的演示项目,展示了如何使用Spring AI的Model Context Protocol (MCP) 集成功能。 Model Context Protocol (MCP) 是一个开放标准,用于在AI应用程序和外部数据源及工具之间建立安全、可控的连接。它允许: - :AI模型可以调用外部工具和函数 - :AI模型可以访问文件、数据库和其他资源 - :在AI应用程序之间共享上下文信息 - :细粒度的权限控制和访问管理 首先配置客户端连接到服务器。编辑 spring-ai-mcp-client-demo/src/main/resources/application.yml: - add - 两数相加 - multiply - 两数相乘 - power - 幂运算 - uppercase - 转换为大写 - analyze_text - 文本分析 - reverse - 字符串反转 - system://info - 系统信息 - time://current - 当前时间 - app://status - 应用状态 - GET /api/mcp/tools - 获取可用工具列表 - GET /api/mcp/clients - 获取客户端连接信息 - POST /api/mcp/tools/{toolName}/call - 调用指定工具
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →