wwx441476
MCP Serverwwx441476public

mcp sdk demo

一个用于演示 MCP SDK 使用的 Java 示例项目。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Java
Language
-
License

About This Server

一个用于演示 MCP SDK 使用的 Java 示例项目。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

⚠️ 故障排除指南

本文档列出了用户在使用mcp sdk demo时遇到的常见问题以及如何解决这些问题。

1. 检查依赖

  • 首先要确保使用的是SpringBoot 3和JDK17,才能保证与MCP官方的Java SDK兼容。
  • maven版本我使用的是3.9.9,过低的版本例如3.6.1会产生编译失败的问题。
    • Idea中Maven推荐使用 已捆绑(Maven 3) --版本3.9.9
      • 正在导入 -> 导入程序的JDK -> 选择JDK17
      • 运行程序 -> JRE -> 选择JDK17
      • 项目结构 -> 项目 -> SDK -> 选择JDK17
      • 这里吐槽一下Idea里面需要在多个地方配置JDK17,不太友好

2. Port 12000 Fails to Start

错误:
Port 12000 failed to start or Address already in use

解决方案:

  • Make sure port 12000 is not being used by another application.
  • You can change the port with application.yml server.port <another_port>.

3. 启动顺序

  • 在maven工作区,执行clean、package指令
  • 运行和调试点击启动McpServerApplication
  • 运行StdioClientMcpTest测试类
  • 运行HttpClientSseMcpTest测试类
  • 运行ChatTest测试类

Quick Start

1

Clone the repository

git clone https://github.com/wwx441476/mcp-sdk-demo
2

Install dependencies

cd mcp-sdk-demo
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerwwx441476
Repomcp-sdk-demo
LanguageJava
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation