langchain4j-mcp-server-patterns

仓库创建 2025年10月21日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

适合需要实现模型上下文协议与工具调用的 Java 后端与代理服务开发者。

▸ 风险提示

可能暴露工具调用能力,需做好能力过滤与访问控制

这个 Skill 做什么

提供实现 MCP(Model Context Protocol)服务器和在 Java 中暴露工具调用能力的设计模式。

提供在 Java 中实现 MCP(Model Context Protocol)服务器和暴露工具调用能力的设计模式,包含如何定义工具与资源接口、选择传输与引导模型、以及在暴露前过滤不安全能力。适合需要把 LangChain4j 连接到外部 MCP 服务或搭建自托管 MCP server 的场景。强调安全控制、清晰的工具表面和与 AiServices 的集成细节。

▸ 展开 SKILL.md 英文原文

Provides LangChain4j patterns for implementing MCP (Model Context Protocol) servers, creating Java AI tools, exposing tool calling capabilities, and integrating MCP clients with AI services. Use when building a Java MCP server, implementing tool calling in Java, connecting LangChain4j to external MCP servers, or securing tool exposure for agent workflows.

开发编程LangChain4jMCP工具调用通用
311
Stars
37
Forks
40
仓库内 Skill
+10
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/langchain4j-mcp-server-patterns/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/giuseppe-trisciuoglio/developer-kit/main/plugins/developer-kit-java/skills/langchain4j-mcp-server-patterns/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# LangChain4j MCP Server Implementation Patterns

## Overview

Use this skill to design and implement Model Context Protocol (MCP) integrations with LangChain4j.

The main concerns are:
- defining a clean tool, resource, and prompt surface
- choosing the right transport and bootstrap model
- filtering unsafe capabilities before exposing them to agents or applications

Keep `SKILL.md` focused on the implementation flow. Use the bundled references for expanded examples and API-level detail.

## When to Use

Use this skill when:
- building a Java MCP server that exposes tools, resources, or prompts
- integrating LangChain4j with one or more external MCP servers
- wiring MCP support into a Sprin
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有