Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 5.62 KB
/
Copy pathpackage.json
File metadata and controls
132 lines (132 loc) · 5.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "@socketsecurity/mcp",
"version": "0.7.0",
"description": "Socket MCP server for scanning dependencies",
"keywords": [],
"homepage": "https://github.com/SocketDev/socket-mcp#readme",
"bugs": {
"url": "https://github.com/SocketDev/socket-mcp/issues"
},
"author": "Alexandros Kapravelos",
"repository": {
"type": "git",
"url": "git+https://github.com/SocketDev/socket-mcp.git"
},
"bin": {
"socket-mcp": "dist/index.cjs"
},
"files": [
"CHANGELOG.md",
"dist/index.cjs",
"dist/socket-gate",
"package.json"
],
"type": "module",
"main": "./dist/index.cjs",
"publishConfig": {
"access": "public",
"provenance": true
},
"scripts": {
"approve:npm": "node scripts/npm/approve.mts",
"build": "node scripts/build.mts",
"build-mcpb": "pnpm run build && pnpm run build-mcpb:versions_match && pnpm run build-mcpb:validate && pnpm run build-mcpb:ensure-deps && pnpm run build-mcpb:mcpb-pack",
"build-mcpb:ensure-deps": "npm install --production --ignore-scripts",
"build-mcpb:mcpb-pack": "mcpb pack ./",
"build-mcpb:validate": "mcpb validate ./",
"build-mcpb:versions_match": "node scripts/check-versions.mts",
"build:bundle": "node scripts/build.mts",
"build:permissions": "chmod +x ./dist/index.cjs",
"check": "pnpm run fmt:check && pnpm run lint && pnpm run repo:check && pnpm run build-mcpb:versions_match && pnpm run repo:scan",
"clean": "node scripts/clean.mts",
"conformance": "node scripts/conformance.mts",
"cover": "vitest run --coverage --config .config/repo/vitest.config.mts",
"debug-http": "node ./mock-client/http-client.mts",
"debug-sdk": "node ./mock-client/stdio-client.mts",
"debug-stdio": "node ./mock-client/debug-client.mts",
"fix": "pnpm run fmt && pnpm run lint --fix && pnpm run fmt",
"fmt": "oxfmt --config .config/repo/oxfmtrc.json --write",
"fmt:check": "oxfmt --config .config/repo/oxfmtrc.json --check",
"lint": "oxlint --config .config/repo/oxlintrc.json",
"mcp:schema:check": "mcp-tada check --command node --arg index.mts --env SOCKET_API_TOKEN=YOUR_API_TOKEN --env MCP_HTTP_MODE=false --timeout 5000 --against test/repo/integration/server-schema.golden.json",
"mcp:schema:update": "mcp-tada introspect --command node --arg index.mts --env SOCKET_API_TOKEN=YOUR_API_TOKEN --env MCP_HTTP_MODE=false --timeout 5000 --json --out test/repo/integration/server-schema.golden.json && pnpm run fmt test/repo/integration/server-schema.golden.json",
"plugin:chatgpt:pack": "node scripts/plugin/chatgpt/pack.mts",
"postpublish": "pnpm run clean",
"prepare": "node scripts/install-git-hooks.mts",
"prepublishOnly": "node -e \"if (process.env.GITHUB_ACTIONS !== 'true') throw new Error('Publish through the npm workflow')\"",
"publish:npm": "node scripts/npm/dispatch.mts",
"repo:check": "pnpm run repo:type && pnpm run build",
"repo:scan": "node scripts/scan.mts",
"repo:type": "tsc --noEmit -p tsconfig.json",
"server-http": "pnpm run build:bundle && MCP_HTTP_MODE=true SOCKET_API_TOKEN=${SOCKET_API_TOKEN:-${SOCKET_API_KEY}} node ./dist/index.cjs",
"server-http:debug": "pnpm run build:bundle && SOCKET_DEBUG=1 MCP_HTTP_MODE=true SOCKET_API_TOKEN=${SOCKET_API_TOKEN:-${SOCKET_API_KEY}} node ./dist/index.cjs",
"server-stdio": "pnpm run build:bundle && SOCKET_API_TOKEN=${SOCKET_API_TOKEN:-${SOCKET_API_KEY}} node ./dist/index.cjs",
"server-stdio:debug": "pnpm run build:bundle && SOCKET_DEBUG=1 SOCKET_API_TOKEN=${SOCKET_API_TOKEN:-${SOCKET_API_KEY}} node ./dist/index.cjs",
"snapshots:refresh": "pnpm run test:e2e:update test/e2e/termless.test.mts",
"test": "vitest run --config .config/repo/vitest.config.mts",
"test:ci": "pnpm run test --bail=1",
"test:e2e": "vitest run --config .config/repo/vitest.e2e.config.mts",
"test:e2e:screenshots": "pnpm run test:e2e test/e2e/termless.test.mts --bail=1",
"test:e2e:update": "vitest run --update --config .config/repo/vitest.e2e.config.mts",
"test:fuzz": "node scripts/fuzz.mts",
"test:tsc": "tsgo --noEmit -p tsconfig.json"
},
"devDependencies": {
"@anthropic-ai/mcpb": "catalog:",
"@modelcontextprotocol/client": "catalog:",
"@modelcontextprotocol/conformance": "catalog:",
"@modelcontextprotocol/core": "catalog:",
"@modelcontextprotocol/node": "catalog:",
"@modelcontextprotocol/server": "catalog:",
"@sentry/core": "catalog:",
"@sinclair/typebox": "catalog:",
"@socketregistry/packageurl-js": "catalog:",
"@socketregistry/packageurl-js-stable": "catalog:",
"@socketsecurity/lib": "catalog:",
"@socketsecurity/lib-stable": "catalog:",
"@socketsecurity/sdk": "catalog:",
"@socketsecurity/sdk-stable": "catalog:",
"@termless/core": "0.11.0",
"@termless/xtermjs": "0.11.0",
"@types/node": "catalog:",
"@typescript/native-preview": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitiate/core": "catalog:",
"fast-check": "catalog:",
"mcp-tada": "catalog:",
"nock": "catalog:",
"node-pty": "1.2.0-beta.18",
"oxfmt": "catalog:",
"oxlint": "catalog:",
"rolldown": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:",
"vitiate": "catalog:"
},
"devEngines": {
"packageManager": [
{
"name": "npm",
"version": ">=12.2.0",
"onFail": "error"
},
{
"name": "pnpm",
"version": ">=12.12.0",
"onFail": "error"
}
]
},
"engines": {
"node": ">=24",
"npm": ">=12.2.0",
"pnpm": ">=12.12.0"
},
"allowScripts": {
"cpu-features": false,
"esbuild": true,
"protobufjs": false,
"puppeteer": false,
"ssh2": false
}
}