kotlin-sdk/samples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] 6ce534dba9
chore(deps): bump com.anthropic:anthropic-java from 2.19.0 to 2.24.0 in /samples/kotlin-mcp-client in the other-dependencies group across 1 directory (#685)
Bumps the other-dependencies group with 1 update in the
/samples/kotlin-mcp-client directory:
[com.anthropic:anthropic-java](https://github.com/anthropics/anthropic-sdk-java).

Updates `com.anthropic:anthropic-java` from 2.19.0 to 2.24.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/anthropics/anthropic-sdk-java/releases">com.anthropic:anthropic-java's
releases</a>.</em></p>
<blockquote>
<h2>v2.24.0</h2>
<h2>2.24.0 (2026-04-09)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.23.0...v2.24.0">v2.23.0...v2.24.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> add beta advisor tool (<a
href="346aba2c45">346aba2</a>)</li>
<li>vertex eu region (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/1127">#1127</a>)
(<a
href="f8bd149bcf">f8bd149</a>)</li>
</ul>
<h2>v2.23.0</h2>
<h2>2.23.0 (2026-04-09)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.22.0...v2.23.0">v2.22.0...v2.23.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> Add beta advisor tool (<a
href="17d360c1a8">17d360c</a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><strong>client:</strong> add Models enum as option in Managed Agents
(<a
href="ebd7983d17">ebd7983</a>)</li>
</ul>
<h2>v2.22.0</h2>
<h2>2.22.0 (2026-04-08)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.21.0...v2.22.0">v2.21.0...v2.22.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> add support for Claude Managed Agents (<a
href="f410797766">f410797</a>)</li>
<li><strong>bedrock:</strong> Create Bedrock Mantle client (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/1066">#1066</a>)
(<a
href="100dfb577c">100dfb5</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>client:</strong> fix examples for agents (<a
href="7c11a93028">7c11a93</a>)</li>
<li><strong>internal:</strong> run formatter (<a
href="a2aa0c8645">a2aa0c8</a>)</li>
</ul>
<h2>v2.21.0</h2>
<h2>2.21.0 (2026-04-07)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.20.0...v2.21.0">v2.20.0...v2.21.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> Add support for claude-mythos-preview (<a
href="b9ea13c123">b9ea13c</a>)</li>
<li><strong>vertex:</strong> add support for US multi-region endpoint
(<a
href="8e32b5fe85">8e32b5f</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/anthropics/anthropic-sdk-java/blob/main/CHANGELOG.md">com.anthropic:anthropic-java's
changelog</a>.</em></p>
<blockquote>
<h2>2.24.0 (2026-04-09)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.23.0...v2.24.0">v2.23.0...v2.24.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> add beta advisor tool (<a
href="346aba2c45">346aba2</a>)</li>
<li>vertex eu region (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/1127">#1127</a>)
(<a
href="f8bd149bcf">f8bd149</a>)</li>
</ul>
<h2>2.23.0 (2026-04-09)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.22.0...v2.23.0">v2.22.0...v2.23.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> Add beta advisor tool (<a
href="17d360c1a8">17d360c</a>)</li>
</ul>
<h3>Chores</h3>
<ul>
<li><strong>client:</strong> add Models enum as option in Managed Agents
(<a
href="ebd7983d17">ebd7983</a>)</li>
</ul>
<h2>2.22.0 (2026-04-08)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.21.0...v2.22.0">v2.21.0...v2.22.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> add support for Claude Managed Agents (<a
href="f410797766">f410797</a>)</li>
<li><strong>bedrock:</strong> Create Bedrock Mantle client (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/1066">#1066</a>)
(<a
href="100dfb577c">100dfb5</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>client:</strong> fix examples for agents (<a
href="7c11a93028">7c11a93</a>)</li>
<li><strong>internal:</strong> run formatter (<a
href="a2aa0c8645">a2aa0c8</a>)</li>
</ul>
<h2>2.21.0 (2026-04-07)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.20.0...v2.21.0">v2.20.0...v2.21.0</a></p>
<h3>Features</h3>
<ul>
<li><strong>api:</strong> Add support for claude-mythos-preview (<a
href="b9ea13c123">b9ea13c</a>)</li>
<li><strong>vertex:</strong> add support for US multi-region endpoint
(<a
href="8e32b5fe85">8e32b5f</a>)</li>
</ul>
<h2>2.20.0 (2026-04-01)</h2>
<p>Full Changelog: <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.19.0...v2.20.0">v2.19.0...v2.20.0</a></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="227a6ed7d6"><code>227a6ed</code></a>
chore: release main (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/319">#319</a>)</li>
<li><a
href="2cc9f205a3"><code>2cc9f20</code></a>
chore: release main (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/318">#318</a>)</li>
<li><a
href="52273b435e"><code>52273b4</code></a>
chore: release main (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/317">#317</a>)</li>
<li><a
href="3014518df6"><code>3014518</code></a>
chore: release main (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/314">#314</a>)</li>
<li><a
href="87d86d9733"><code>87d86d9</code></a>
chore: release main (<a
href="https://redirect.github.com/anthropics/anthropic-sdk-java/issues/313">#313</a>)</li>
<li>See full diff in <a
href="https://github.com/anthropics/anthropic-sdk-java/compare/v2.19.0...v2.24.0">compare
view</a></li>
</ul>
</details>
<br />

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-13 14:46:26 +02:00
..
kotlin-mcp-client chore(deps): bump com.anthropic:anthropic-java from 2.19.0 to 2.24.0 in /samples/kotlin-mcp-client in the other-dependencies group across 1 directory (#685) 2026-04-13 14:46:26 +02:00
kotlin-mcp-server chore(deps): bump mcp-kotlin from 0.10.0 to 0.11.0 in /samples/kotlin-mcp-server (#673) 2026-04-07 08:18:58 +00:00
notebooks samples: update mcp-kotlin to 0.10.0 across sample projects (#645) 2026-03-30 23:47:31 +03:00
simple-streamable-server chore(deps): bump mcp-kotlin from 0.10.0 to 0.11.0 in /samples/simple-streamable-server (#675) 2026-04-07 09:37:28 +00:00
weather-stdio-server chore(deps): bump mcp-kotlin from 0.10.0 to 0.11.0 in /samples/weather-stdio-server (#676) 2026-04-07 10:30:09 +03:00
README.md docs: streamable server sample (#595) 2026-03-10 12:45:21 +01:00

Kotlin MCP SDK Samples

Runnable projects demonstrating MCP server and client implementations with the Kotlin MCP SDK. For background on the protocol itself, see the MCP documentation.

Overview

Sample Type Transport MCP Features
simple-streamable-server Server Streamable HTTP Tools, Resources, Prompts, Logging
kotlin-mcp-server Server STDIO, SSE Tools, Resources, Prompts
weather-stdio-server Server STDIO Tools
kotlin-mcp-client Client STDIO Tool discovery & invocation
notebooks Client (Notebook) Streamable HTTP Tool discovery & invocation

Getting Started

  • Building a server? Start with simple-streamable-server — it uses the recommended Streamable HTTP transport and covers tools, resources, prompts, and logging.
  • Building a client? Open the notebooks sample for a step-by-step walkthrough, or see kotlin-mcp-client for a full CLI client with Anthropic API integration.

Samples

Simple Streamable HTTP Server

A minimal Streamable HTTP server with optional Bearer token authentication. Demonstrates tools (greet, multi-greet), a prompt template, a resource, and server-to-client logging notifications. Read more →

Kotlin MCP Server

A multi-transport server supporting STDIO, SSE (plain), and SSE (Ktor plugin). Useful for exploring different transport modes side by side. Read more →

Weather STDIO Server

A focused STDIO server that exposes weather forecast and alert tools backed by the weather.gov API. Includes Claude Desktop integration instructions. Read more →

Kotlin MCP Client

An interactive CLI client that connects to any MCP server over STDIO and routes queries through Anthropic's Claude API, bridging MCP tools with LLM conversations. Read more →

MCP Client Notebook

A Kotlin notebook that connects to a remote MCP server via Streamable HTTP and demonstrates ping, tool listing, and tool invocation — all in an interactive cell-by-cell format. Read more →