@@ -45,7 +45,7 @@ async function readMcpDefs(filePath: string): Promise<AgentCoreCliMcpDefs> {
4545 const parsed = JSON . parse ( raw ) as unknown ;
4646 const result = AgentCoreCliMcpDefsSchema . safeParse ( parsed ) ;
4747 if ( ! result . success ) {
48- throw new Error ( 'Invalid mcp-defs.json. Fix it before adding a new MCP tool .' ) ;
48+ throw new Error ( 'Invalid mcp-defs.json. Fix it before adding a new gateway target .' ) ;
4949 }
5050 return result . data ;
5151}
@@ -211,7 +211,7 @@ export async function createGatewayFromWizard(config: AddGatewayConfig): Promise
211211
212212function validateGatewayTargetLanguage ( language : string ) : asserts language is 'Python' | 'TypeScript' | 'Other' {
213213 if ( language !== 'Python' && language !== 'TypeScript' && language !== 'Other' ) {
214- throw new Error ( `MCP tools for language "${ language } " are not yet supported.` ) ;
214+ throw new Error ( `Gateway targets for language "${ language } " are not yet supported.` ) ;
215215 }
216216}
217217
@@ -288,7 +288,7 @@ export async function createExternalGatewayTarget(config: AddGatewayTargetConfig
288288}
289289
290290/**
291- * Create an MCP tool (behind gateway only).
291+ * Create a gateway target (behind gateway only).
292292 */
293293export async function createToolFromWizard ( config : AddGatewayTargetConfig ) : Promise < CreateToolResult > {
294294 validateGatewayTargetLanguage ( config . language ) ;
@@ -400,7 +400,7 @@ export async function createToolFromWizard(config: AddGatewayTargetConfig): Prom
400400 throw new Error ( `MCP saved, but failed to update mcp-defs.json: ${ message } ` ) ;
401401 }
402402
403- // Render MCP tool project template
403+ // Render gateway target project template
404404 // Resolve absolute path from project root
405405 const configRoot = requireConfigRoot ( ) ;
406406 const projectRoot = dirname ( configRoot ) ;
0 commit comments