DJ

danvega/javaone-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

17 stars 7 forks 品質 48 トレンド 21

JavaOne MCP Server is a lightweight Java application that implements the Model Context Protocol (MCP), allowing AI models to access information about JavaOne conference presentations.

概要

JavaOne MCP Server is a lightweight Java application that implements the Model Context Protocol (MCP), allowing AI models to access information about JavaOne conference presentations. This server exposes presentation data through standardized MCP tools, making it easy to integrate with AI assistants that support the protocol. - Java 24 - Maven 3.8+ - Model Context Protocol SDK 0.9.0 - SLF4J for logging This project relies on the following key components: After cloning the repository, you can build the project using Maven: This will create an executable JAR file in the target directory with all dependencies included. Execute the JAR file to start the MCP server: The application starts an MCP server that communicates via standard input/output (STDIO) and provides access to JavaOne presentation data. - : Main entry point that configures and starts the MCP server - : Data model representing a JavaOne presentation - : Service that provides presentation data and operations

README

以下は原文 README の抜粋です。原文を見る。

JavaOne MCP Server

A Model Context Protocol Server for Accessing JavaOne Presentations

JavaOne MCP Server is a lightweight Java application that implements the Model Context Protocol (MCP), allowing AI models to access information about JavaOne conference presentations. This server exposes presentation data through standardized MCP tools, making it easy to integrate with AI assistants that support the protocol.

Project Requirements

  • Java 24
  • Maven 3.8+
  • Model Context Protocol SDK 0.9.0
  • SLF4J for logging

Dependencies

This project relies on the following key components:


    io.modelcontextprotocol.sdk
    mcp

    org.slf4j
    slf4j-api

    org.slf4j
    slf4j-simple

Getting Started

After cloning the repository, you can build the project using Maven:

mvn clean package

This will create an executable JAR file in the target directory with all dependencies included.

How to Run the Application

Execute the JAR file to start the MCP server:

java -jar target/javaone-mcp-0.0.2.jar

The application starts an MCP server that communicates via standard input/output (STDIO) and provides access to JavaOne presentation data.

Understanding the Project Structure

Core Components

  • Application.java: Main entry point that configures and starts the MCP server
  • Presentation.java: Data model representing a JavaOne presentation
  • PresentationTools.java: Service that provides presentation data and operations

MCP Server Configuration

The server is configured with:

  • STDIO transport provider for communication
  • Server information (name and version)
  • Tool capabilities for accessing presentation data
McpSyncServer syncServer = McpServer.sync(transportProvider)
    .serverInfo("javaone-mcp-server", "0.0.1")
    .capabilities(McpSchema.ServerCapabilities.builder()
            .tools(true)
            .logging()
            .build())
    .tools(syncToolSpecification)
    .build();

Available Tools

The server exposes the following MCP tool:

  • get_presentations: Returns a list of all JavaOne presentations

Testing with MCP Inspector

The MCP Inspector is a helpful tool for testing and debugging your MCP server. Follow these steps to test your JavaOne MCP Server:

  1. Install Node.js if you haven’t already
  2. Navigate to your project directory and get the absolute path to the JAR file:
# On Linux/macOS
FULL_PATH=$(pwd)/target/javaone-mcp-0.0.2.jar
echo $FULL_PATH

# On Windows PowerShell
$FULL_PATH="$(Get-Location)\target\javaone-mcp-0.0.2.jar"
echo $FULL_PATH
  1. Run the MCP Inspector with your server using the full path:
npx @modelcontextprotocol/inspector java -jar $FULL_PATH
GitHub で README 全文を見る

インストール

npx @modelcontextprotocol/inspector java -jar $FULL_PATH
MCP 初心者?mcpskill.org のガイドから始めましょう →