From 9d3cad8345a36b238c4013a4e8670ef1ad403a03 Mon Sep 17 00:00:00 2001 From: Mavdol Date: Tue, 5 May 2026 19:27:58 +0200 Subject: [PATCH 1/2] feat: streamline bash-mcp build configuration --- packages/bash-mcp/package.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/bash-mcp/package.json b/packages/bash-mcp/package.json index 6a2f2fe..2d56705 100644 --- a/packages/bash-mcp/package.json +++ b/packages/bash-mcp/package.json @@ -3,23 +3,13 @@ "version": "0.1.3", "description": "MCP server exposing sandboxed bash for untrusted command execution", "type": "module", - "main": "./dist/index.cjs", - "module": "./dist/index.js", - "types": "./dist/index.d.ts", - "exports": { - ".": { - "import": "./dist/index.js", - "require": "./dist/index.cjs", - "types": "./dist/index.d.ts" - } - }, "bin": { - "bash-mcp": "./src/index.js" + "bash-mcp": "./dist/index.js" }, "scripts": { "start": "node --conditions source --import tsx/esm src/index.ts", "dev": "tsx --conditions source watch src/index.ts", - "build": "tsup src/index.ts --format esm --dts" + "build": "tsup src/index.ts --format esm" }, "homepage": "https://github.com/capsulerun/bash/tree/main/packages/bash-mcp", "repository": { From 5683b3cc5112fe5b01c797b65a48e4de397a870c Mon Sep 17 00:00:00 2001 From: Mavdol Date: Tue, 5 May 2026 21:35:55 +0200 Subject: [PATCH 2/2] feat: add Dockerfile for mcp-server and update tsconfig to output declarations to dist directory --- packages/bash/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bash/tsconfig.json b/packages/bash/tsconfig.json index aa6403a..63e5528 100644 --- a/packages/bash/tsconfig.json +++ b/packages/bash/tsconfig.json @@ -5,7 +5,8 @@ "rootDir": "./src", "types": ["node"], "declaration": true, - "emitDeclarationOnly": false + "emitDeclarationOnly": true, + "declarationDir": "./dist" }, "include": ["src/**/*.ts"], "exclude": ["node_modules", "dist", "tsup.config.ts"]