@8btc/finance-assistant-mcp 0.0.62 → 0.0.64
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 -16
- 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.64";
|
|
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({
|
|
@@ -4209,13 +4202,6 @@ const tool$3 = {
|
|
|
4209
4202
|
};
|
|
4210
4203
|
const toolHandler$3 = async (args) => {
|
|
4211
4204
|
try {
|
|
4212
|
-
const result = z.object(marketTrendSchema).safeParse(args);
|
|
4213
|
-
if (!result.success) {
|
|
4214
|
-
throw new types_js.McpError(
|
|
4215
|
-
types_js.ErrorCode.InvalidParams,
|
|
4216
|
-
`Invalid parameters: ${result.error.message}`
|
|
4217
|
-
);
|
|
4218
|
-
}
|
|
4219
4205
|
logger.info(`start: ${(/* @__PURE__ */ new Date()).getTime()}`);
|
|
4220
4206
|
logger.info(args);
|
|
4221
4207
|
const kline_daily2 = await getJsonDataIfExists(
|