@@ -24,9 +24,9 @@ const group = await clack.group(
2424 clack . select ( {
2525 message : 'Project type:' ,
2626 options : [
27- { value : 'server' , label : pc . magenta ( 'MCP Server' ) } ,
28- // { value: 'client', label: pc.blue ('MCP Client') },
29- // { value: 'host', label: pc.green ('MCP Host') },
27+ { value : 'server' , label : pc . magentaBright ( 'MCP Server' ) } ,
28+ { value : 'client' , label : pc . greenBright ( 'MCP Client' ) } ,
29+ // { value: 'host', label: pc.yellowBright ('MCP Host') },
3030 ] ,
3131 } ) ,
3232 name : ( { results } ) =>
@@ -39,8 +39,8 @@ const group = await clack.group(
3939 clack . select ( {
4040 message : 'Project language:' ,
4141 options : [
42- { value : 'ts' , label : pc . magenta ( 'TypeScript' ) } ,
43- { value : 'js' , label : pc . blue ( 'JavaScript' ) } ,
42+ { value : 'ts' , label : pc . magentaBright ( 'TypeScript' ) } ,
43+ { value : 'js' , label : pc . greenBright ( 'JavaScript' ) } ,
4444 ] ,
4545 } ) ,
4646 transports : ( ) => {
@@ -49,33 +49,40 @@ const group = await clack.group(
4949 required : true ,
5050 initialValues : [ 'stdio' ] ,
5151 options : [
52- { value : 'stdio' , label : pc . magenta ( 'STDIO' ) } ,
53- { value : 'streamable' , label : pc . blue ( 'Streamable HTTP' ) } ,
54- { value : 'sse' , label : pc . yellow ( 'SSE' ) } ,
52+ { value : 'stdio' , label : pc . magentaBright ( 'STDIO' ) } ,
53+ { value : 'streamable' , label : pc . greenBright ( 'Streamable HTTP' ) } ,
54+ { value : 'sse' , label : pc . yellowBright ( 'SSE' ) } ,
5555 ] ,
5656 } )
5757 } ,
5858 template : ( ) =>
5959 clack . select ( {
6060 message : 'Project template:' ,
6161 options : [
62- { value : 'standard' , label : pc . magenta ( 'Standard (recommended)' ) } ,
63- { value : 'custom' , label : pc . blue ( 'Custom' ) } ,
62+ { value : 'standard' , label : pc . magentaBright ( 'Standard (recommended)' ) } ,
63+ { value : 'custom' , label : pc . greenBright ( 'Custom' ) } ,
6464 ] ,
6565 } ) ,
6666 plugins : ( { results } ) => {
6767 if ( results . template !== 'custom' ) {
68- return Promise . resolve ( [ 'github-action' , 'vitest' , 'inspector' , 'style' , 'commitlint' , 'changelog' ] )
68+ return Promise . resolve ( [
69+ 'github-action' ,
70+ 'vitest' ,
71+ ...( results . type === 'server' ? [ 'inspector' ] : [ ] ) ,
72+ 'style' ,
73+ 'commitlint' ,
74+ 'changelog' ,
75+ ] )
6976 }
7077 return clack . multiselect ( {
7178 message : 'Project plugins:' ,
7279 required : false ,
7380 options : [
74- { value : 'github-action' , label : pc . magenta ( 'GitHub Action' ) } ,
75- { value : 'vitest' , label : pc . green ( 'Vitest' ) } ,
76- { value : 'inspector' , label : pc . blue ( 'Inspector' ) } ,
77- { value : 'style' , label : pc . white ( 'ESLint + Prettier + Lint-staged' ) } ,
78- { value : 'commitlint' , label : pc . gray ( 'Commitlint' ) } ,
81+ { value : 'github-action' , label : pc . magentaBright ( 'GitHub Action' ) } ,
82+ { value : 'vitest' , label : pc . greenBright ( 'Vitest' ) } ,
83+ ... ( results . type === 'server' ? [ { value : 'inspector' , label : pc . cyanBright ( 'Inspector' ) } ] : [ ] ) ,
84+ { value : 'style' , label : pc . yellowBright ( 'ESLint + Prettier + Lint-staged' ) } ,
85+ { value : 'commitlint' , label : pc . redBright ( 'Commitlint' ) } ,
7986 { value : 'changelog' , label : pc . blueBright ( 'Changelog' ) } ,
8087 ] ,
8188 } )
0 commit comments