@@ -70,7 +70,7 @@ export class ComposableMCPServer extends Server {
7070 _toolName : string ,
7171 args : unknown ,
7272 _mode : "input" | "output" ,
73- _originalArgs ?: unknown
73+ _originalArgs ?: unknown ,
7474 ) : unknown {
7575 // For now, just return args unchanged
7676 // TODO: Implement transformResult hooks for runtime transformation
@@ -109,7 +109,7 @@ export class ComposableMCPServer extends Server {
109109 description : string ,
110110 paramsSchema : Schema < T > ,
111111 cb : ( args : T , extra ?: unknown ) => unknown ,
112- options : { internal ?: boolean ; plugins ?: ToolPlugin [ ] } = { }
112+ options : { internal ?: boolean ; plugins ?: ToolPlugin [ ] } = { } ,
113113 ) {
114114 this . toolRegistry . set ( name , {
115115 callback : cb as ToolCallback ,
@@ -159,7 +159,7 @@ export class ComposableMCPServer extends Server {
159159 toolName ,
160160 result ,
161161 "output" ,
162- args
162+ args ,
163163 ) as CallToolResult ;
164164 } ) ;
165165 }
@@ -208,7 +208,7 @@ export class ComposableMCPServer extends Server {
208208 const processedArgs = this . applyPluginTransforms (
209209 resolvedName ,
210210 args ,
211- "input"
211+ "input" ,
212212 ) ;
213213 const result = await callback ( processedArgs ) ;
214214 return this . applyPluginTransforms ( resolvedName , result , "output" , args ) ;
@@ -242,7 +242,7 @@ export class ComposableMCPServer extends Server {
242242 const hiddenSet = new Set ( this . getHiddenToolNames ( ) ) ;
243243
244244 return allRegistered . filter (
245- ( n ) => ! publicSet . has ( n ) && ! internalSet . has ( n ) && ! hiddenSet . has ( n )
245+ ( n ) => ! publicSet . has ( n ) && ! internalSet . has ( n ) && ! hiddenSet . has ( n ) ,
246246 ) ;
247247 }
248248
@@ -259,7 +259,7 @@ export class ComposableMCPServer extends Server {
259259 * Get internal tool schema by name
260260 */
261261 getInternalToolSchema (
262- name : string
262+ name : string ,
263263 ) : { description : string ; schema : JSONSchema } | undefined {
264264 const tool = this . toolRegistry . get ( name ) ;
265265 const config = this . toolConfigs . get ( name ) ;
@@ -372,10 +372,10 @@ export class ComposableMCPServer extends Server {
372372 private async applyTransformToolHooks (
373373 tool : ComposedTool ,
374374 toolName : string ,
375- mode : "agentic" | "agentic_workflow"
375+ mode : "agentic" | "agentic_workflow" ,
376376 ) : Promise < ComposedTool > {
377377 const transformPlugins = this . globalPlugins . filter (
378- ( p ) => p . transformTool && shouldApplyPlugin ( p , mode )
378+ ( p ) => p . transformTool && shouldApplyPlugin ( p , mode ) ,
379379 ) ;
380380
381381 if ( transformPlugins . length === 0 ) {
@@ -412,7 +412,7 @@ export class ComposableMCPServer extends Server {
412412 */
413413 private async processToolsWithPlugins (
414414 externalTools : Record < string , ComposedTool > ,
415- mode : "agentic" | "agentic_workflow"
415+ mode : "agentic" | "agentic_workflow" ,
416416 ) : Promise < void > {
417417 for ( const [ toolId , toolData ] of this . toolRegistry . entries ( ) ) {
418418 const defaultSchema = {
@@ -430,7 +430,7 @@ export class ComposableMCPServer extends Server {
430430 const processedTool = await this . applyTransformToolHooks (
431431 tempTool ,
432432 toolId ,
433- mode
433+ mode ,
434434 ) ;
435435
436436 this . toolRegistry . set ( toolId , {
@@ -450,7 +450,7 @@ export class ComposableMCPServer extends Server {
450450 toolId ,
451451 processedTool ,
452452 this ,
453- externalTools
453+ externalTools ,
454454 ) ;
455455 }
456456 } catch {
@@ -466,10 +466,10 @@ export class ComposableMCPServer extends Server {
466466 * Trigger composeEnd hooks for all plugins
467467 */
468468 private async triggerComposeEndHooks (
469- context : ComposeEndContext
469+ context : ComposeEndContext ,
470470 ) : Promise < void > {
471471 const endPlugins = this . globalPlugins . filter (
472- ( p ) => p . composeEnd && shouldApplyPlugin ( p , context . mode )
472+ ( p ) => p . composeEnd && shouldApplyPlugin ( p , context . mode ) ,
473473 ) ;
474474
475475 for ( const plugin of endPlugins ) {
@@ -483,7 +483,7 @@ export class ComposableMCPServer extends Server {
483483 name : string | null ,
484484 description : string ,
485485 depsConfig : z . infer < typeof McpSettingsSchema > = { mcpServers : { } } ,
486- options : ComposeDefinition [ "options" ] = { mode : "agentic" }
486+ options : ComposeDefinition [ "options" ] = { mode : "agentic" } ,
487487 ) {
488488 const refDesc = options . refs ?. join ( "" ) ?? "" ;
489489 const { tagToResults } = parseTags ( description + refDesc , [ "tool" , "fn" ] ) ;
@@ -550,7 +550,7 @@ export class ComposableMCPServer extends Server {
550550 tool . attribs . name === toolId
551551 ) ;
552552 } ) ;
553- }
553+ } ,
554554 ) ) as {
555555 tools : Record < string , ComposedTool > ;
556556 cleanupClients : ( ) => Promise < void > ;
@@ -595,7 +595,7 @@ export class ComposableMCPServer extends Server {
595595 const contextToolNames = toolNameToDetailList
596596 . map ( ( [ name ] ) => name )
597597 . filter (
598- ( n ) => ! globalToolNames . includes ( n ) && ! hideToolNames . includes ( n )
598+ ( n ) => ! globalToolNames . includes ( n ) && ! hideToolNames . includes ( n ) ,
599599 ) ;
600600
601601 // For agentic interface: external tools (non-hidden) + internal tools
@@ -606,16 +606,18 @@ export class ComposableMCPServer extends Server {
606606 const tool = tools [ toolId ] ;
607607 if ( ! tool ) {
608608 throw new Error (
609- `Global tool ${ toolId } not found in registry, available: ${ Object . keys (
610- tools
611- ) . join ( ", " ) } `
609+ `Global tool ${ toolId } not found in registry, available: ${
610+ Object . keys (
611+ tools ,
612+ ) . join ( ", " )
613+ } `,
612614 ) ;
613615 }
614616 this . tool (
615617 toolId ,
616618 tool . description || "No description available" ,
617619 jsonSchema ( tool . inputSchema as any ) ,
618- tool . execute
620+ tool . execute ,
619621 ) ;
620622 } ) ;
621623
@@ -653,9 +655,11 @@ export class ComposableMCPServer extends Server {
653655 }
654656 if ( ! tool ) {
655657 throw new Error (
656- `Action ${ toolName } not found, available action list: ${ allToolNames . join (
657- ", "
658- ) } `
658+ `Action ${ toolName } not found, available action list: ${
659+ allToolNames . join (
660+ ", " ,
661+ )
662+ } `,
659663 ) ;
660664 }
661665
@@ -664,10 +668,10 @@ export class ComposableMCPServer extends Server {
664668 ( tool . inputSchema . jsonSchema as JSONSchema ) ??
665669 // Standard definition
666670 tool . inputSchema ?? {
667- type : "object" ,
668- properties : { } ,
669- required : [ ] ,
670- } ;
671+ type : "object" ,
672+ properties : { } ,
673+ required : [ ] ,
674+ } ;
671675
672676 const baseProperties =
673677 baseSchema . type === "object" && baseSchema . properties
0 commit comments