Skip to content

Commit 74d9f2f

Browse files
committed
feat: add transport type selection to project setup
1 parent 6615c9b commit 74d9f2f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.changeset/early-kings-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-mcp-kit': patch
3+
---
4+
5+
feat: add transport type selection to project setup

packages/create-mcp-kit/src/index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)