kotlin-sdk/samples/notebooks
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Konstantin Pavlov ad072325c9
samples: update mcp-kotlin to 0.10.0 across sample projects (#645)
## Update mcp-kotlin to 0.10.0 across sample projects

## How Has This Been Tested?
Locally, added ServerIntegrationTest to simple-streamable-server

## Breaking Changes
No

## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [x] Documentation update
- [x] Test update

## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply. -->
- [x] I have read the [MCP
Documentation](https://modelcontextprotocol.io)
- [x] My code follows the repository's style guidelines
- [x] New and existing tests pass locally
- [ ] I have added appropriate error handling
- [ ] I have added or updated documentation as needed
2026-03-30 23:47:31 +03:00
..
McpClient.ipynb samples: update mcp-kotlin to 0.10.0 across sample projects (#645) 2026-03-30 23:47:31 +03:00
README.md docs: streamable server sample (#595) 2026-03-10 12:45:21 +01:00

MCP Client Notebook

An interactive Kotlin notebook that demonstrates connecting to a remote MCP server and calling tools.

Overview

This notebook walks through building an MCP client step by step: creating a Ktor HTTP client, initializing an MCP Client, connecting via StreamableHttpClientTransport, and interacting with the server (ping, list tools, call tools). It connects to the public Microsoft Learn MCP Server as an example.

Prerequisites

How to Run

  1. Open McpClient.ipynb in IntelliJ IDEA (with Kotlin Notebook plugin) or in Jupyter with the Kotlin kernel installed.
  2. Run cells sequentially from top to bottom.

What It Demonstrates

  • Adding MCP SDK dependencies in a notebook environment
  • Creating a Ktor HttpClient with SSE and logging plugins
  • Creating an MCP Client and connecting via StreamableHttpClientTransport
  • Sending a ping request
  • Listing available tools from the remote server
  • Calling a tool (microsoft_docs_search) and displaying results