@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 +5 -3
- package/manifest.json +1 -1
- package/openfinance.mcpb +0 -0
- package/package.json +1 -1
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 {
|
|
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
|
|
189
|
-
var pkg =
|
|
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.
|
|
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
|