Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · mcp

Build an MCP client changeddocs/draft/develop/build-client

Nearest release: v2.1.316, published 14 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Upstream edited this page at 31 Oct 2026 15:31 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 31 Oct 2026 15:37 UTC.

Upstream edited
Recorded here
Lines+9added
Lines−5removed
From line 820 where the diff opens
First seen 26 Aug 2026 this site's first read of the page
Recorded edits10to this page, all time

The whole hunk

from line 820, old and new numbered
/
lines
from line 820
820820>
821821> > [!NOTE]
822822> >
823> > This client uses MCP protocol version 2025-11-25, as supported by the latest stable release of the Java SDK. It connects to servers that accept that version, but not to servers that accept only 2026-07-28. See [backward compatibility](https://modelcontextprotocol.io/specification/draft/basic/versioning.md#backward-compatibility-with-initialization-based-versions).
824>
825> > [!NOTE]
826> >
823827> > This is a quickstart demo based on Spring AI MCP auto-configuration and boot starters.
824828> > To learn how to create sync and async MCP Clients manually, consult the [Java SDK Client](https://java.sdk.modelcontextprotocol.io/) documentation.
825829>
from line 854
850854>
851855> ```bash theme={null}
852856> git clone https://github.com/spring-projects/spring-ai-examples.git
853> cd model-context-protocol/web-search/brave-chatbot
857> cd spring-ai-examples/model-context-protocol/web-search/brave-chatbot
854858> ```
855859>
856860> 3. Set up your API keys:
from line 920
916920>
917921> This activates the `spring-ai-starter-mcp-client` to create one or more `McpClient`s based on the provided server configuration.
918922> The `spring.ai.mcp.client.toolcallback.enabled=true` property enables the tool callback mechanism, that automatically registers all MCP tool as spring ai tools.
919> It is disabled by default.
923> It is enabled by default.
920924>
921925> 3. MCP Server Configuration (`mcp-servers-config.json`):
922926>
from line 945
941945> ```java theme={null}
942946> var chatClient = chatClientBuilder
943947> .defaultSystem("You are useful assistant, expert in AI and Java.")
944> .defaultToolCallbacks((Object[]) mcpToolAdapter.toolCallbacks())
945> .defaultAdvisors(new MessageChatMemoryAdvisor(new InMemoryChatMemory()))
948> .defaultTools(SyncMcpToolCallbackProvider.builder().mcpClients(mcpSyncClients).build())
949> .defaultAdvisors(MessageChatMemoryAdvisor.builder(MessageWindowChatMemory.builder().build()).build())
946950> .build();
947951> ```
948952>
from line 954
950954>
951955> * Uses Claude AI model for natural language understanding
952956> * Integrates Brave Search through MCP for real-time web search capabilities
953> * Maintains conversation memory using InMemoryChatMemory
957> * Maintains conversation memory using MessageWindowChatMemory
954958> * Runs as an interactive command-line application
955959>
956960> ### Build and run
Feedback