- src/*.ts: Port von mcp/*.php (helpers, tools, server) - Bun.serve() statt php -S — production-grade HTTP, POST funktioniert - dist/mua-1.0.0-x86_64-1.txz: Slackware-Paket (Binary + rc.mua + mua.page + PHP-Helper) - plugin/mua.plg: .txz-Installation via upgradepkg - scripts/rc.mua: Binary statt php -S - scripts/mua.page: Binary-Info statt PHP-Version - scripts/package.sh: .txz-Builder Fix: MCP-POST-Endpunkt lieferte leeren Body (php -S Limitation). Bun.serve() löst das Problem.
17 lines
523 B
JSON
17 lines
523 B
JSON
{
|
|
"name": "mua",
|
|
"version": "1.0.0",
|
|
"description": "Mikes Unraid Agent - MCP over HTTP (Streamable HTTP) for Unraid",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"build": "bun build ./src/index.ts --compile --target=bun-linux-x64 --outfile dist/mua",
|
|
"build:mac": "bun build ./src/index.ts --compile --target=bun-darwin-arm64 --outfile dist/mua-mac",
|
|
"start": "bun run src/index.ts",
|
|
"selftest": "bun run src/selftest.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "latest"
|
|
}
|
|
}
|