Add example Kotlin Notebook demonstrating MCP client#397
Merged
Conversation
kpavlov
marked this pull request as ready for review
November 12, 2025 19:54
McpClient.ipynb example notebook demonstrating MCP client
kpavlov
force-pushed
the
kpavlov/example-notebook
branch
from
November 12, 2025 20:00
0fa96a4 to
afb006a
Compare
kpavlov
force-pushed
the
kpavlov/example-notebook
branch
from
November 13, 2025 09:56
afb006a to
214e49f
Compare
devcrocod
reviewed
Nov 13, 2025
devcrocod
left a comment
Contributor
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
kpavlov
force-pushed
the
kpavlov/example-notebook
branch
3 times, most recently
from
November 14, 2025 10:51
40985e5 to
37d3358
Compare
kpavlov
force-pushed
the
kpavlov/example-notebook
branch
2 times, most recently
from
November 14, 2025 14:13
a939dcb to
d179c97
Compare
…alization and usage
kpavlov
force-pushed
the
kpavlov/example-notebook
branch
from
November 14, 2025 14:15
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