Skip to content

Commit a92f54f

Browse files
committed
feat: add gradient-string dependency for colorful intro
1 parent 20f3480 commit a92f54f

File tree

5 files changed

+49
-3
lines changed

5 files changed

+49
-3
lines changed

.changeset/curvy-teams-film.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 gradient-string dependency for colorful intro

packages/create-mcp-kit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"dependencies": {
4949
"@clack/prompts": "^0.11.0",
5050
"@mcp-tool-kit/shared": "workspace:^",
51+
"gradient-string": "^3.0.0",
5152
"picocolors": "^1.1.1"
5253
},
5354
"devDependencies": {

packages/create-mcp-kit/rolldown.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ export default defineConfig({
2222
'child_process',
2323
'url',
2424
'@mcp-tool-kit/shared',
25+
'gradient-string',
2526
],
2627
})

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
#!/usr/bin/env node
2-
import * as clack from '@clack/prompts'
3-
import pc from 'picocolors'
42
import { fileURLToPath } from 'url'
53
import { dirname, join, resolve } from 'path'
64
import { stat } from 'fs/promises'
5+
import * as clack from '@clack/prompts'
6+
import pc from 'picocolors'
7+
import gradient from 'gradient-string'
78
import { sleep, createProject, installDependencies } from '@mcp-tool-kit/shared'
89

910
const __filename = fileURLToPath(import.meta.url)
1011
const __dirname = dirname(__filename)
11-
clack.intro(pc.inverse(' create-mcp-kit '))
12+
13+
clack.intro(
14+
gradient([
15+
{ color: '#a855f7', pos: 0 },
16+
{ color: '#3b82f6', pos: 0.4 },
17+
{ color: '#06b6d4', pos: 0.8 },
18+
{ color: '#10b981', pos: 1 },
19+
])('MCP Kit - The Modern Context Protocol Builder'),
20+
)
1221

1322
const group = await clack.group(
1423
{

pnpm-lock.yaml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)