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.
This commit is contained in:
FilipBl4gojevic
2026-07-27 18:51:47 +02:00
parent a8912b93d4
commit d318f5233d
4 changed files with 15 additions and 26 deletions

View File

@@ -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

4
package-lock.json generated
View File

@@ -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": {

View File

@@ -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": "*"
}
}

View File

@@ -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"]
}