Skip to content

Commit b05a196

Browse files
committed
Fixes documentation inconsistencies
1 parent 083ff48 commit b05a196

File tree

2 files changed

+13
-9
lines changed
  • kotlin-sdk-client/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/client

2 files changed

+13
-9
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ val server = Server(
111111
listChanged = true
112112
)
113113
)
114-
),
115-
instructions = "This server provides example resources and demonstrates MCP capabilities."
116-
)
114+
)
115+
){
116+
"This server provides example resources and demonstrates MCP capabilities."
117+
}
117118

118119
// Add a resource
119120
server.addResource(
@@ -158,8 +159,9 @@ fun Application.module() {
158159
resources = ServerCapabilities.Resources(subscribe = null, listChanged = null)
159160
)
160161
),
161-
instructions = "This SSE server provides prompts and resources via Server-Sent Events."
162-
)
162+
) {
163+
"This SSE server provides prompts and resources via Server-Sent Events."
164+
}
163165
}
164166
}
165167
```
@@ -187,8 +189,9 @@ fun Application.module() {
187189
resources = ServerCapabilities.Resources(subscribe = null, listChanged = null)
188190
)
189191
),
190-
instructions = "Connect via SSE to interact with this MCP server."
191-
)
192+
) {
193+
"Connect via SSE to interact with this MCP server."
194+
}
192195
}
193196
}
194197
}

kotlin-sdk-client/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/client/Client.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ public open class Client(private val clientInfo: Implementation, options: Client
9292
private set
9393

9494
/**
95-
* Optional human-readable instructions or description for the client.
96-
* This can be used to provide context or usage guidelines for users interacting with the client.
95+
* Optional human-readable instructions or description from the server.
96+
*
97+
* @return Instructions provided by the server, or `null` if none were given or initialization is not yet complete.
9798
*/
9899
public var serverInstructions: String? = null
99100
private set

0 commit comments

Comments
 (0)