@@ -5,7 +5,7 @@ import 'mocha';
55import { expect } from 'chai' ;
66import { converToMcpToolTriggerOptionsToRpc } from '../../src/converters/toMcpToolTriggerOptionsToRpc' ;
77import { arg } from '../../src/utils/toolProperties' ;
8- import { McpToolProperty , McpToolTriggerOptions , ToolProps } from '../../types/mcpTool' ;
8+ import { Args , McpToolProperty , McpToolTriggerOptions } from '../../types/mcpTool' ;
99
1010describe ( 'converToMcpToolTriggerOptionsToRpc' , ( ) => {
1111 describe ( 'basic conversion' , ( ) => {
@@ -89,7 +89,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
8989
9090 describe ( 'toolProps object format' , ( ) => {
9191 it ( 'should handle toolProps object format' , ( ) => {
92- const toolProperties : ToolProps = {
92+ const toolProperties : Args = {
9393 name : arg . string ( ) . describe ( 'The name of the item' ) ,
9494 age : arg . number ( ) . describe ( 'The age of the person' ) . optional ( ) ,
9595 } ;
@@ -115,7 +115,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
115115 } ) ;
116116
117117 it ( 'should handle all supported property types' , ( ) => {
118- const toolProperties : ToolProps = {
118+ const toolProperties : Args = {
119119 stringProp : arg . string ( ) . describe ( 'A string property' ) ,
120120 numberProp : arg . number ( ) . describe ( 'A number property' ) . optional ( ) ,
121121 booleanProp : arg . boolean ( ) . describe ( 'A boolean property' ) ,
@@ -139,7 +139,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
139139 } ) ;
140140
141141 it ( 'should handle array properties correctly' , ( ) => {
142- const toolProperties : ToolProps = {
142+ const toolProperties : Args = {
143143 stringArray : arg . string ( ) . describe ( 'A string array' ) . asArray ( ) . optional ( ) ,
144144 numberArray : arg . number ( ) . describe ( 'A number array' ) . asArray ( ) ,
145145 } ;
@@ -311,7 +311,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
311311
312312 describe ( 'JSON serialization' , ( ) => {
313313 it ( 'should produce valid JSON in toolProperties' , ( ) => {
314- const toolProperties : ToolProps = {
314+ const toolProperties : Args = {
315315 test : arg . string ( ) . describe ( 'Test property' ) ,
316316 } ;
317317
@@ -351,7 +351,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
351351
352352 describe ( 'edge cases' , ( ) => {
353353 it ( 'should handle properties with special characters' , ( ) => {
354- const toolProperties : ToolProps = {
354+ const toolProperties : Args = {
355355 'special-field_with$symbols' : arg . string ( ) . describe ( 'A property with special characters in name' ) ,
356356 } ;
357357
@@ -371,7 +371,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
371371 } ) ;
372372
373373 it ( 'should handle properties with non-empty descriptions' , ( ) => {
374- const toolProperties : ToolProps = {
374+ const toolProperties : Args = {
375375 validDesc : arg . string ( ) . describe ( 'A valid description' ) ,
376376 } ;
377377
@@ -390,7 +390,7 @@ describe('converToMcpToolTriggerOptionsToRpc', () => {
390390 expect ( parsedProperties ) . to . have . length ( 1 ) ;
391391 } ) ;
392392 it ( 'should handle whitespace in names and descriptions' , ( ) => {
393- const toolProperties : ToolProps = {
393+ const toolProperties : Args = {
394394 ' spaced name ' : arg . string ( ) . describe ( ' spaced description ' ) . optional ( ) ,
395395 } ;
396396
0 commit comments