File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,7 +202,8 @@ export async function validateAddGatewayTargetOptions(options: AddGatewayTargetO
202202 if ( ! options . gateway ) {
203203 return {
204204 valid : false ,
205- error : "--gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'." ,
205+ error :
206+ "--gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'." ,
206207 } ;
207208 }
208209
Original file line number Diff line number Diff line change @@ -10,11 +10,7 @@ import type {
1010import { AgentCoreCliMcpDefsSchema , ToolDefinitionSchema } from '../../../schema' ;
1111import { getTemplateToolDefinitions , renderGatewayTargetTemplate } from '../../templates/GatewayTargetRenderer' ;
1212import type { AddGatewayConfig , AddGatewayTargetConfig } from '../../tui/screens/mcp/types' ;
13- import {
14- DEFAULT_HANDLER ,
15- DEFAULT_NODE_VERSION ,
16- DEFAULT_PYTHON_VERSION ,
17- } from '../../tui/screens/mcp/types' ;
13+ import { DEFAULT_HANDLER , DEFAULT_NODE_VERSION , DEFAULT_PYTHON_VERSION } from '../../tui/screens/mcp/types' ;
1814import { existsSync } from 'fs' ;
1915import { mkdir , readFile , writeFile } from 'fs/promises' ;
2016import { dirname , join } from 'path' ;
@@ -257,7 +253,9 @@ export async function createExternalGatewayTarget(config: AddGatewayTargetConfig
257253 } ;
258254
259255 if ( ! config . gateway ) {
260- throw new Error ( "Gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'." ) ;
256+ throw new Error (
257+ "Gateway is required. A gateway target must be attached to a gateway. Create a gateway first with 'agentcore add gateway'."
258+ ) ;
261259 }
262260
263261 const gateway = mcpSpec . agentCoreGateways . find ( g => g . name === config . gateway ) ;
You can’t perform that action at this time.
0 commit comments