@8btc/finance-assistant-mcp 0.0.62 → 0.0.63
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/index.cjs +2 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,6 @@ const sse_js = require("@modelcontextprotocol/sdk/server/sse.js");
|
|
|
9
9
|
const express = require("express");
|
|
10
10
|
const streamableHttp_js = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
11
11
|
const cors = require("cors");
|
|
12
|
-
const z = require("zod");
|
|
13
12
|
const jsxRuntime = require("react/jsx-runtime");
|
|
14
13
|
const ReactDOMServer = require("react-dom/server");
|
|
15
14
|
const echarts = require("echarts");
|
|
@@ -18,6 +17,7 @@ const tailwindMerge = require("tailwind-merge");
|
|
|
18
17
|
const dayjs = require("dayjs");
|
|
19
18
|
const react = require("react");
|
|
20
19
|
const qrcode_react = require("qrcode.react");
|
|
20
|
+
const z = require("zod");
|
|
21
21
|
const winston = require("winston");
|
|
22
22
|
const zodToJsonSchema$1 = require("zod-to-json-schema");
|
|
23
23
|
const fs = require("fs");
|
|
@@ -45,7 +45,7 @@ function _interopNamespaceDefault(e) {
|
|
|
45
45
|
}
|
|
46
46
|
const echarts__namespace = /* @__PURE__ */ _interopNamespaceDefault(echarts);
|
|
47
47
|
const d3__namespace = /* @__PURE__ */ _interopNamespaceDefault(d3);
|
|
48
|
-
const version = "0.0.
|
|
48
|
+
const version = "0.0.63";
|
|
49
49
|
const pkgJSON = {
|
|
50
50
|
version
|
|
51
51
|
};
|
|
@@ -1815,13 +1815,6 @@ const tool$5 = {
|
|
|
1815
1815
|
};
|
|
1816
1816
|
const toolHandler$5 = async (args) => {
|
|
1817
1817
|
try {
|
|
1818
|
-
const result = z.object(newsSchema).safeParse(args);
|
|
1819
|
-
if (!result.success) {
|
|
1820
|
-
throw new types_js.McpError(
|
|
1821
|
-
types_js.ErrorCode.InvalidParams,
|
|
1822
|
-
`Invalid parameters: ${result.error.message}`
|
|
1823
|
-
);
|
|
1824
|
-
}
|
|
1825
1818
|
logger.info(`start: ${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
1826
1819
|
logger.info(args);
|
|
1827
1820
|
const resp = generateFinancialNewsHtml({
|