create-mcp-kit 0.1.2 → 0.1.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-mcp-kit",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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.2"
51
+ "@mcp-tool-kit/shared": "^0.1.3"
52
52
  },
53
53
  "devDependencies": {},
54
54
  "scripts": {
@@ -27,22 +27,22 @@
27
27
  "prepare": "husky"
28
28
  },
29
29
  "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.20.1",
30
+ "@modelcontextprotocol/sdk": "^1.20.2",
31
31
  "dotenv": "^17.2.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  {{#if (includes plugins 'commitlint')}}
35
- "@commitlint/cli": "^19.8.1",
36
- "@commitlint/config-conventional": "^19.8.1",
35
+ "@commitlint/cli": "^20.1.0",
36
+ "@commitlint/config-conventional": "^20.0.0",
37
37
  {{/if}}
38
38
  {{#if (includes plugins 'vitest')}}
39
- "@vitest/coverage-v8": "^3.2.4",
39
+ "@vitest/coverage-v8": "^4.0.5",
40
40
  {{/if}}
41
41
  {{#if (includes plugins 'changelog')}}
42
42
  "compare-func": "^2.0.0",
43
43
  {{/if}}
44
44
  {{#if (includes plugins 'changelog')}}
45
- "conventional-changelog-angular": "^8.0.0",
45
+ "conventional-changelog-angular": "^8.1.0",
46
46
  "conventional-changelog-cli": "^5.0.0",
47
47
  {{/if}}
48
48
  "cross-env": "^10.1.0",
@@ -55,11 +55,11 @@
55
55
  {{/if}}
56
56
  "husky": "^9.1.7",
57
57
  {{#if (includes plugins 'style')}}
58
- "lint-staged": "^16.2.4",
58
+ "lint-staged": "^16.2.6",
59
59
  "prettier": "^3.6.2",
60
60
  {{/if}}
61
61
  {{#if (includes plugins 'vitest')}}
62
- "vitest": "^3.2.4",
62
+ "vitest": "^4.0.5",
63
63
  {{/if}}
64
64
  "rimraf": "^6.0.1"
65
65
  }
@@ -16,12 +16,7 @@ export default defineConfig({
16
16
  reporter: ['text', 'lcov', 'html'],
17
17
  },
18
18
  pool: 'threads',
19
- poolOptions: {
20
- threads: {
21
- maxThreads: 1,
22
- minThreads: 1,
23
- },
24
- },
19
+ maxWorkers: 1,
25
20
  },
26
21
  })
27
22
  {{/if}}
@@ -27,27 +27,27 @@
27
27
  "prepare": "husky"
28
28
  },
29
29
  "dependencies": {
30
- "@modelcontextprotocol/sdk": "^1.20.1",
30
+ "@modelcontextprotocol/sdk": "^1.20.2",
31
31
  "dotenv": "^17.2.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  {{#if (includes plugins 'commitlint')}}
35
- "@commitlint/cli": "^19.8.1",
36
- "@commitlint/config-conventional": "^19.8.1",
35
+ "@commitlint/cli": "^20.1.0",
36
+ "@commitlint/config-conventional": "^20.0.0",
37
37
  {{/if}}
38
38
  {{#if (includes plugins 'style')}}
39
- "@typescript-eslint/eslint-plugin": "^8.46.1",
40
- "@typescript-eslint/parser": "^8.46.1",
39
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
40
+ "@typescript-eslint/parser": "^8.46.2",
41
41
  {{/if}}
42
42
  {{#if (includes plugins 'vitest')}}
43
- "@vitest/coverage-v8": "^3.2.4",
43
+ "@vitest/coverage-v8": "^4.0.5",
44
44
  {{/if}}
45
45
  {{#if (includes plugins 'changelog')}}
46
46
  "compare-func": "^2.0.0",
47
47
  {{/if}}
48
48
  "concurrently": "^9.2.1",
49
49
  {{#if (includes plugins 'changelog')}}
50
- "conventional-changelog-angular": "^8.0.0",
50
+ "conventional-changelog-angular": "^8.1.0",
51
51
  "conventional-changelog-cli": "^5.0.0",
52
52
  {{/if}}
53
53
  "cross-env": "^10.1.0",
@@ -60,13 +60,13 @@
60
60
  {{/if}}
61
61
  "husky": "^9.1.7",
62
62
  {{#if (includes plugins 'style')}}
63
- "lint-staged": "^16.2.4",
63
+ "lint-staged": "^16.2.6",
64
64
  "prettier": "^3.6.2",
65
65
  {{/if}}
66
66
  "tsx": "^4.20.6",
67
67
  "typescript": "^5.9.3",
68
68
  {{#if (includes plugins 'vitest')}}
69
- "vitest": "^3.2.4",
69
+ "vitest": "^4.0.5",
70
70
  {{/if}}
71
71
  "rimraf": "^6.0.1"
72
72
  }
@@ -16,12 +16,7 @@ export default defineConfig({
16
16
  reporter: ['text', 'lcov', 'html'],
17
17
  },
18
18
  pool: 'threads',
19
- poolOptions: {
20
- threads: {
21
- maxThreads: 1,
22
- minThreads: 1,
23
- },
24
- },
19
+ maxWorkers: 1,
25
20
  },
26
21
  })
27
22
  {{/if}}
@@ -41,7 +41,7 @@
41
41
  "prepare": "husky"
42
42
  },
43
43
  "dependencies": {
44
- "@modelcontextprotocol/sdk": "^1.20.1",
44
+ "@modelcontextprotocol/sdk": "^1.20.2",
45
45
  "dotenv": "^17.2.3",
46
46
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
47
47
  "express": "^5.1.0",
@@ -52,21 +52,21 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  {{#if (includes plugins 'commitlint')}}
55
- "@commitlint/cli": "^19.8.1",
56
- "@commitlint/config-conventional": "^19.8.1",
55
+ "@commitlint/cli": "^20.1.0",
56
+ "@commitlint/config-conventional": "^20.0.0",
57
57
  {{/if}}
58
58
  {{#if (includes plugins 'inspector')}}
59
- "@modelcontextprotocol/inspector": "^0.16.8",
59
+ "@modelcontextprotocol/inspector": "^0.17.2",
60
60
  {{/if}}
61
61
  {{#if (includes plugins 'vitest')}}
62
- "@vitest/coverage-v8": "^3.2.4",
62
+ "@vitest/coverage-v8": "^4.0.5",
63
63
  "c8": "^10.1.3",
64
64
  {{/if}}
65
65
  {{#if (includes plugins 'changelog')}}
66
66
  "compare-func": "^2.0.0",
67
67
  {{/if}}
68
68
  {{#if (includes plugins 'changelog')}}
69
- "conventional-changelog-angular": "^8.0.0",
69
+ "conventional-changelog-angular": "^8.1.0",
70
70
  "conventional-changelog-cli": "^5.0.0",
71
71
  {{/if}}
72
72
  "cross-env": "^10.1.0",
@@ -79,7 +79,7 @@
79
79
  {{/if}}
80
80
  "husky": "^9.1.7",
81
81
  {{#if (includes plugins 'style')}}
82
- "lint-staged": "^16.2.4",
82
+ "lint-staged": "^16.2.6",
83
83
  {{/if}}
84
84
  {{#if (includes plugins 'vitest')}}
85
85
  "nyc": "^17.1.0",
@@ -91,7 +91,7 @@
91
91
  "tree-kill": "^1.2.2",
92
92
  {{/if}}
93
93
  {{#if (includes plugins 'vitest')}}
94
- "vitest": "^3.2.4",
94
+ "vitest": "^4.0.5",
95
95
  {{/if}}
96
96
  "rimraf": "^6.0.1"
97
97
  }
@@ -64,15 +64,19 @@ const after = async result => {
64
64
  if (inspectorProcess) {
65
65
  kill(inspectorProcess.pid, 'SIGINT')
66
66
  }
67
- inspectorProcess = spawn('npx', ['@modelcontextprotocol/inspector', 'build/index.js'], {
68
- stdio: 'inherit',
69
- shell: true,
70
- env: {
71
- ...process.env,
72
- DANGEROUSLY_OMIT_AUTH: true,
73
- MCP_AUTO_OPEN_ENABLED: autoOpenBrowser,
67
+ inspectorProcess = spawn(
68
+ 'npx',
69
+ ['@modelcontextprotocol/inspector', '--config', './src/assets/mcp.json', '--server', 'mcp-stdio'],
70
+ {
71
+ stdio: 'inherit',
72
+ shell: true,
73
+ env: {
74
+ ...process.env,
75
+ DANGEROUSLY_OMIT_AUTH: true,
76
+ MCP_AUTO_OPEN_ENABLED: autoOpenBrowser,
77
+ },
74
78
  },
75
- })
79
+ )
76
80
  autoOpenBrowser = false
77
81
 
78
82
  if (process.env.TRANSPORT === 'web') {
@@ -0,0 +1,17 @@
1
+ {
2
+ "mcpServers": {
3
+ "mcp-stdio": {
4
+ "type": "node",
5
+ "args": ["build/index.js"],
6
+ "env": {}
7
+ },
8
+ "mcp-streamable": {
9
+ "type": "streamable-http",
10
+ "url": "http://localhost:8401/mcp"
11
+ },
12
+ "mcp-sse": {
13
+ "type": "sse",
14
+ "url": "http://localhost:8401/sse"
15
+ }
16
+ }
17
+ }
@@ -17,12 +17,7 @@ export default defineConfig({
17
17
  },
18
18
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
19
19
  pool: 'threads',
20
- poolOptions: {
21
- threads: {
22
- maxThreads: 1,
23
- minThreads: 1,
24
- },
25
- },
20
+ maxWorkers: 1,
26
21
  {{/if}}
27
22
  },
28
23
  })
@@ -21,7 +21,7 @@ const stdioClientTransport = new StdioClientTransport({
21
21
  command: 'c8',
22
22
  args: ['--reporter=lcov', '--reporter=text', 'node', './src/index.js'],
23
23
  env: {
24
- ...process.env,
24
+ ...(process.env),
25
25
  NODE_V8_COVERAGE: './coverage/tmp',
26
26
  },
27
27
  })
@@ -41,7 +41,7 @@
41
41
  "prepare": "husky"
42
42
  },
43
43
  "dependencies": {
44
- "@modelcontextprotocol/sdk": "^1.20.1",
44
+ "@modelcontextprotocol/sdk": "^1.20.2",
45
45
  "dotenv": "^17.2.3",
46
46
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
47
47
  "express": "^5.1.0",
@@ -52,22 +52,22 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  {{#if (includes plugins 'commitlint')}}
55
- "@commitlint/cli": "^19.8.1",
56
- "@commitlint/config-conventional": "^19.8.1",
55
+ "@commitlint/cli": "^20.1.0",
56
+ "@commitlint/config-conventional": "^20.0.0",
57
57
  {{/if}}
58
58
  {{#if (includes plugins 'inspector')}}
59
- "@modelcontextprotocol/inspector": "^0.16.8",
59
+ "@modelcontextprotocol/inspector": "^0.17.2",
60
60
  {{/if}}
61
61
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
62
- "@types/express": "^5.0.3",
62
+ "@types/express": "^5.0.5",
63
63
  {{/if}}
64
- "@types/yargs": "^17.0.33",
64
+ "@types/yargs": "^17.0.34",
65
65
  {{#if (includes plugins 'style')}}
66
- "@typescript-eslint/eslint-plugin": "^8.46.1",
67
- "@typescript-eslint/parser": "^8.46.1",
66
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
67
+ "@typescript-eslint/parser": "^8.46.2",
68
68
  {{/if}}
69
69
  {{#if (includes plugins 'vitest')}}
70
- "@vitest/coverage-v8": "^3.2.4",
70
+ "@vitest/coverage-v8": "^4.0.5",
71
71
  "c8": "^10.1.3",
72
72
  {{/if}}
73
73
  {{#if (includes plugins 'changelog')}}
@@ -75,7 +75,7 @@
75
75
  {{/if}}
76
76
  "concurrently": "^9.2.1",
77
77
  {{#if (includes plugins 'changelog')}}
78
- "conventional-changelog-angular": "^8.0.0",
78
+ "conventional-changelog-angular": "^8.1.0",
79
79
  "conventional-changelog-cli": "^5.0.0",
80
80
  {{/if}}
81
81
  "cross-env": "^10.1.0",
@@ -88,7 +88,7 @@
88
88
  {{/if}}
89
89
  "husky": "^9.1.7",
90
90
  {{#if (includes plugins 'style')}}
91
- "lint-staged": "^16.2.4",
91
+ "lint-staged": "^16.2.6",
92
92
  {{/if}}
93
93
  {{#if (includes plugins 'vitest')}}
94
94
  "nyc": "^17.1.0",
@@ -102,7 +102,7 @@
102
102
  "tsx": "^4.20.6",
103
103
  "typescript": "^5.9.3",
104
104
  {{#if (includes plugins 'vitest')}}
105
- "vitest": "^3.2.4",
105
+ "vitest": "^4.0.5",
106
106
  {{/if}}
107
107
  "rimraf": "^6.0.1"
108
108
  }
@@ -64,15 +64,19 @@ const after = async result => {
64
64
  if (inspectorProcess) {
65
65
  kill(inspectorProcess.pid, 'SIGINT')
66
66
  }
67
- inspectorProcess = spawn('npx', ['@modelcontextprotocol/inspector', 'build/index.js'], {
68
- stdio: 'inherit',
69
- shell: true,
70
- env: {
71
- ...process.env,
72
- DANGEROUSLY_OMIT_AUTH: true,
73
- MCP_AUTO_OPEN_ENABLED: autoOpenBrowser,
67
+ inspectorProcess = spawn(
68
+ 'npx',
69
+ ['@modelcontextprotocol/inspector', '--config', './src/assets/mcp.json', '--server', 'mcp-stdio'],
70
+ {
71
+ stdio: 'inherit',
72
+ shell: true,
73
+ env: {
74
+ ...process.env,
75
+ DANGEROUSLY_OMIT_AUTH: true,
76
+ MCP_AUTO_OPEN_ENABLED: autoOpenBrowser,
77
+ },
74
78
  },
75
- })
79
+ )
76
80
  autoOpenBrowser = false
77
81
 
78
82
  if (process.env.TRANSPORT === 'web') {
@@ -0,0 +1,17 @@
1
+ {
2
+ "mcpServers": {
3
+ "mcp-stdio": {
4
+ "type": "node",
5
+ "args": ["build/index.js"],
6
+ "env": {}
7
+ },
8
+ "mcp-streamable": {
9
+ "type": "streamable-http",
10
+ "url": "http://localhost:8401/mcp"
11
+ },
12
+ "mcp-sse": {
13
+ "type": "sse",
14
+ "url": "http://localhost:8401/sse"
15
+ }
16
+ }
17
+ }
@@ -17,12 +17,7 @@ export default defineConfig({
17
17
  },
18
18
  {{#if (or (includes transports 'streamable') (includes transports 'sse'))}}
19
19
  pool: 'threads',
20
- poolOptions: {
21
- threads: {
22
- maxThreads: 1,
23
- minThreads: 1,
24
- },
25
- },
20
+ maxWorkers: 1,
26
21
  {{/if}}
27
22
  },
28
23
  })
@@ -21,7 +21,7 @@ const stdioClientTransport = new StdioClientTransport({
21
21
  command: 'c8',
22
22
  args: ['--reporter=lcov', '--reporter=text', 'tsx', './src/index.ts'],
23
23
  env: {
24
- ...process.env as Record<string, string>,
24
+ ...(process.env as Record<string, string>),
25
25
  NODE_V8_COVERAGE: './coverage/tmp',
26
26
  },
27
27
  })