run-mcp 1.6.2 → 1.7.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.
Files changed (3) hide show
  1. package/README.md +75 -0
  2. package/dist/index.js +2133 -860
  3. package/package.json +9 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "run-mcp",
3
- "version": "1.6.2",
3
+ "version": "1.7.0",
4
4
  "description": "A smart proxy and interactive REPL for Model Context Protocol (MCP) servers",
5
5
  "homepage": "https://github.com/funkyfunc/run-mcp#readme",
6
6
  "bugs": {
@@ -30,15 +30,17 @@
30
30
  },
31
31
  "scripts": {
32
32
  "build": "tsup",
33
+ "build:fixtures": "tsup tests/fixtures/mock-server.ts tests/fixtures/vulnerable-stdio-server.ts --format esm --target node18 --out-dir tests/fixtures/dist",
33
34
  "dev": "tsup --watch",
34
35
  "start": "node dist/index.js",
35
36
  "typecheck": "tsc --noEmit",
36
37
  "lint": "eslint src tests",
37
38
  "lint:fix": "eslint src tests --fix",
38
39
  "format": "prettier --write \"src/**/*.{ts,js,json}\" \"tests/**/*.{ts,js,json}\" \"*.{ts,js,json}\"",
39
- "pretest": "tsup",
40
+ "pretest": "tsup && npm run build:fixtures",
40
41
  "test": "vitest run",
41
- "prepublishOnly": "tsup"
42
+ "prepublishOnly": "tsup",
43
+ "prepare": "simple-git-hooks"
42
44
  },
43
45
  "dependencies": {
44
46
  "@inquirer/prompts": "^8.3.2",
@@ -54,10 +56,14 @@
54
56
  "eslint": "^10.6.0",
55
57
  "eslint-config-prettier": "^10.1.8",
56
58
  "prettier": "^3.9.1",
59
+ "simple-git-hooks": "^2.13.1",
57
60
  "tsup": "^8.5.1",
58
61
  "tsx": "^4.21.0",
59
62
  "typescript": "^5.8.2",
60
63
  "typescript-eslint": "^8.62.0",
61
64
  "vitest": "^4.1.2"
65
+ },
66
+ "simple-git-hooks": {
67
+ "pre-commit": "npm run format && npm run lint && npm run typecheck && npm test"
62
68
  }
63
69
  }