<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thibault Vallin on Medium]]></title>
        <description><![CDATA[Stories by Thibault Vallin on Medium]]></description>
        <link>https://medium.com/@thibault.vallin?source=rss-dcc567e4415b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*J4auDRFakNEfYBvLeCeyTw.png</url>
            <title>Stories by Thibault Vallin on Medium</title>
            <link>https://medium.com/@thibault.vallin?source=rss-dcc567e4415b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:01:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thibault.vallin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Helidon MCP: Building Connected AI Agents with Model Context Protocol]]></title>
            <link>https://medium.com/helidon/helidon-mcp-building-connected-ai-agents-with-model-context-protocol-009152c1c20b?source=rss-dcc567e4415b------2</link>
            <guid isPermaLink="false">https://medium.com/p/009152c1c20b</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[helidon]]></category>
            <dc:creator><![CDATA[Thibault Vallin]]></dc:creator>
            <pubDate>Tue, 14 Oct 2025 15:05:54 GMT</pubDate>
            <atom:updated>2025-10-14T15:26:40.842Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zE4TnFMdcjioHgKsCsXdvw.png" /></figure><p>In the rapidly evolving landscape of AI, new technologies and products emerge daily. Among them are <strong>AI agents</strong> — applications powered by large language models (LLMs) capable of performing increasingly complex tasks. Yet, many of these agents operate in isolation, while the modern world thrives on interconnected systems.</p><p><strong>What if AI agents could use a standard protocol to reach real time data from external data source seamlessly?</strong><br>This is precisely the vision behind <strong>MCP — the Model Context Protocol</strong>.</p><p>We are pleased to announce the <strong>Helidon MCP 1.0.0 </strong>release. It provides a powerful and flexible way to implement MCP using either a <strong>declarative</strong> or <strong>imperative</strong> programming style.</p><h3><strong>What is Model Context Protocol (MCP) ?</strong></h3><p>MCP is an open-source protocol introduced by <strong>Anthropic in 2024</strong>. It has since gained significant traction across the AI community and among vendors. MCP defines a <strong>standardized protocol </strong>for AI agents to reach external data, enabling accessibility across diverse systems and platforms.</p><h3>Architecture Overview</h3><p>MCP follows a <strong>client-server model</strong>:</p><ul><li>The <strong>client</strong> resides within the AI agent and connects to one or more MCP servers.</li><li>The <strong>server</strong> handles multiple client connections and manages access to external data sources.</li></ul><p>Communication between client and server follows the <strong>JSON-RPC 2.0 specification</strong>, which provides a standardized structure for requests, responses, and notifications. These messages are transmitted using various transport layers:</p><ul><li><strong>Stdio</strong> (Standard Input/Output) — for local integrations</li><li><strong>HTTP POST + SSE</strong> (Server-Sent Events) — for remote servers</li><li><strong>Streamable HTTP</strong> — the latest, optimized transport for remote communication</li></ul><p>Additionally, both clients and servers can initiate notifications and requests, allowing <strong>two-way interaction</strong> and enabling advanced capabilities like LLM-backed processing on the server side.</p><h4><strong>Tools</strong></h4><p>Tools are functions or services exposed by the server. They allow agents to:</p><ul><li>Process data</li><li>Retrieve information</li><li>Perform computations</li></ul><p>Each tool accepts inputs (described using JSON Schema) and can interact with real-time data sources.</p><h4>Resources</h4><p>Resources are contextual data made available to agents. Providing rich context is essential for LLMs to deliver meaningful results.<br>For example, a developer working in an IDE may ask an agent to modify a file. To do so accurately, the agent needs the file and surrounding project context — these are delivered as <strong>resources</strong>.</p><h4>Prompts</h4><p>Prompts in MCP are <strong>parameterized templates</strong> designed to be reused. This allows clients to expose prompts to users in a simplified form: users fill in parameters, and the agent takes care of the rest. It lowers the barrier for non-technical users to interact with LLMs effectively.</p><h4>Completions</h4><p>Completions assist users by <strong>suggesting values</strong> for prompt parameters or resource <em>URI</em>. As users type, the system can offer intelligent suggestions, enhancing usability and reducing onboarding friction.</p><h3>Helidon MCP: The Declarative way</h3><p>The approach is ideal for developers who want to focus on <strong>business logic</strong>, the declarative style relies on <strong>annotations</strong> processed at build time for optimal performance.</p><h4>Server</h4><p>Creating an MCP server with Helidon is easy:</p><ul><li>Annotate a Java class with @Mcp.Server</li><li>Override server name using its attribute</li><li>Expose the server at a custom path</li><li>Set the server version</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*i3SLQiVubSoghl-WGsQ_VQ.png" /></figure><h4><strong>Tool</strong></h4><p>Similarly, tools can be easily created using a method annotated with @Mcp.Tool.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*VUaL1iT9m_kD0mySayuf3Q.png" /></figure><p>The tool inputs are described using a JSON Schema. Helidon automatically creates a schema for primitive java types and Strings. The input parameters defined using POJOs must be annotated with @JsonSchema.Schema, enabling Helidon to generate JSON schemas at build time.</p><h4><strong>Resource</strong></h4><p>Likewise, you can declare a resource with the @Mcp.Resource annotation. The method should return the content directly, making implementation straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*6aGDcBwxbOW1wa60oDz80w.png" /></figure><h4><strong>Prompt</strong></h4><p>Creating prompts is simple — just define a method with String parameters. These act as placeholders for the user-filled values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*sxPdQFupNJtlgl9XAZWVpw.png" /></figure><h4><strong>Completion</strong></h4><p>Completions are declared by referencing a prompt or a resource <em>URI</em> and providing suggestions. For instance, a completion might suggest travel destinations for a “roadTrip” prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*Mrj8yH417AfLyftzQJZBKg.png" /></figure><h3>Helidon MCP: The Imperative way</h3><p>For developers who prefer fine-grained control, the imperative style allows full configuration via Builder APIs and interfaces. Every MCP Concept mentioned above can be built using a builder or an interface.</p><h4><strong>Creating the Server</strong></h4><p>Create an MCP server using <em>McpServerConfig </em>builder. It provides configuration methods to set <em>path, version</em> and <em>name</em>. The method with <em>add</em> prefix automatically register MCP components to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*z4N3SAxs5iONIfeaXPaIZw.png" /></figure><h4><strong>Creating Tools</strong></h4><p>Implement the <strong>McpTool</strong> interface, overriding methods like <em>name</em>, <em>description</em>, <em>schema</em>, and the <em>tool</em> logic itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*j1hcfeCv5-ZgGgl4bszhnw.png" /></figure><p>While defining a JSON Schema as a string can improve readability, it is often tedious to write manually. Helidon simplifies this process by providing a fluent API that generates the same schema programmatically — eliminating the need for an hard coded Strings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*HdEms43eK_CCHp_HaQ_fsw.png" /></figure><h4><strong>Resource</strong></h4><p>Resources are described by a <em>URI</em>, <em>name</em>, <em>description</em>, <em>media type</em> and the <em>resource</em> logic. Define a resource by implementing the <em>McpResource</em> interface and override the required method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*jBW4qHzA7m9o4lw0AySZdw.png" /></figure><h4><strong>Prompt</strong></h4><p>Create prompts using the <em>McpPrompt</em> interface, defining arguments through <em>McpPromptArgument.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*br4o_iLQ-TWFqmHN7t0PDA.png" /></figure><h4><strong>Completion</strong></h4><p>Completions reference either prompts (by name) or resources (by URI). The default behavior supports prompt-based completions and can be changed by overriding <em>referenceType</em> methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*nSMnwoziA1TRKyCdqhLzCw.png" /></figure><h3>MCP Features</h3><p>In addition to the MCP components, the protocol supports a set of feature to manage client and server interactions. Here is a description of the main feature available.</p><h4><strong>Logging</strong></h4><p>With a system logger, information are printed from the server side. Unfortunately, the client does not have the possibility to access it. With <em>McpLogger</em> , servers can send log messages directly to the client—enabling better debugging and traceability from the client side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*cgtRzRRoKV0ImYSD2AVCow.png" /></figure><h4><strong>Progress</strong></h4><p>For long running task, client can get impatient and request for an update. Servers can send progress notification to client using <em>McpProgress</em> class.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*wfRbb7h6QzcoffvluS23Kw.png" /></figure><h4><strong>Cancellation</strong></h4><p>If the client chooses not to wait for a process to complete, it can request to cancel the process execution. This cancellation is optional, and it is up to the server to determine how to handle such requests. The <em>McpCancellation</em> class provides the necessary tools to manage and respond to cancellation events effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*VS6xtvmm8EvHb0qm4v3EbA.png" /></figure><p>With <strong>Helidon MCP</strong>, developers can easily implement MCP-compliant servers using a flexible API in either declarative or imperative styles.</p><ul><li><a href="https://github.com/helidon-io/helidon-mcp/tree/main/docs">Helidon MCP Documentation</a></li><li><a href="https://github.com/helidon-io/helidon-mcp/tree/main/examples">Helidon MCP Example</a></li><li><a href="https://modelcontextprotocol.io/specification/2025-03-26">MCP specification</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=009152c1c20b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/helidon/helidon-mcp-building-connected-ai-agents-with-model-context-protocol-009152c1c20b">Helidon MCP: Building Connected AI Agents with Model Context Protocol</a> was originally published in <a href="https://medium.com/helidon">Helidon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>