Juneau AI
Expose your services to AI agents over MCP.
import org.apache.juneau.rest.server.*;
import org.apache.juneau.rest.server.mcp.*;
import org.apache.juneau.rest.server.mcp.v20250618.McpRestServlet;
@Rest(path="/mcp")
public class MyMcpServlet extends McpRestServlet {
@Override
protected McpServerConfig createMcpConfig() {
return new McpServerConfig()
.setName("my-server").setVersion("1.0.0")
.addTool(new MyEchoTool());
}
}
- MCP tools, prompts and resources served from a REST resource.
- Two MCP protocol versions, each in its own module.
- An MCP client, with auth.
- Typed beans for the MCP wire messages.
- A quickstart, and a guide to choosing your MCP setup.
Modules: juneau-rest-server-mcp, juneau-rest-server-mcp-v20250618, juneau-rest-server-mcp-v20260728, juneau-rest-client-mcp, juneau-rest-client-mcp-auth, juneau-rest-client-mcp-v20250618, juneau-rest-client-mcp-v20260728