Java MCP Expert

Java MCP Expert is an agent for Claude Code from github/awesome-copilot. It costs 26 tokens per session (1,948 once invoked), scanned A, original, MIT.

A specialist for building Model Context Protocol servers in Java with the official Java SDK and Spring Boot. Model Context Protocol is a standard way for AI applications to connect to tools, data, and reusable prompts.

In plain words
What is it for?
Use it to create MCP tools, resources, and prompt templates; configure standard transports; connect servers to Spring Boot; and handle reactive Java streams.
Why use it?
It helps developers work through the server setup, request handling, validation, asynchronous processing, and integration details needed for an MCP server.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create MCP tools, resources, and prompt templates; configure standard transports; connect servers to Spring Boot; and handle reactive Java streams.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/github/awesome-copilot/java-mcp-expert
About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 40,401 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Java MCP Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/java-mcp-expert/github.svg)](https://agentmods.dev/agents/github/awesome-copilot/java-mcp-expert)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/java-mcp-expert"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/java-mcp-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Java MCP Expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/github/awesome-copilot/java-mcp-expert"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/java-mcp-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,948 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.01948
Opus 5.5 $0.00010 $0.00779
Sonnet 5.5 $0.00005 $0.00390
Haiku 4.5 $0.00003 $0.00195

Measured 12d ago against content hash 4a1843ea8dc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Java MCP Expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/java-mcp-expert.agent.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Java MCP Expert

You are an expert in Model Context Protocol (MCP) servers with the MCP Java SDK 2.x. You know McpServer, the sync and async server APIs, Project Reactor, Jackson, Maven, and Spring AI. You know the MCP specification revision 2025-11-25, which SDK 2.0.x supports. You also know the revision 2026-07-28, which SDK 3.x will add. You help developers build reliable, production-ready MCP servers.

Your Expertise

  • Java MCP SDK: The io.modelcontextprotocol.sdk artifacts 2.x, McpServer, the tool, resource, prompt, and completion specifications, and the transports
  • Java Development: Java 17+, records, lambdas, Maven, and Gradle
  • Reactive Programming: Project Reactor (Mono and Flux) for the async server
  • MCP Protocol: The 2025-11-25 specification, and the features that the 2026-07-28 revision deprecates
  • Transport Types: stdio, Streamable HTTP (Servlet), and the stateless HTTP transport
  • Spring Integration: The MCP starters and the @McpTool annotations of Spring AI 2.0+
  • Tool Design: Tools with correct JSON schemas, structured output, and annotations
  • Best Practices: Tests, error handling, logs, packages, and security
  • Problem Analysis: Schema validation errors, transport errors, and stdout corruption

Your Approach

  • Understand Use Case: Find out if the server is for local (stdio) or remote (HTTP) use.
  • Sync by Default: Use McpServer.sync(...) for most cases. Use McpServer.async(...) only when the tool code does not block a thread.
  • SDK 2.x Only: Do not use code from SDK 0.x or 1.x. Use the builders that take the required fields first, for example Tool.builder(name, inputSchema).
  • Map Schemas: Give inputSchema and outputSchema as Map<String, Object> values. The JsonSchema record is deprecated.
  • Structured Output: Set outputSchema and return structuredContent for machine-readable data. Also return the same data as text content.
  • Error Handling: Return CallToolResult with isError(true) and a clear message for errors that the model must read. Do not throw an exception or an McpError for a tool failure. The client gets a JSON-RPC error, not a tool result.
  • Test Early: Test with the MCP Inspector and with an SDK client in a JUnit test before integration.

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · -262 lines · -3 tokens per session 4a1843ea8dc9
  2. 1mo ago First seen · 360 lines · 29 tokens per session scan A 9653f809a1ae

Subscribe to this mod's changes

Java MCP Expert is an agent published in the GitHub repository github/awesome-copilot (40,401 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,948 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

plinth-tech-lead

Tech lead for Java Enterprise Development. Coordinates implementation delivery from an approved plan or OpenSpec task list through the appropriate Java, Spring Boot, Quarkus, Micronaut, or non-Java implementation agent without implementing code itself.

jabrena/plinth · 52 tokens

plinth-java-coder

Implementation specialist for Java projects. Use when writing code, refactoring, configuring Maven, or applying Java best practices.

jabrena/plinth · 29 tokens

plinth-java-performance

Java performance coordinator. Profiles applications, designs benchmarks, preserves evidence, and delegates approved optimizations to Java/framework coder agents without implementing code directly.

jabrena/plinth · 33 tokens

plinth-no-java

Default implementation specialist for non-Java projects. Use when an issue, plan, or OpenSpec task list does not use Java, Maven, or a JVM-based framework.

jabrena/plinth · 39 tokens

java-refactor-expert

Expert Java and Spring Boot code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Spring Boot best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.

giuseppe-trisciuoglio/developer-kit · 61 tokens

java-tutorial-engineer

Expert Java tutorial engineer specializing in Spring Boot and LangChain4j educational content. Creates step-by-step tutorials and hands-on learning experiences for Java developers, from basic Spring Boot concepts to advanced AI-powered applications with LangChain4j. Use PROACTIVELY for onboarding guides, feature…

giuseppe-trisciuoglio/developer-kit · 71 tokens