kotlin-sdk/samples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] 14c848db41
chore(deps): bump mcp-kotlin from 0.13.0 to 0.14.0 in /samples/kotlinlang-mcp-server (#877)
Bumps `mcp-kotlin` from 0.13.0 to 0.14.0.
Updates `io.modelcontextprotocol:kotlin-sdk-server` from 0.13.0 to
0.14.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fc7916fdc7"><code>fc7916f</code></a>
release: 0.14.0 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/867">#867</a>)</li>
<li><a
href="57e546d378"><code>57e546d</code></a>
feat: SEP-1686 Tasks (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/844">#844</a>)</li>
<li><a
href="35da063c23"><code>35da063</code></a>
fix: bound request body size in SSE and Streamable HTTP transports (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/839">#839</a>)</li>
<li><a
href="bbf77bae93"><code>bbf77ba</code></a>
chore(deps): bump <code>@​types/node</code> from 26.0.0 to 26.0.1 in
/integration-test/src/...</li>
<li><a
href="d2b1509147"><code>d2b1509</code></a>
chore(deps): bump the other-dependencies group across 5 directories with
5 up...</li>
<li><a
href="0221b8db3d"><code>0221b8d</code></a>
fix(client): close stdio read sources during shutdown (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/798">#798</a>)</li>
<li><a
href="19db4b04e3"><code>19db4b0</code></a>
fix(client): gate completion/complete on the completions capability (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/846">#846</a>)</li>
<li><a
href="64cf29fea7"><code>64cf29f</code></a>
chore(deps): bump gradle-wrapper from 9.6.0 to 9.6.1 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/856">#856</a>)</li>
<li><a
href="cd91652be1"><code>cd91652</code></a>
fix: validate Origin against localhost by default in DNS rebinding
protection...</li>
<li><a
href="4103b87d69"><code>4103b87</code></a>
chore(deps): bump org.jetbrains.kotlinx:kotlinx-io-core from 0.9.0 to
0.9.1 i...</li>
<li>Additional commits viewable in <a
href="https://github.com/modelcontextprotocol/kotlin-sdk/compare/0.13.0...0.14.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `io.modelcontextprotocol:kotlin-sdk-client` from 0.13.0 to
0.14.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fc7916fdc7"><code>fc7916f</code></a>
release: 0.14.0 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/867">#867</a>)</li>
<li><a
href="57e546d378"><code>57e546d</code></a>
feat: SEP-1686 Tasks (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/844">#844</a>)</li>
<li><a
href="35da063c23"><code>35da063</code></a>
fix: bound request body size in SSE and Streamable HTTP transports (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/839">#839</a>)</li>
<li><a
href="bbf77bae93"><code>bbf77ba</code></a>
chore(deps): bump <code>@​types/node</code> from 26.0.0 to 26.0.1 in
/integration-test/src/...</li>
<li><a
href="d2b1509147"><code>d2b1509</code></a>
chore(deps): bump the other-dependencies group across 5 directories with
5 up...</li>
<li><a
href="0221b8db3d"><code>0221b8d</code></a>
fix(client): close stdio read sources during shutdown (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/798">#798</a>)</li>
<li><a
href="19db4b04e3"><code>19db4b0</code></a>
fix(client): gate completion/complete on the completions capability (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/846">#846</a>)</li>
<li><a
href="64cf29fea7"><code>64cf29f</code></a>
chore(deps): bump gradle-wrapper from 9.6.0 to 9.6.1 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/856">#856</a>)</li>
<li><a
href="cd91652be1"><code>cd91652</code></a>
fix: validate Origin against localhost by default in DNS rebinding
protection...</li>
<li><a
href="4103b87d69"><code>4103b87</code></a>
chore(deps): bump org.jetbrains.kotlinx:kotlinx-io-core from 0.9.0 to
0.9.1 i...</li>
<li>Additional commits viewable in <a
href="https://github.com/modelcontextprotocol/kotlin-sdk/compare/0.13.0...0.14.0">compare
view</a></li>
</ul>
</details>
<br />

Updates `io.modelcontextprotocol:kotlin-sdk-testing` from 0.13.0 to
0.14.0
<details>
<summary>Commits</summary>
<ul>
<li><a
href="fc7916fdc7"><code>fc7916f</code></a>
release: 0.14.0 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/867">#867</a>)</li>
<li><a
href="57e546d378"><code>57e546d</code></a>
feat: SEP-1686 Tasks (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/844">#844</a>)</li>
<li><a
href="35da063c23"><code>35da063</code></a>
fix: bound request body size in SSE and Streamable HTTP transports (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/839">#839</a>)</li>
<li><a
href="bbf77bae93"><code>bbf77ba</code></a>
chore(deps): bump <code>@​types/node</code> from 26.0.0 to 26.0.1 in
/integration-test/src/...</li>
<li><a
href="d2b1509147"><code>d2b1509</code></a>
chore(deps): bump the other-dependencies group across 5 directories with
5 up...</li>
<li><a
href="0221b8db3d"><code>0221b8d</code></a>
fix(client): close stdio read sources during shutdown (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/798">#798</a>)</li>
<li><a
href="19db4b04e3"><code>19db4b0</code></a>
fix(client): gate completion/complete on the completions capability (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/846">#846</a>)</li>
<li><a
href="64cf29fea7"><code>64cf29f</code></a>
chore(deps): bump gradle-wrapper from 9.6.0 to 9.6.1 (<a
href="https://redirect.github.com/modelcontextprotocol/kotlin-sdk/issues/856">#856</a>)</li>
<li><a
href="cd91652be1"><code>cd91652</code></a>
fix: validate Origin against localhost by default in DNS rebinding
protection...</li>
<li><a
href="4103b87d69"><code>4103b87</code></a>
chore(deps): bump org.jetbrains.kotlinx:kotlinx-io-core from 0.9.0 to
0.9.1 i...</li>
<li>Additional commits viewable in <a
href="https://github.com/modelcontextprotocol/kotlin-sdk/compare/0.13.0...0.14.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-07-06 13:29:15 +02:00
..
kotlin-mcp-client chore(deps): bump io.modelcontextprotocol:kotlin-sdk-client from 0.13.0 to 0.14.0 in /samples/kotlin-mcp-client (#875) 2026-07-06 12:39:14 +02:00
kotlin-mcp-server chore(deps): bump mcp-kotlin from 0.13.0 to 0.14.0 in /samples/kotlin-mcp-server (#876) 2026-07-06 13:28:48 +02:00
kotlinlang-mcp-server chore(deps): bump mcp-kotlin from 0.13.0 to 0.14.0 in /samples/kotlinlang-mcp-server (#877) 2026-07-06 13:29:15 +02: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 kotlin from 2.3.21 to 2.4.0 in /samples/simple-streamable-server (#827) 2026-07-02 20:22:33 +02:00
weather-stdio-server chore(deps): bump kotlin from 2.3.21 to 2.4.0 in /samples/weather-stdio-server (#829) 2026-07-02 14:54:36 +02:00
README.md sample: kotlinlang mcp server (#713) 2026-04-27 15:07:03 +02: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
kotlinlang-mcp-server Server Streamable HTTP Tools
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 →

Kotlinlang MCP Server

A Streamable HTTP server that exposes the official Kotlin documentation (kotlinlang.org) to LLM clients — full-text search via Algolia and page retrieval in markdown. Demonstrates wrapping a real external API in an MCP server with in-memory caching. 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 →