@@ -6,18 +6,18 @@ import { join } from 'node:path';
66import { afterAll , beforeAll , describe , expect , it } from 'vitest' ;
77
88// MCP Tool feature is disabled (coming soon) - skip all tests
9- describe . skip ( 'add mcp-tool command' , ( ) => {
9+ describe . skip ( 'add gateway-target command' , ( ) => {
1010 let testDir : string ;
1111 let projectDir : string ;
1212 const agentName = 'TestAgent' ;
1313 const gatewayName = 'test-gateway' ; // Used in skipped behind-gateway tests
1414
1515 beforeAll ( async ( ) => {
16- testDir = join ( tmpdir ( ) , `agentcore-add-mcp-tool -${ randomUUID ( ) } ` ) ;
16+ testDir = join ( tmpdir ( ) , `agentcore-add-gateway-target -${ randomUUID ( ) } ` ) ;
1717 await mkdir ( testDir , { recursive : true } ) ;
1818
1919 // Create project with agent
20- const projectName = 'McpToolProj ' ;
20+ const projectName = 'GatewayTargetProj ' ;
2121 let result = await runCLI ( [ 'create' , '--name' , projectName , '--no-agent' ] , testDir ) ;
2222 if ( result . exitCode !== 0 ) {
2323 throw new Error ( `Failed to create project: ${ result . stdout } ${ result . stderr } ` ) ;
@@ -54,15 +54,18 @@ describe.skip('add mcp-tool command', () => {
5454
5555 describe ( 'validation' , ( ) => {
5656 it ( 'requires name flag' , async ( ) => {
57- const result = await runCLI ( [ 'add' , 'mcp-tool ' , '--json' ] , projectDir ) ;
57+ const result = await runCLI ( [ 'add' , 'gateway-target ' , '--json' ] , projectDir ) ;
5858 expect ( result . exitCode ) . toBe ( 1 ) ;
5959 const json = JSON . parse ( result . stdout ) ;
6060 expect ( json . success ) . toBe ( false ) ;
6161 expect ( json . error . includes ( '--name' ) , `Error: ${ json . error } ` ) . toBeTruthy ( ) ;
6262 } ) ;
6363
6464 it ( 'requires exposure flag' , async ( ) => {
65- const result = await runCLI ( [ 'add' , 'mcp-tool' , '--name' , 'test' , '--language' , 'Python' , '--json' ] , projectDir ) ;
65+ const result = await runCLI (
66+ [ 'add' , 'gateway-target' , '--name' , 'test' , '--language' , 'Python' , '--json' ] ,
67+ projectDir
68+ ) ;
6669 expect ( result . exitCode ) . toBe ( 1 ) ;
6770 const json = JSON . parse ( result . stdout ) ;
6871 expect ( json . success ) . toBe ( false ) ;
@@ -73,7 +76,7 @@ describe.skip('add mcp-tool command', () => {
7376 const result = await runCLI (
7477 [
7578 'add' ,
76- 'mcp-tool ' ,
79+ 'gateway-target ' ,
7780 '--name' ,
7881 'test' ,
7982 '--language' ,
@@ -99,7 +102,7 @@ describe.skip('add mcp-tool command', () => {
99102 const result = await runCLI (
100103 [
101104 'add' ,
102- 'mcp-tool ' ,
105+ 'gateway-target ' ,
103106 '--name' ,
104107 'container-tool' ,
105108 '--language' ,
@@ -130,7 +133,7 @@ describe.skip('add mcp-tool command', () => {
130133 const result = await runCLI (
131134 [
132135 'add' ,
133- 'mcp-tool ' ,
136+ 'gateway-target ' ,
134137 '--name' ,
135138 toolName ,
136139 '--language' ,
@@ -163,7 +166,7 @@ describe.skip('add mcp-tool command', () => {
163166
164167 it ( 'requires agents for mcp-runtime' , async ( ) => {
165168 const result = await runCLI (
166- [ 'add' , 'mcp-tool ' , '--name' , 'no-agents' , '--language' , 'Python' , '--exposure' , 'mcp-runtime' , '--json' ] ,
169+ [ 'add' , 'gateway-target ' , '--name' , 'no-agents' , '--language' , 'Python' , '--exposure' , 'mcp-runtime' , '--json' ] ,
167170 projectDir
168171 ) ;
169172 expect ( result . exitCode ) . toBe ( 1 ) ;
@@ -176,7 +179,7 @@ describe.skip('add mcp-tool command', () => {
176179 const result = await runCLI (
177180 [
178181 'add' ,
179- 'mcp-tool ' ,
182+ 'gateway-target ' ,
180183 '--name' ,
181184 'runtime-container' ,
182185 '--language' ,
@@ -204,7 +207,7 @@ describe.skip('add mcp-tool command', () => {
204207 const result = await runCLI (
205208 [
206209 'add' ,
207- 'mcp-tool ' ,
210+ 'gateway-target ' ,
208211 '--name' ,
209212 toolName ,
210213 '--language' ,
@@ -236,7 +239,7 @@ describe.skip('add mcp-tool command', () => {
236239 const result = await runCLI (
237240 [
238241 'add' ,
239- 'mcp-tool ' ,
242+ 'gateway-target ' ,
240243 '--name' ,
241244 'no-gw' ,
242245 '--language' ,
@@ -259,7 +262,7 @@ describe.skip('add mcp-tool command', () => {
259262 const result = await runCLI (
260263 [
261264 'add' ,
262- 'mcp-tool ' ,
265+ 'gateway-target ' ,
263266 '--name' ,
264267 'no-host' ,
265268 '--language' ,
@@ -282,7 +285,7 @@ describe.skip('add mcp-tool command', () => {
282285 const result = await runCLI (
283286 [
284287 'add' ,
285- 'mcp-tool ' ,
288+ 'gateway-target ' ,
286289 '--name' ,
287290 'gateway-container' ,
288291 '--language' ,
0 commit comments