We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e39718 commit 8dbb8c6Copy full SHA for 8dbb8c6
1 file changed
kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/Feature.kt
@@ -66,7 +66,12 @@ public class UriTemplateFeatureKey(override val key: String) :
66
FeatureKey<Regex>(),
67
UriTemplateArgumentExtractor {
68
override val value: Regex
69
- public val groups: MutableList<String> = mutableListOf<String>()
+
70
+ /**
71
+ * A list of variable names defined in the URI template. This is populated during initialization when the URI template is converted to a regex.
72
+ */
73
+ private val groups: MutableList<String> = mutableListOf()
74
75
init {
76
// Convert URI template to regex as follows:
77
// - A simple variable `{variable}` is replaced with `(?<variable>[^/]+)`
0 commit comments