Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit 3b014d9

Browse files
committed
fix hardcoded version
1 parent 9ff6103 commit 3b014d9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/create-mcp-use-app/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ const __dirname = dirname(__filename)
1212

1313
const program = new Command()
1414

15+
const packageJson = JSON.parse(
16+
readFileSync(join(__dirname, '../package.json'), 'utf-8')
17+
)
18+
1519
program
1620
.name('create-mcp-use-app')
1721
.description('Create a new MCP server project')
18-
.version('0.1.0')
22+
.version(packageJson.version)
1923
.argument('[project-name]', 'Name of the MCP server project')
2024
.option('-t, --template <template>', 'Template to use', 'ui')
2125
.option('--no-install', 'Skip installing dependencies')

0 commit comments

Comments
 (0)