splitwise-mcp 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -1,8 +1,14 @@
1
- import { config as loadDotenv } from 'dotenv';
2
1
  import { dirname, join } from 'path';
3
2
  import { fileURLToPath } from 'url';
4
- const __dirname = dirname(fileURLToPath(import.meta.url));
5
- loadDotenv({ path: join(__dirname, '..', '.env'), override: false, quiet: true });
3
+ // Load .env for local dev; silently skip if dotenv is unavailable (e.g. mcpb bundle)
4
+ try {
5
+ const { config } = await import('dotenv');
6
+ const __dirname = dirname(fileURLToPath(import.meta.url));
7
+ config({ path: join(__dirname, '..', '.env'), override: false });
8
+ }
9
+ catch {
10
+ // not available — rely on process.env (mcpb sets credentials via mcp_config.env)
11
+ }
6
12
  const BASE_URL = 'https://secure.splitwise.com/api/v3.0';
7
13
  export class SplitwiseClient {
8
14
  apiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "splitwise-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Splitwise MCP server for Claude — developed and maintained by AI (Claude Sonnet 4.6)",
5
5
  "author": "Claude Sonnet 4.6 (AI) <https://www.anthropic.com/claude>",
6
6
  "repository": {
@@ -12,10 +12,14 @@
12
12
  "splitwise-mcp": "dist/index.js"
13
13
  },
14
14
  "files": [
15
- "dist"
15
+ "dist",
16
+ ".claude-plugin",
17
+ "SKILL.md",
18
+ ".mcp.json"
16
19
  ],
17
20
  "scripts": {
18
- "build": "tsc",
21
+ "build": "tsc && npm run bundle",
22
+ "bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --external:dotenv --outfile=dist/bundle.js",
19
23
  "dev": "node dist/index.js",
20
24
  "test": "vitest run",
21
25
  "test:watch": "vitest",
@@ -28,6 +32,7 @@
28
32
  "devDependencies": {
29
33
  "@types/node": "^24.12.0",
30
34
  "@vitest/coverage-v8": "^4.1.0",
35
+ "esbuild": "^0.27.4",
31
36
  "typescript": "^5.9.3",
32
37
  "vitest": "^4.1.0"
33
38
  }