
MCP-DECLARATIVE-JAVA-SDK-例例
MCP服务器示例:使用注释驱动的MCP Java SDK构建
1
Github Watches
0
Github Forks
0
Github Stars
MCP Declarative Java SDK Examples
Built using Annotation-driven MCP Java SDK - No Spring Framework Required.
What is MCP?
The Model Context Protocol (MCP) lets you build servers that expose data and functionality to LLM applications in a secure, standardized way. Think of it like a web API, but specifically designed for LLM interactions. MCP servers can:
- Expose data through Resources (think of these sort of like GET endpoints; they are used to load information into the LLM's context)
- Provide functionality through Tools (sort of like POST endpoints; they are used to execute code or otherwise produce a side effect)
- Define interaction patterns through Prompts (reusable templates for LLM interactions)
- And more!
You can start exploring everything about MCP from here.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Take an adjectivised noun, and create images making it progressively more adjective!
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Reviews

user_Pa44hhpc
As a devoted user of MCP applications, I highly recommend the mcp-declarative-java-sdk-examples by codeboyzhou. This repository offers clear and comprehensive examples in Java, making it incredibly useful for both beginners and seasoned developers. The code is well-structured and easy to follow, which greatly simplifies the learning curve for anyone interested in declarative programming with MCP. Check it out on GitHub: https://github.com/codeboyzhou/mcp-declarative-java-sdk-examples