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(
52
52
// { value: 'custom', label: pc.blue('Custom') },
53
53
] ,
54
54
} ) ,
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
+ } ,
55
67
install : ( ) =>
56
68
clack . confirm ( {
57
69
message : 'Do you want to install dependencies?' ,
@@ -88,6 +100,10 @@ try {
88
100
try {
89
101
await createProject ( targetPath , templatePath , {
90
102
projectName : group . name as string ,
103
+ year : new Date ( ) . getFullYear ( ) . toString ( ) ,
104
+ transports : group . transports as string [ ] ,
105
+ plugins : [ ] ,
106
+ components : [ ] ,
91
107
} )
92
108
} catch ( error ) {
93
109
createSpinner . stop ( 'Failed to create project' )
You can’t perform that action at this time.
0 commit comments