-
Notifications
You must be signed in to change notification settings - Fork 177
Updated ServerPromptsTest, move AbstractTransport to it's own file #376
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
Conversation
9ce7ee7 to
7d315c0
Compare
| @@ -80,21 +157,55 @@ class ServerPromptsTest : AbstractServerFeaturesTest() { | |||
| assertFalse(promptListChangedNotificationReceived, "No notification should be sent when prompt doesn't exist") | |||
| } | |||
|
|
|||
| @Test | |||
| fun `removePrompt should throw when prompts capability is not supported`() = runTest { | |||
| @Nested | |||
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.
Why do we need inner class? Maybe it would be better to separate it?
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.
It's a good idea. Let's do it in follow-up PR
kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/Server.kt
Outdated
Show resolved
Hide resolved
7751d02 to
eecbbee
Compare
eecbbee to
e75b364
Compare
…d modularize `AbstractTransport` - Extracted `AbstractTransport` to a dedicated file for modularity. - Improved prompt validation with `require` statement and updated related tests. - Bump jvmTarget to 11 - Fixed typos and improved test cases for better clarity. - Deprecate `_meta` in favor of `meta` with fallback implementation; update tests to handle `McpException`.
e75b364 to
db84dd4
Compare
devcrocod
left a comment
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.
👍
Refactor and enhance prompt handling logic and tests, update Kotest version and modularize
AbstractTransportAbstractTransportto a dedicated file for modularity.IllegalStateExceptioninstead ofError.Motivation and Context
Improve test scenarios in ServerPromptsTest
How Has This Been Tested?
Integration tests updated
Breaking Changes
When disconnected, the Protocol will throw
IllegalStateExceptioninstead ofError.Types of changes
Checklist
Additional context