Add example Kotlin Notebook demonstrating MCP client#397
Merged
Conversation
McpClient.ipynb example notebook demonstrating MCP client0fa96a4 to
afb006a
Compare
afb006a to
214e49f
Compare
devcrocod
reviewed
Nov 13, 2025
Contributor
devcrocod
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I’ve left a few comments regarding the dependencies.
Overall, since this is a notebook, I think it would be better to split the code into separate cells and add some md explanations so that it becomes a complete example
Comment on lines
+41
to
+55
| "import kotlinx.coroutines.runBlocking\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.EmptyJsonObject\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.Implementation\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.TextContent\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.client.Client\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.client.ClientOptions\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.client.StdioClientTransport\n", | ||
| "import io.modelcontextprotocol.kotlin.sdk.client.StreamableHttpClientTransport\n", | ||
| "import io.ktor.client.HttpClient\n", | ||
| "import io.ktor.client.call.body\n", | ||
| "import io.ktor.client.request.get\n", | ||
| "import kotlinx.serialization.Serializable\n", | ||
| "import kotlinx.serialization.json.JsonObject\n", | ||
| "import io.ktor.client.plugins.logging.*\n", | ||
| "import io.ktor.client.plugins.sse.SSE\n", |
Contributor
There was a problem hiding this comment.
Do you think it’s worth creating a descriptor for mcp sdk?
Contributor
Author
There was a problem hiding this comment.
Yes, it's also a good way to promote it
40985e5 to
37d3358
Compare
a939dcb to
d179c97
Compare
…alization and usage
d179c97 to
2a18d95
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
McpClient.ipynbexample notebook demonstrating MCP clientMotivation and Context
Provide more examples
How Has This Been Tested?
Run Kotlin Notebook locally
Breaking Changes
No
Types of changes
Checklist
Additional context