Add run.sh script

This commit is contained in:
MatMoul 2025-07-06 20:12:03 +02:00
parent bb8bdbe38b
commit 09bcac6fdf
2 changed files with 30 additions and 20 deletions

View File

@ -1,25 +1,25 @@
{ {
"name": "mcp", "name": "mcp",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"license": "ISC", "license": "ISC",
"author": "", "author": "",
"type": "module", "type": "module",
"main": "index.js", "main": "index.js",
"bin": { "bin": {
"mcp": "./build/index.js" "mcp": "./build/index.js"
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "node_modules/typescript/bin/tsc && chmod 755 build/index.js" "build": "node_modules/typescript/bin/tsc && chmod 755 build/index.js"
}, },
"files": ["build"], "files": ["build"],
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.13.0", "@modelcontextprotocol/sdk": "^1.13.0",
"zod": "^3.25.67" "zod": "^3.25.67"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^24.0.3", "@types/node": "^24.0.3",
"typescript": "^5.8.3" "typescript": "^5.8.3"
} }
} }

10
run.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cd $(dirname "${0}")
if [ ! -f build/index.js ]; then
npm i
npm run build
fi
node build/index.js