File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ interface HtkOperation {
1818 description : string ;
1919 category : string ;
2020 inputSchema : any ;
21+ annotations ?: {
22+ readOnlyHint ?: boolean ;
23+ destructiveHint ?: boolean ;
24+ idempotentHint ?: boolean ;
25+ openWorldHint ?: boolean ;
26+ } ;
2127}
2228
2329// NOTE: This logic is duplicated in src/index.ts — keep in sync.
@@ -401,7 +407,8 @@ function operationsToMcpTools(operations: HtkOperation[]): any[] {
401407 inputSchema : {
402408 type : 'object' ,
403409 properties : op . inputSchema ?. properties ?? { } ,
404- }
410+ } ,
411+ ...( op . annotations && { annotations : op . annotations } )
405412 } ) ) ;
406413}
407414
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ export interface HtkOperation {
1212 category : string ;
1313 inputSchema : object ;
1414 outputSchema : object ;
15+ annotations ?: {
16+ readOnlyHint ?: boolean ;
17+ destructiveHint ?: boolean ;
18+ idempotentHint ?: boolean ;
19+ openWorldHint ?: boolean ;
20+ } ;
1521}
1622
1723interface PendingRequest {
You can’t perform that action at this time.
0 commit comments