-
Notifications
You must be signed in to change notification settings - Fork 184
Readme #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Readme #462
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR significantly enhances the Kotlin MCP SDK documentation by expanding the README with comprehensive usage examples, adding detailed module documentation, and integrating the Knit tool for validating code snippets. The update transforms minimal documentation into a complete developer guide with quickstart examples, core concepts, and feature demonstrations.
- Expanded README from basic overview to comprehensive guide with installation instructions, quickstart examples, and detailed feature documentation
- Added extensive module documentation (Module.md) for core, client, and server packages with code examples
- Integrated Knit build tool for automated code snippet validation
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle.kts | Added :docs module to the build |
| gradle/libs.versions.toml | Added knit plugin version 0.5.0 and fixed junit formatting |
| docs/build.gradle.kts | Created build configuration for docs module with knit plugin setup |
| docs/.gitignore | Added gitignore to exclude knit-generated sources |
| knit.properties | Created knit configuration for code snippet extraction |
| README.md | Completely rewrote with table of contents, comprehensive examples, core concepts, transports, and API documentation |
| kotlin-sdk-core/Module.md | Expanded from minimal overview to detailed module documentation with usage examples |
| kotlin-sdk-client/Module.md | Expanded with comprehensive client setup examples and feature descriptions |
| kotlin-sdk-server/Module.md | Expanded with server setup examples, feature registration details, and lifecycle information |
| docs/moduledoc.md | Streamlined and updated module overview with clearer structure and updated code examples |
| .github/workflows/build.yml | Added knit validation step to the CI build workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| clientInfo = Implementation("demo-client", "1.0.0"), | ||
| options = ClientOptions( | ||
| capabilities = ClientCapabilities( | ||
| sampling = buildJsonObject { putJsonObject("tools") { } }, // drop tools if you don't support tool use |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment "drop tools if you don't support tool use" should be capitalized and properly punctuated as it's a standalone comment. It should read: "Drop tools if you don't support tool use."
| sampling = buildJsonObject { putJsonObject("tools") { } }, // drop tools if you don't support tool use | |
| sampling = buildJsonObject { putJsonObject("tools") { } }, // Drop tools if you don't support tool use. |
|
|
||
| <!--- KNIT example-server-util-pagination-01.kt --> | ||
|
|
||
| Include `nextCursor` only when more items remain an absent cursor ends pagination. |
Copilot
AI
Dec 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a missing punctuation mark between "remain" and "an". The sentence should either use a period, semicolon, or conjunction. Consider: "Include nextCursor only when more items remain. An absent cursor ends pagination." or "Include nextCursor only when more items remain; an absent cursor ends pagination."
| Include `nextCursor` only when more items remain an absent cursor ends pagination. | |
| Include `nextCursor` only when more items remain. An absent cursor ends pagination. |
#162
Motivation and Context
How Has This Been Tested?
knit
Breaking Changes
None
Types of changes
Checklist