Skip to content

Commit 4aeed92

Browse files
authored
Add warning message to ExperimentalMcpApi annotation and change level (#398)
- add the warning message to `ExperimentalMcpApi` annotation - change level from error to warning ## 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
1 parent 93d544e commit 4aeed92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kotlin-sdk-core/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/ExperimentalMcpApi.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ import kotlin.annotation.AnnotationTarget.VALUE_PARAMETER
3535
* - Property setters
3636
* - Type aliases
3737
*/
38-
@RequiresOptIn
38+
@RequiresOptIn(
39+
message = "This API is experimental. It may be changed in the future without notice.",
40+
level = RequiresOptIn.Level.WARNING,
41+
)
3942
@MustBeDocumented
4043
@Target(
4144
CLASS,

0 commit comments

Comments
 (0)