
lightweight-component/aj-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Java 8で簡単なMCP SDK
概要
AJ-MCP は、Java 用の軽量モデルコンテキストプロトコル(MCP)SDKです。 特に、Java 8 や Spring Boot 2.x に残さなければならない既存のシステムのために、MCP クライアントやサーバーを構築するための小型で直接 API を提供します。 - Java 8以上をサポートし、スプリングブーツ2.xをサポートしています。 - 軽量で小型で、ジャクソンJSONとOkHttpは主要なランタイム依存関係として。 - サンプルとバイリンガルのドキュメントを使用して、使いやすく拡張できます。 - STDIO、レガシー HTTP/SSE トランスポート、および ストリーミング可能な HTTP をサポートします。 - MCP プロトコルのリビジョン 2024-11-05、2025-03-26 および 2025-06-18 をバージョン交渉で実装します。 - ツール、リソース、リソーステンプレート、プロンプト、完了、パジネーション、サブスクリプション、キャンセル、ロギング、ルート、サンプリング、およびエリシテーションをカバーします。 MCP SDKコンポーネントの3つのプロジェクトをご覧ください。 - AJ MCP Common、AJ-MCP の Common ライブラリは、モデルコンテキストプロトコルの実装と他の一般的なクラスを含みます。 - AJ MCPクライアント、MCPクライアントSDK.
概要(AI 翻訳)
AJ-MCPの特長 軽量 Java MCP SDK
AJ-MCP は、Java 用の軽量モデルコンテキストプロトコル(MCP)SDKです。 小規模で直接APIを提供 MCP クライアントとサーバー、特に Java に残らない既存のシステム 8またはスプリングブーツ2.x。
- Java 8 以上をサポートし、Spring Boot 2.x をサポートしています。
- ジャクソンJSONとOkHttpをメインランタイムの依存関係として軽量で小さい。
- サンプルとバイリンガルのドキュメントを使用して、使いやすく拡張できます。
- STDIO、レガシー HTTP/SSE トランスポート、および ストリーミング可能な HTTP をサポートします。
- MCP プロトコルのリビジョン
2024-11-05,2025-03-26], [2025-06-18] をバージョン交渉で実装します。 - ツール、リソース、リソーステンプレート、プロンプト、完了、パジネーション、サブスクリプション、キャンセル、ロギング、 ルーツ、サンプリング、および勧誘。
MCP SDKコンポーネントの3つのプロジェクトをご覧ください。
AJ Util を使用して、Java 8 で独立した AJ MCP Next プロジェクト ターゲット [2026-07-28])。
このレガシーSDKとは別に、STDIOとセッションレスHTTPアダプタを備えたコア/クライアント/サーバーモジュールを持っています。
- AJ MCP Common、AJ-MCP の Common ライブラリ、モデルコンテキストの実装が含まれています プロトコルとその他の一般的な
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
AJ-MCP A Lightweight Java MCP SDK
AJ-MCP is a lightweight Model Context Protocol (MCP) SDK for Java. It provides a small, direct API for building MCP clients and servers, especially for existing systems that must remain on Java 8 or Spring Boot 2.x.
- Supports Java 8 and above, and supports Spring Boot 2.x.
- Lightweight and small, with Jackson JSON and OkHttp as its main runtime dependencies.
- Easy to use and extend, with examples and bilingual documentation.
- Supports STDIO, the legacy HTTP/SSE transport, and Streamable HTTP.
- Implements MCP protocol revisions
2024-11-05,2025-03-26, and2025-06-18with version negotiation. - Covers tools, resources, resource templates, prompts, completion, pagination, subscriptions, cancellation, logging, roots, sampling, and elicitation.
Check out these three projects of MCP SDK components:
The independent AJ MCP Next project targets 2026-07-28 on Java 8 using AJ Util.
It has core/client/server modules with STDIO and sessionless HTTP adapters, separate from this legacy SDK.
- AJ MCP Common, Common library for AJ-MCP, it contains the implementation of the Model Context Protocol and some other common classes.
- AJ MCP Client, MCP Client SDK.
- AJ MCP Server, MCP Server SDK.
- Samples for both client and server.
- Spring Streamable HTTP sample, with a dedicated
StreamableHttpClientExampleinsamples/client(Java 8).
For further information, please refer to the User Manual website.
When to use AJ-MCP
AJ-MCP is intended for Java applications that need to expose existing business capabilities to AI clients, or consume MCP servers without upgrading the entire application stack. Typical uses include:
- wrapping an existing Java service as MCP tools, resources, or prompts;
- connecting a Java desktop or server application to a local STDIO MCP process;
- integrating MCP into Spring Boot 2.x or a Servlet-based application;
- supporting clients that negotiate different MCP protocol revisions.
JSON-RPC batch messages are intentionally not supported.
Modules
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →