spring-ai-mcp-server-patterns
仓库创建 2025年10月21日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由
便于将 AI 功能以服务形式暴露并支持多种传输与扩展。
▸ 风险提示
暴露远程调用接口,需严格鉴权、审计与流量控制。
这个 Skill 做什么
基于 Spring AI 的 MCP 服务器实现模式:工具处理、Prompt 与传输配置。
用于用 Spring AI 搭建 MCP(Model Context Protocol)服务器:写 @Tool 处理器、管理 PromptTemplate、配置 stdio/HTTP/SSE 等传输并暴露工具或函数调用接口。会在需要把自有工具/函数暴露给模型、实现 function calling 或做安全的 AI 服务端时用到。特别在于结合 Spring 官方 AI 框架,把工具调用、提示模板和传输层一起做好,便于集成和运维。
▸ 展开 SKILL.md 英文原文
Provides Spring Boot MCP server patterns that create Model Context Protocol servers with Spring AI by defining tool handlers, exposing resources, configuring prompt templates, and setting up transports for AI function calling and tool calling. Use when building MCP servers to extend AI capabilities with Spring's official AI framework, implementing AI tools, custom function calling, or MCP client integration.
311
Stars
37
Forks
40
仓库内 Skill
+10
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/spring-ai-mcp-server-patterns/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/spring-ai-mcp-server-patterns/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Spring AI MCP Server Implementation Patterns Implements MCP servers with Spring AI for AI function calling, tool handlers, and MCP transport configuration. ## Overview Production-ready MCP server patterns: `@Tool` functions, `@PromptTemplate` resources, and stdio/HTTP/SSE transports with Spring AI security. ## When to Use MCP servers, Spring AI function calling, AI tools, tool calling, custom tool handlers, Spring Boot MCP, resource endpoints, or MCP transport configuration. ## Quick Reference ### Core Annotations | Annotation | Target | Purpose | |-----------|--------|---------| | `@EnableMcpServer` | Class | Enable MCP server auto-configuration | | `@Tool(description)` | Method |
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有