SS

sohamkamani/spring-boot-mcp-server-example

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

17 stars 19 forks 품질 27 트렌드 9

이 저장소에는 Model Context Protocol (MCP)를 구현하는 Java 서버의 예가 포함되어 있습니다. 기본 쇼핑 목록 예가 포함되어 있습니다.

개요

이 저장소에는 Model Context Protocol (MCP)를 구현하는 Java 서버의 예가 포함되어 있습니다. 기본 쇼핑 목록 예가 포함되어 있습니다. - src/main/java: 메인 Java 소스 코드를 포함합니다. - src/main/resources: 속성 파일과 같은 애플리케이션 리소스를 포함합니다. - model-context-protocol/weather/starter-stdio-server: MCP 서버 예시와 관련이 있을 수 있습니다. 프로젝트의 루트 디렉토리에 터미널을 열고 실행: (또는 mvn 스프링 부츠 : Maven 래퍼가없는 경우 실행하거나 IDE의 실행 명령을 사용하십시오). 당신은 일부 스프링 부팅 시작 로그를 볼 수 있어야합니다 (우리 application.properties 설정으로 콘솔에서 최소한이어야한다). MCP 서버가 실행되지 않고 MCP 클라이언트가 STDIO를 통해 연결하도록 기다리는 경우.

개요(AI 번역)

이 저장소에는 Model Context Protocol (MCP)를 구현하는 Java 서버의 예가 포함되어 있습니다. 기본 쇼핑 목록 예가 포함되어 있습니다.

프로젝트 구조

  • src/main/java: 주요 Java 소스 코드를 포함합니다.
  • src/main/resources: 속성 파일과 같은 응용 리소스를 포함합니다.
  • model-context-protocol/weather/starter-stdio-server: MCP 서버 예제와 관련이 있습니다.

시작하기

프로젝트의 루트 디렉토리에 터미널을 열고 실행:

(또는 mvn spring-boot:run] Maven 래퍼가 없거나 IDE의 실행 명령을 사용하지 않는 경우).

일부 스프링 부팅 시작 로그를 볼 수 있어야합니다 (우리 application.properties 설정으로 콘솔에서 최소한이어야합니다). MCP 서버가 실행되지 않고 MCP 클라이언트가 STDIO를 통해 연결하도록 기다리는 경우.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

Java MCP Server Example

This repository contains an example of a Java server implementing the Model Context Protocol (MCP). It includes a basic shopping list example.

Project Structure

  • src/main/java: Contains the main Java source code.
  • src/main/resources: Contains application resources like properties files.
  • model-context-protocol/weather/starter-stdio-server: Seems to be related to a weather MCP server example.

Getting Started

Open your terminal in the project’s root directory and run:

./mvnw spring-boot:run

(Or mvn spring-boot:run if you don’t have the Maven wrapper, or use your IDE’s run command).

You should see some Spring Boot startup logs (which will be minimal on the console due to our application.properties settings). If there are no major errors, your MCP server is running and waiting for an MCP client to connect via STDIO.

GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →