The Model Context Protocol (MCP) has become the common way for AI assistants and agents to call tools, read resources and use prompts provided by other systems. Much of the business logic and data those agents need already runs in Jakarta EE applications, but Jakarta EE has no vendor-neutral way to expose it over MCP.
The MCP specification revision 2026-07-28 makes the protocol stateless: no `initialize` handshake and no session id, so any request can be served by any instance behind a load balancer. This fits the Jakarta EE deployment model of clustered, horizontally scaled application servers well, and removes the main reason for a framework-specific session layer.
The Eclipse BeanWire MCP Server was started by Gerrit Grunwald in November 2026 to fill this gap. It implements an MCP server using only the Jakarta EE 11 Web Profile APIs (CDI, Jakarta REST, JSON Processing). It has no third-party runtime dependencies, not even a JWT library. It runs unchanged on Payara 7, WildFly and Open Liberty, all verified in CI, and passes all 196 checks of the official MCP conformance suite on each of them.
Moving the project to the Eclipse Foundation gives Jakarta EE users a vendor-neutral, openly governed MCP implementation next to the platform specifications. It also gives runtime vendors a shared implementation to test against and contribute to, instead of each building their own.
Eclipse BeanWire MCP Server provides a portable implementation of the server side of the Model Context Protocol for Jakarta EE applications, built only on Jakarta EE Web Profile APIs. The project includes:
- A library that exposes CDI beans as MCP tools, resources, prompts, completions and skills through annotations and handler interfaces, including JSON Schema generation and argument validation.
- The stateless Streamable HTTP transport, with streaming (SSE), notifications and multi round-trip requests such as elicitation.
- An OAuth 2.x resource server for MCP authorization (JWT and token introspection, protected resource metadata, scope checks per tool).
- Optional modules for MCP extensions (Tasks, Apps, Skills), persistent task storage and multi-instance notification delivery using Jakarta standards (JDBC, Jakarta Messaging).
- Integration tests, conformance test setups and examples that verify the implementation across compatible Jakarta EE runtimes.
The project tracks the MCP specification and its official extensions.
Eclipse Eclipse BeanWire MCP Server lets Jakarta EE developers make existing services available to AI agents by writing plain CDI beans. A public method annotated with `@McpTool` becomes an MCP tool; its parameters and return type (records, collections, enums, JSON-P types) are turned into JSON Schemas automatically. Resources and prompts work the same way with `@McpResource` and `@McpPrompt`. Because tool calls go through the CDI proxy, interceptors and scopes behave as Jakarta EE developers expect.
The server implements MCP specification revision 2026-07-28. Every request is self-describing, so the server keeps no session state and scales out behind an ordinary load balancer. Where state is needed between round trips, for example when a tool asks the user to confirm an action, it travels with the request as signed request state.
Main features:
- **Tools, resources, prompts and completions** via annotations or handler interfaces, plus dynamic registration at runtime with list-changed notifications.
- **Argument validation** against JSON Schema 2020-12, including recursive types (`$defs`/`$ref`) and optional `format` checks.
- **Streaming** of progress notifications over SSE, and `subscriptions/listen` for list-changed and resource-update notifications, optionally on virtual threads.
- **Elicitation and multi round-trip tools** for confirmation and input requests, with no server-side session.
- **Authorization** as an OAuth resource server: JWT validation with the JDK's own crypto, token introspection for opaque tokens, RFC 9728 metadata, audience binding and per-tool scopes. Verified against Keycloak.
- **Extensions:** Tasks (long-running, cancellable and restartable work, with cluster-wide failover), MCP Apps (interactive `ui://` pages) and Skills.
- **Trace context** propagation and `_meta`, icons and rich content in results.
None
After the initial contribution, the project will release 1.0.0 with a frozen public API, then make the library feel native to Jakarta EE developers.
The plan is also to add a client library.
Code that will be the basis for the initial contribution can be found here: https://github.com/HanSolo/jakarta-mcp-server
- Log in to post comments