File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
packages/create-mcp-kit/src Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' create-mcp-kit ' : patch
3+ ---
4+
5+ feat: add transport type selection to project setup
Original file line number Diff line number Diff line change @@ -52,6 +52,18 @@ const group = await clack.group(
5252 // { value: 'custom', label: pc.blue('Custom') },
5353 ] ,
5454 } ) ,
55+ transports : ( ) => {
56+ return clack . multiselect ( {
57+ message : 'Project Transport Type:' ,
58+ required : true ,
59+ initialValues : [ 'stdio' ] ,
60+ options : [
61+ { value : 'stdio' , label : pc . magenta ( 'STDIO' ) } ,
62+ { value : 'streamable' , label : pc . blue ( 'Streamable HTTP' ) } ,
63+ { value : 'sse' , label : pc . yellow ( 'SSE' ) } ,
64+ ] ,
65+ } )
66+ } ,
5567 install : ( ) =>
5668 clack . confirm ( {
5769 message : 'Do you want to install dependencies?' ,
@@ -88,6 +100,10 @@ try {
88100 try {
89101 await createProject ( targetPath , templatePath , {
90102 projectName : group . name as string ,
103+ year : new Date ( ) . getFullYear ( ) . toString ( ) ,
104+ transports : group . transports as string [ ] ,
105+ plugins : [ ] ,
106+ components : [ ] ,
91107 } )
92108 } catch ( error ) {
93109 createSpinner . stop ( 'Failed to create project' )
You can’t perform that action at this time.
0 commit comments