@flemist/mcp-project-tools 1.0.3 → 3.0.0

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": "@flemist/mcp-project-tools",
3
- "version": "1.0.3",
3
+ "version": "3.0.0",
4
4
  "description": "MCP project tools",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,7 +12,7 @@
12
12
  "type": "module",
13
13
  "engines": {
14
14
  "node": ">=20",
15
- "pnpm": ">=8"
15
+ "pnpm": ">=10"
16
16
  },
17
17
  "lint-staged": {
18
18
  "*.{js,cjs,mjs,ts,cts,mts,svelte,json,json5,jsonc}": [
@@ -38,6 +38,7 @@
38
38
  "@eslint/eslintrc": "3.3.1",
39
39
  "@eslint/js": "9.23.0",
40
40
  "@types/eslint": "9.6.1",
41
+ "@types/jsdom": "^21.1.7",
41
42
  "@types/node": "22.13.17",
42
43
  "@typescript-eslint/eslint-plugin": "8.30.1",
43
44
  "@typescript-eslint/parser": "8.30.1",
@@ -48,16 +49,19 @@
48
49
  "eslint-plugin-prettier": "5.2.5",
49
50
  "globals": "16.0.0",
50
51
  "husky": "9.1.7",
52
+ "jsdom": "^26.1.0",
51
53
  "lint-staged": "15.5.0",
52
54
  "npm-run-all": "4.1.5",
53
55
  "prettier": "3.5.3",
54
- "rdtsc": "5.0.7",
56
+ "rdtsc": "^5.0.7",
55
57
  "shx": "0.4.0",
58
+ "tiktoken": "^1.0.21",
56
59
  "tslib": "2.8.1",
57
60
  "tsx": "4.19.3",
58
61
  "typescript": "5.8.2",
59
62
  "typescript-eslint": "8.29.0",
60
63
  "vite": "6.3.5",
64
+ "vite-plugin-dts": "4.5.4",
61
65
  "vitest": "3.2.3"
62
66
  },
63
67
  "dependencies": {
@@ -68,9 +72,11 @@
68
72
  "@modelcontextprotocol/sdk": "^1.16.0",
69
73
  "commander": "14.0.0",
70
74
  "cors": "2.8.5",
75
+ "deepmerge": "4.3.1",
71
76
  "express": "5.1.0",
72
77
  "globby": "=11.1.0",
73
78
  "picomatch": "4.0.3",
79
+ "playwright": "^1.54.1",
74
80
  "tree-kill": "1.2.2",
75
81
  "zod": "3.25.74"
76
82
  },
@@ -93,9 +99,9 @@
93
99
  "lint-staged": "lint-staged",
94
100
  "========================= test =========================": "",
95
101
  "test": "run-s test:unit test:api test:e2e",
96
- "test:e2e": "vitest --run .e2e.",
97
- "test:api": "vitest --run .api.",
98
- "test:unit": "vitest --run .test. --bail 3",
102
+ "test:e2e": "vitest --run --bail 3 .e2e.",
103
+ "test:api": "vitest --run --bail 3 .api.",
104
+ "test:unit": "vitest --run --bail 3 .test.",
99
105
  "test:types": "tsc --noEmit",
100
106
  "========================= dev =========================": "",
101
107
  "kill-node": "taskkill /F /IM node.exe",
package/build/cli.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sources":["../src/cli.ts"],"sourcesContent":["import { Command } from 'commander'\nimport { startMcpServer } from 'src/server/startMcpServer'\nimport { AUTH_TOKEN, SERVER_NAME, SERVER_VERSION } from 'src/config/constants'\nimport * as path from 'path'\n\nconst program = new Command()\nprogram\n .name('mcp-project-tools')\n .description('MCP project tools server')\n .version(SERVER_VERSION)\n\nmcpCliRegister(program)\n\nfunction mcpCliRegister(program: Command): void {\n program\n .option('-p, --port <number>', 'Server port')\n .option('-h, --host <string>', 'Server host')\n .option('--auth-token <string>', 'Authentication token')\n .option('--log-dir <string>', 'Log directory')\n .option('--disable-process-manager', 'Disable process manager tools')\n .option('--disable-fs-manager', 'Disable file system manager tools')\n .option('--process-working-dir <string>', 'Process manager working directory')\n .option('--process-allowed-commands <commands>', 'Comma-separated list of allowed commands')\n .option('--fs-working-dir <string>', 'File system manager working directory')\n .option('--fs-exclude-patterns <patterns>', 'Comma-separated list of exclude patterns')\n .option('--mcpignore-file <string>', 'Path to .mcpignore file')\n .action(async (options) => {\n try {\n const processAllowedCommands = options.processAllowedCommands\n ? options.processAllowedCommands.split(',').map((cmd: string) => cmd.trim())\n : ['pnpm', 'echo', 'vitest', 'eslint', 'stylelint']\n\n const fsExcludePatterns = options.fsExcludePatterns\n ? options.fsExcludePatterns.split(',').map((pattern: string) => pattern.trim())\n : []\n\n const mcpignoreFile = path.resolve(options.mcpignoreFile || '.mcpignore')\n const defaultFsExcludes = [\n {\n value: mcpignoreFile,\n valueType: 'file-contains-patterns' as const,\n exclude: true,\n },\n ]\n\n const additionalFsExcludes = fsExcludePatterns.map(pattern => ({\n value: pattern,\n valueType: 'pattern' as const,\n exclude: true,\n }))\n\n await startMcpServer({\n port: options.port ? parseInt(options.port, 10) : 8000,\n host: options.host || 'local.host',\n authToken: options.authToken || AUTH_TOKEN,\n name: SERVER_NAME,\n version: SERVER_VERSION,\n logDir: options.logDir || 'tmp/mcp-project-tools/logs',\n enableJsonResponse: false,\n tools: {\n processManager: options.disableProcessManager ? null : {\n workingDir: options.processWorkingDir || null,\n run: {\n allowedCommands: processAllowedCommands,\n },\n },\n fsManager: options.disableFsManager ? null : {\n workingDir: options.fsWorkingDir || null,\n list: {\n globsExclude: [\n ...defaultFsExcludes,\n ...additionalFsExcludes,\n ],\n },\n },\n },\n })\n } catch (error) {\n console.error('Failed to start MCP server:', error)\n process.exit(1)\n }\n })\n}\n\nprogram.parse()\n"],"names":["program"],"mappings":";;;AAKA,MAAM,UAAU,IAAI,QAAA;AACpB,QACG,KAAK,mBAAmB,EACxB,YAAY,0BAA0B,EACtC,QAAQ,cAAc;AAEzB,eAAe,OAAO;AAEtB,SAAS,eAAeA,UAAwB;AAC9CA,WACG,OAAO,uBAAuB,aAAa,EAC3C,OAAO,uBAAuB,aAAa,EAC3C,OAAO,yBAAyB,sBAAsB,EACtD,OAAO,sBAAsB,eAAe,EAC5C,OAAO,6BAA6B,+BAA+B,EACnE,OAAO,wBAAwB,mCAAmC,EAClE,OAAO,kCAAkC,mCAAmC,EAC5E,OAAO,yCAAyC,0CAA0C,EAC1F,OAAO,6BAA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