| Filename | Latest commit message | Latest commit date |
|---|---|---|
- add a simple streamable http server example with auth - update readme: replace quickstart example from sse server to streamable server - add readme files for samples, simple-streamable-server, notebooks closes #170 ## How Has This Been Tested? knit and inspector ## Breaking Changes NaN ## 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 ## Checklist - [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 - [x] I have added or updated documentation as needed |
||
| .. | ||
| McpClient.ipynb | ||
| README.md | ||
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
- Kotlin Jupyter kernel or IntelliJ IDEA with the Kotlin Notebook plugin
- Internet access (the notebook connects to an external MCP server)
How to Run
- Open
McpClient.ipynbin IntelliJ IDEA (with Kotlin Notebook plugin) or in Jupyter with the Kotlin kernel installed. - Run cells sequentially from top to bottom.
What It Demonstrates
- Adding MCP SDK dependencies in a notebook environment
- Creating a Ktor
HttpClientwith SSE and logging plugins - Creating an MCP
Clientand connecting viaStreamableHttpClientTransport - Sending a
pingrequest - Listing available tools from the remote server
- Calling a tool (
microsoft_docs_search) and displaying results