tmcp 1.19.2 → 1.19.4
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/package.json
CHANGED
package/src/types/index.d.ts
CHANGED
|
@@ -44,14 +44,16 @@ declare module 'tmcp' {
|
|
|
44
44
|
* Get the client capabilities of the client that initiated the current request, you can use this to verify the client support something before invoking the respective method.
|
|
45
45
|
* @deprecated Use `server.ctx.sessionInfo.clientCapabilities` instead.
|
|
46
46
|
*/
|
|
47
|
-
currentClientCapabilities(): {
|
|
47
|
+
currentClientCapabilities(): ({
|
|
48
48
|
experimental?: {} | undefined;
|
|
49
49
|
sampling?: {} | undefined;
|
|
50
50
|
elicitation?: {} | undefined;
|
|
51
51
|
roots?: {
|
|
52
52
|
listChanged?: boolean | undefined;
|
|
53
53
|
} | undefined;
|
|
54
|
-
}
|
|
54
|
+
} & {
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}) | undefined;
|
|
55
57
|
|
|
56
58
|
on<TEvent extends keyof McpEvents>(event: TEvent, callback: McpEvents[TEvent], options?: AddEventListenerOptions): () => void;
|
|
57
59
|
/**
|
|
@@ -505,7 +507,7 @@ declare module 'tmcp' {
|
|
|
505
507
|
/**
|
|
506
508
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
507
509
|
*/
|
|
508
|
-
const ClientCapabilitiesSchema: v.
|
|
510
|
+
const ClientCapabilitiesSchema: v.LooseObjectSchema<{
|
|
509
511
|
/**
|
|
510
512
|
* Experimental, non-standard capabilities that the client supports.
|
|
511
513
|
*/
|
|
@@ -533,7 +535,7 @@ declare module 'tmcp' {
|
|
|
533
535
|
* The latest version of the Model Context Protocol that the client supports. The client MAY decide to support older versions as well.
|
|
534
536
|
*/
|
|
535
537
|
readonly protocolVersion: v.StringSchema<undefined>;
|
|
536
|
-
readonly capabilities: v.
|
|
538
|
+
readonly capabilities: v.LooseObjectSchema<{
|
|
537
539
|
/**
|
|
538
540
|
* Experimental, non-standard capabilities that the client supports.
|
|
539
541
|
*/
|
package/src/types/index.d.ts.map
CHANGED
|
@@ -103,6 +103,6 @@
|
|
|
103
103
|
null,
|
|
104
104
|
null
|
|
105
105
|
],
|
|
106
|
-
"mappings": ";;;;;cAkLaA,SAASA
|
|
106
|
+
"mappings": ";;;;;cAkLaA,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aC+zCyBC,KAAKA;aDl7CFC,aAAaA;;aCy8CHC,kBAAkBA;aAGrBC,eAAeA;aAvBZC,kBAAkBA;aAUKC,UAAUA;aAmBzBC,0BAA0BA;aAGjCC,mBAAmBA;aAY9BC,QAAQA;aAYJC,YAAYA;aAlDVC,UAAUA;aAwDZC,YAAYA;aAGRC,gBAAgBA;aAGjBC,eAAeA;aAGbC,iBAAiBA;aAMPC,2BAA2BA;aAHnCC,mBAAmBA;aAhDxBC,cAAcA;OC7/CxDC,YAAYA;OACZC,cAAcA;OACdC,gBAAgBA;OAChBC,gBAAgBA;;MAElBC,OAAOA;;MAEPC,aAAaA;;;;;;;;;MASbC,WAAWA;;;;;;;;;;;MAWXC,eAAeA;;;;;;;;;MASfC,eAAeA;;;;;;;;;;;MAWfC,WAAWA;MACXC,aAAaA;MACbC,eAAeA;MACfC,eAAeA;;MAQfC,UAAUA;;;;;MA6BVC,aAAaA;;;;;;;;;;;;;;MAcbC,WAAWA;;;;;;;MAOlBC,oBAAoBA;;;;MAIbC,iBAAiBA;;MAEjBC,SAASA;;;;;;;;;;;;MClIhBC,IAAIA;;;;;;;MAOJC,cAAcA;;;;;;;MAOdC,cAAcA;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyIrBG,oBAAoBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0iB2BxD,kBAAkBA;MAGrBC,eAAeA;MAyDdwE,gBAAgBA;MAGpBC,YAAYA",
|
|
107
107
|
"ignoreList": []
|
|
108
108
|
}
|
package/src/validation/index.js
CHANGED
|
@@ -239,7 +239,7 @@ export const ImplementationSchema = v.object({
|
|
|
239
239
|
/**
|
|
240
240
|
* Capabilities a client may support. Known capabilities are defined here, in this schema, but this is not a closed set: any client can define its own, additional capabilities.
|
|
241
241
|
*/
|
|
242
|
-
export const ClientCapabilitiesSchema = v.
|
|
242
|
+
export const ClientCapabilitiesSchema = v.looseObject({
|
|
243
243
|
/**
|
|
244
244
|
* Experimental, non-standard capabilities that the client supports.
|
|
245
245
|
*/
|