@uzqw/mcp 0.1.3 → 0.1.5
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.js +5 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { writeFileSync } from "fs";
|
|
8
|
+
import { createRequire } from "module";
|
|
8
9
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
9
10
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
10
11
|
import open from "open";
|
|
@@ -235,6 +236,8 @@ function registerTools(server2, client2) {
|
|
|
235
236
|
// src/index.ts
|
|
236
237
|
var CALLBACK_PORT = 8199;
|
|
237
238
|
var LOGIN_TIMEOUT_MS = 12e4;
|
|
239
|
+
var require2 = createRequire(import.meta.url);
|
|
240
|
+
var MCP_VERSION = require2("../package.json").version;
|
|
238
241
|
var sub = process.argv[2];
|
|
239
242
|
if (sub === "install" || sub === "uninstall") {
|
|
240
243
|
const { runInstall, runUninstall, parseEnvFlag } = await import("./install-D7FNIM42.js");
|
|
@@ -259,7 +262,7 @@ if (sub === "--help" || sub === "-h") {
|
|
|
259
262
|
`);
|
|
260
263
|
process.exit(0);
|
|
261
264
|
}
|
|
262
|
-
var server = new McpServer({ name: "recolx", version:
|
|
265
|
+
var server = new McpServer({ name: "recolx", version: MCP_VERSION });
|
|
263
266
|
var client = new RecolxClient({});
|
|
264
267
|
var READ_ONLY2 = { readOnlyHint: true, destructiveHint: false, openWorldHint: true };
|
|
265
268
|
server.registerTool(
|
|
@@ -320,7 +323,7 @@ server.registerTool(
|
|
|
320
323
|
text: `\u6388\u6743\u8D85\u65F6\uFF082 \u5206\u949F\uFF09\u3002\u82E5\u6D4F\u89C8\u5668\u672A\u81EA\u52A8\u6253\u5F00\uFF0C\u8BF7\u624B\u52A8\u8BBF\u95EE\uFF1A
|
|
321
324
|
${authReq.url}
|
|
322
325
|
|
|
323
|
-
\u8FDC\u7A0B/\u65E0\u5934\u673A\u5668\u9700\
|
|
326
|
+
\u8FDC\u7A0B/\u65E0\u5934\u673A\u5668\uFF1A\u53EF\u8BBE RECOLX_DEV_AUTH_URL_FILE=/path/url.txt \u8BA9 login \u628A\u6388\u6743 URL \u5199\u5165\u6587\u4EF6\u540E\u518D\u624B\u52A8\u5904\u7406\uFF1B\u5E76\u9700\u8F6C\u53D1\u672C\u5730\u7AEF\u53E3 ${CALLBACK_PORT}\uFF1Assh -L ${CALLBACK_PORT}:localhost:${CALLBACK_PORT}`
|
|
324
327
|
}
|
|
325
328
|
],
|
|
326
329
|
isError: true
|