mcp-for-i 0.1.2 → 0.1.3
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.
|
@@ -274,14 +274,13 @@ export class RuntimeService {
|
|
|
274
274
|
return normalizedRoot.includes(marker);
|
|
275
275
|
}
|
|
276
276
|
async scheduleWindowsSelfUpdate(push, action) {
|
|
277
|
-
const npm = await resolveNpmLaunch();
|
|
278
277
|
const controlPlaneScript = path.join(path.dirname(fileURLToPath(import.meta.url)), "index.js");
|
|
279
278
|
const jobId = `${Date.now()}-${process.pid}`;
|
|
280
279
|
const logPath = path.join(os.tmpdir(), `${PACKAGE_NAME}-${action}-${jobId}.log`);
|
|
281
280
|
const scriptPath = path.join(os.tmpdir(), `${PACKAGE_NAME}-${action}-${jobId}.cmd`);
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
const npmCmdPath = path.join(path.dirname(process.execPath), process.platform === "win32" ? "npm.cmd" : "npm");
|
|
282
|
+
const npmCommand = await pathExists(npmCmdPath) ? `"${npmCmdPath}"` : "npm.cmd";
|
|
283
|
+
const installCommand = `${npmCommand} install -g ${PACKAGE_NAME}@latest`;
|
|
285
284
|
const script = [
|
|
286
285
|
"@echo off",
|
|
287
286
|
"setlocal",
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { getTools, handleTool } from "./mcp/tools.js";
|
|
|
6
6
|
import { McpContext } from "./mcp/context.js";
|
|
7
7
|
import { log } from "./mcp/logger.js";
|
|
8
8
|
import { validateToolInput } from "./mcp/validation.js";
|
|
9
|
-
const server = new Server({ name: "mcp-for-i", version: "0.1.
|
|
9
|
+
const server = new Server({ name: "mcp-for-i", version: "0.1.3" }, { capabilities: { tools: {} } });
|
|
10
10
|
const ctx = new McpContext();
|
|
11
11
|
const tools = getTools();
|
|
12
12
|
const toolMap = new Map(tools.map(tool => [tool.name, tool]));
|