@kentico/management-api-mcp 31.2.2-preview → 31.2.3-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1796,11 +1796,16 @@ var StdioTransport = class {
|
|
|
1796
1796
|
if (line.trim()) {
|
|
1797
1797
|
try {
|
|
1798
1798
|
const message = JSON.parse(line);
|
|
1799
|
+
const is_init = message.method === "initialize";
|
|
1800
|
+
const session_info = is_init ? {
|
|
1801
|
+
clientCapabilities: message.params?.capabilities,
|
|
1802
|
+
clientInfo: message.params?.clientInfo
|
|
1803
|
+
} : this.#session_info;
|
|
1799
1804
|
const response = await this.#server.receive(message, {
|
|
1800
1805
|
custom: ctx,
|
|
1801
1806
|
sessionInfo: (
|
|
1802
1807
|
/** @type {Context["sessionInfo"]} */
|
|
1803
|
-
|
|
1808
|
+
session_info
|
|
1804
1809
|
)
|
|
1805
1810
|
});
|
|
1806
1811
|
if (response) {
|
|
@@ -3346,7 +3351,7 @@ var ImplementationSchema = object({
|
|
|
3346
3351
|
websiteUrl: optional(string()),
|
|
3347
3352
|
...IconsSchema.entries
|
|
3348
3353
|
});
|
|
3349
|
-
var ClientCapabilitiesSchema =
|
|
3354
|
+
var ClientCapabilitiesSchema = looseObject({
|
|
3350
3355
|
/**
|
|
3351
3356
|
* Experimental, non-standard capabilities that the client supports.
|
|
3352
3357
|
*/
|
package/package.json
CHANGED