@openfinance-sh/mcp 0.1.3 → 0.1.4

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/build/index.js CHANGED
@@ -5,7 +5,9 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
5
5
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
6
6
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
7
7
  import { createServer } from "http";
8
- import { createRequire } from "module";
8
+ import { readFileSync } from "fs";
9
+ import { dirname, join } from "path";
10
+ import { fileURLToPath } from "url";
9
11
 
10
12
  // src/client.ts
11
13
  var OpenFinanceClient = class {
@@ -185,8 +187,8 @@ Example queries:
185
187
  }
186
188
 
187
189
  // src/index.ts
188
- var require2 = createRequire(import.meta.url);
189
- var pkg = require2("../../package.json");
190
+ var __dirname = dirname(fileURLToPath(import.meta.url));
191
+ var pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
190
192
  function parseArgs() {
191
193
  const args = process.argv.slice(2);
192
194
  let transport = "stdio";
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "openfinance",
4
4
  "display_name": "OpenFinance",
5
- "version": "0.1.3",
5
+ "version": "0.1.4",
6
6
  "description": "Connect your financial accounts to view balances, search transactions, and get spending insights.",
7
7
  "author": {
8
8
  "name": "OpenFinance"
package/openfinance.mcpb CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfinance-sh/mcp",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "openfinance-mcp": "./build/index.js"