create-mcp-kit 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import { fileURLToPath } from "url";
3
- import { dirname, join, resolve } from "path";
2
+ import { join, resolve } from "node:path";
4
3
  import * as clack from "@clack/prompts";
5
- import pc from "picocolors";
6
- import gradient from "gradient-string";
7
4
  import { createProject, fileExists, installDependencies, sleep } from "@mcp-tool-kit/shared";
5
+ import gradient from "gradient-string";
6
+ import pc from "picocolors";
8
7
 
9
8
  //#region src/index.ts
10
- const __filename = fileURLToPath(import.meta.url);
11
- const __dirname = dirname(__filename);
9
+ const dirname = import.meta.dirname;
12
10
  clack.intro(gradient([
13
11
  {
14
12
  color: "#a855f7",
@@ -129,7 +127,7 @@ const group = await clack.group({
129
127
  clack.cancel("Operation cancelled.");
130
128
  process.exit(0);
131
129
  } });
132
- const templatePath = join(__dirname, "../template", `${group.type}-${group.language}`);
130
+ const templatePath = join(dirname, "../template", `${group.type}-${group.language}`);
133
131
  const targetPath = resolve(process.cwd(), group.name);
134
132
  if (!await fileExists(templatePath)) {
135
133
  clack.log.error(`Template not found: ${templatePath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-kit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A CLI tool to create MCP (Model Context Protocol) applications with ease.",
5
5
  "type": "module",
6
6
  "author": "zhensherlock",
@@ -48,7 +48,7 @@
48
48
  "gradient-string": "^3.0.0",
49
49
  "handlebars": "^4.7.8",
50
50
  "picocolors": "^1.1.1",
51
- "@mcp-tool-kit/shared": "^0.1.4"
51
+ "@mcp-tool-kit/shared": "^0.1.5"
52
52
  },
53
53
  "devDependencies": {},
54
54
  "scripts": {
@@ -27,7 +27,7 @@
27
27
  "prepare": "husky"
28
28
  },
29
29
  "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.21.0",
30
+ "@modelcontextprotocol/sdk": "^1.23.0",
31
31
  "dotenv": "^17.2.3"
32
32
  },
33
33
  "devDependencies": {
@@ -36,7 +36,7 @@
36
36
  "@commitlint/config-conventional": "^20.0.0",
37
37
  {{/if}}
38
38
  {{#if (includes plugins 'vitest')}}
39
- "@vitest/coverage-v8": "^4.0.6",
39
+ "@vitest/coverage-v8": "^4.0.14",
40
40
  {{/if}}
41
41
  {{#if (includes plugins 'changelog')}}
42
42
  "compare-func": "^2.0.0",
@@ -59,7 +59,7 @@
59
59
  "prettier": "^3.6.2",
60
60
  {{/if}}
61
61
  {{#if (includes plugins 'vitest')}}
62
- "vitest": "^4.0.6",
62
+ "vitest": "^4.0.14",
63
63
  {{/if}}
64
64
  "rimraf": "^6.1.0"
65
65
  }
@@ -27,7 +27,7 @@
27
27
  "prepare": "husky"
28
28
  },
29
29
  "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.21.0",
30
+ "@modelcontextprotocol/sdk": "^1.23.0",
31
31
  "dotenv": "^17.2.3"
32
32
  },
33
33
  "devDependencies": {
@@ -36,11 +36,11 @@
36
36
  "@commitlint/config-conventional": "^20.0.0",
37
37
  {{/if}}
38
38
  {{#if (includes plugins 'style')}}
39
- "@typescript-eslint/eslint-plugin": "^8.46.2",
40
- "@typescript-eslint/parser": "^8.46.2",
39
+ "@typescript-eslint/eslint-plugin": "^8.48.0",
40
+ "@typescript-eslint/parser": "^8.48.0",
41
41
  {{/if}}
42
42
  {{#if (includes plugins 'vitest')}}
43
- "@vitest/coverage-v8": "^4.0.6",
43
+ "@vitest/coverage-v8": "^4.0.14",
44
44
  {{/if}}
45
45
  {{#if (includes plugins 'changelog')}}
46
46
  "compare-func": "^2.0.0",
@@ -66,7 +66,7 @@
66
66
  "tsx": "^4.20.6",
67
67
  "typescript": "^5.9.3",
68
68
  {{#if (includes plugins 'vitest')}}
69
- "vitest": "^4.0.6",
69
+ "vitest": "^4.0.14",
70
70
  {{/if}}
71
71
  "rimraf": "^6.1.0"
72
72
  }
@@ -41,7 +41,7 @@
41
41
  "prepare": "husky"
42
42
  },
43
43
  "dependencies": {
44
- "@modelcontextprotocol/sdk": "^1.21.0",
44
+ "@modelcontextprotocol/sdk": "^1.23.0",
45
45
  "dotenv": "^17.2.3",
46
46
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
47
47
  "express": "^5.1.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "mcp-stdio": {
4
- "type": "node",
4
+ "command": "node",
5
5
  "args": ["build/index.js"],
6
6
  "env": {}
7
7
  },
@@ -41,7 +41,7 @@
41
41
  "prepare": "husky"
42
42
  },
43
43
  "dependencies": {
44
- "@modelcontextprotocol/sdk": "^1.21.0",
44
+ "@modelcontextprotocol/sdk": "^1.23.0",
45
45
  "dotenv": "^17.2.3",
46
46
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
47
47
  "express": "^5.1.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "mcpServers": {
3
3
  "mcp-stdio": {
4
- "type": "node",
4
+ "command": "node",
5
5
  "args": ["build/index.js"],
6
6
  "env": {}
7
7
  },
@@ -1,5 +1,5 @@
1
- import { z } from 'zod'
2
1
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
2
+ import { z } from 'zod'
3
3
 
4
4
  export const registerPrompts = (server: McpServer) => {
5
5
  server.registerPrompt(
@@ -1,6 +1,6 @@
1
- import registerGetData from './registerGetData'
2
1
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
3
2
  import type { OptionsType } from '@/types'
3
+ import registerGetData from './registerGetData'
4
4
 
5
5
  export const registerTools = (server: McpServer, options: OptionsType) => {
6
6
  registerGetData(server, options)
@@ -1,5 +1,5 @@
1
- import { z } from 'zod'
2
1
  import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'
2
+ import { z } from 'zod'
3
3
  import type { OptionsType } from '@/types'
4
4
 
5
5
  export default function register(server: McpServer, options: OptionsType) {