Back to MCP directory
publicPublicdnsLocal runtime

quarkus-mcp-server

Quarkus Model Context Protocol (MCP) Server是一个开源协议服务器,支持通过声明式和编程式API轻松集成LLM应用与外部数据源和工具。

article

README

🚀 Quarkus 模型上下文协议(MCP)服务器

Quarkus 模型上下文协议(MCP)服务器提供声明性和编程式的 API,让开发者能轻松实现 MCP 服务器功能。模型上下文协议(MCP)是一个开放协议,可使 LLM 应用程序与外部数据源和工具之间实现无缝集成。

所有贡献者

版本

"模型上下文协议 (MCP) 是一个开放协议,使 LLM 应用程序与外部数据源和工具之间的集成无缝。"

💡 使用提示

LangChain4j 提供了针对这个项目的 Micronaut 支持。

✨ 主要特性

  • 提供声明性和编程式的 API,便于开发者实现 MCP 服务器功能。
  • 支持与外部数据源和工具的无缝集成。

🚀 快速开始

前提条件

  • Java 17 或更高版本
  • Maven 3.6 或更高版本

操作步骤

  1. 创建一个新的 Maven 项目:
mvn io.takari:maven-embeddedlauncher-maven-plugin:quickstart \
    -DgroupId=org.example \
    -DartifactId=mcp-server-example \
    -DclassName="org.example.HelloWorld" \
    -Dversion="1.0-SNAPSHOT"
  1. 将以下代码添加到项目的 src/main/java/org/example/HelloWorld.java 文件中:
package org.example;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("你好,MCP 服务器!");
    }
}
  1. 编译并运行项目:
mvn clean install

📚 详细文档

🤝 贡献者

感谢以下为该项目做出贡献的个人和组织:

  • Max Rydahl Andersen - 提供了关键的代码实现和示例贡献
  • George Gastaldi - 维护项目的基础设施
  • Jan Martiska - 编写项目文档
  • Ioannis Canellos - 贡献了核心功能的实现
  • Rostislav Svoboda - 修复了多个关键问题
  • Sergey Beryozkin - 提供了示例和测试用例

📋 贡献指南

这个项目遵循 all-contributors 规范。欢迎任何形式的贡献!

如果对项目有任何疑问或需要帮助,请随时通过以下方式联系:

如需了解更多信息或参与贡献,请访问项目的 GitHub 页面

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client