From d318f5233d444e9226cb66d26891c7c88e8b18a8 Mon Sep 17 00:00:00 2001 From: FilipBl4gojevic <84703395+FilipBl4gojevic@users.noreply.github.com> Date: Mon, 27 Jul 2026 18:51:47 +0200 Subject: [PATCH] fix: make the shared package a devDependency and drop stale paths packages/builder is publishable (private:false) but depended on the private workspace package at runtime - a published manifest would advertise an unresolvable dependency. tsup's noExternal inlines it into the bundle, so devDependencies is the correct home. Also removes the root tsconfig.json, which still pointed at the deleted src/, and corrects two README paths the move invalidated. --- README.md | 6 +++--- package-lock.json | 4 +++- packages/builder/package.json | 12 +++++++++--- tsconfig.json | 19 ------------------- 4 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 tsconfig.json diff --git a/README.md b/README.md index e124011..57d018f 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Add to your Claude Desktop MCP config (`claude_desktop_config.json`): "mcpServers": { "vector": { "command": "node", - "args": ["/path/to/vector-mcp-server/build/index.js"], + "args": ["/path/to/vector-mcp-server/packages/builder/build/index.js"], "env": { "VECTOR_OGMIOS_URL": "https://ogmios.vector.testnet.apexfusion.org", "VECTOR_SUBMIT_URL": "https://submit.vector.testnet.apexfusion.org/api/submit/tx", @@ -188,11 +188,11 @@ npm run test:smoke Builds the server, boots it, and asserts the exposed tool inventory matches the checked-in snapshot. No wallet, no external network. CI runs this and `test:unit` on every PR. ```bash -echo "your mnemonic words here" > mnemonic.txt +echo "your mnemonic words here" > packages/builder/mnemonic.txt npm run test:integration ``` -Requires `mnemonic.txt` in the repo root containing a **funded Vector testnet** mnemonic. Covers the core tools end-to-end against Vector testnet, including the full agent lifecycle: register, discover, profile, update, transfer, message, and deregister. Never runs in CI. +Requires `mnemonic.txt` in `packages/builder/` containing a **funded Vector testnet** mnemonic. Covers the core tools end-to-end against Vector testnet, including the full agent lifecycle: register, discover, profile, update, transfer, message, and deregister. Never runs in CI. ## Architecture diff --git a/package-lock.json b/package-lock.json index ee193b4..fa49ee6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7870,7 +7870,6 @@ "name": "@apexfusion/vector-mcp-builder", "version": "0.1.0", "dependencies": { - "@apexfusion/vector-mcp-shared": "*", "@aws-sdk/client-s3": "^3.1027.0", "@lucid-evolution/lucid": "^0.4.29", "@modelcontextprotocol/sdk": "^1.4.1", @@ -7881,6 +7880,9 @@ }, "bin": { "vector-mcp-builder": "build/index.js" + }, + "devDependencies": { + "@apexfusion/vector-mcp-shared": "*" } }, "packages/shared": { diff --git a/packages/builder/package.json b/packages/builder/package.json index 28eb003..6983df5 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -4,14 +4,17 @@ "private": false, "type": "module", "description": "MCP server for Vector - AI agent interface for the Apex Fusion eUTXO L2", - "bin": { "vector-mcp-builder": "./build/index.js" }, - "files": ["build"], + "bin": { + "vector-mcp-builder": "./build/index.js" + }, + "files": [ + "build" + ], "scripts": { "build": "tsup && chmod +x build/index.js", "start": "node build/index.js" }, "dependencies": { - "@apexfusion/vector-mcp-shared": "*", "@aws-sdk/client-s3": "^3.1027.0", "@lucid-evolution/lucid": "^0.4.29", "@modelcontextprotocol/sdk": "^1.4.1", @@ -19,5 +22,8 @@ "cross-fetch": "^4.0.0", "dotenv": "^16.4.5", "zod": "^3.24.1" + }, + "devDependencies": { + "@apexfusion/vector-mcp-shared": "*" } } diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index c31190a..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "es2020", - "module": "es2020", - "moduleResolution": "node", - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, - "strict": true, - "skipLibCheck": true, - "outDir": "build", - "rootDir": "src", - "allowJs": true, - "checkJs": false, - "resolveJsonModule": true, - "incremental": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "build"] -} \ No newline at end of file