@magnetoagents/mcp 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/stdio.js +3 -2
  2. package/package.json +1 -2
package/dist/stdio.js CHANGED
@@ -19,7 +19,7 @@ import fs from 'node:fs';
19
19
  import os from 'node:os';
20
20
  import path from 'node:path';
21
21
  import readline from 'node:readline';
22
- import { pathToFileURL } from 'node:url';
22
+ import { fileURLToPath } from 'node:url';
23
23
  import { findToolDef, listToolsForScopes, missingScopePayload, MCP_PROTOCOL_VERSION, MCP_SERVER_VERSION, MCP_TOOL_CATALOG, } from './tool-catalog.js';
24
24
  import { callToolHttp } from './tool-http.js';
25
25
  function normalizeApiBase(input) {
@@ -171,7 +171,8 @@ function isMain() {
171
171
  if (!entry)
172
172
  return false;
173
173
  try {
174
- return import.meta.url === pathToFileURL(path.resolve(entry)).href;
174
+ // npm bins are symlinks — realpath both sides (same fix as @magnetoagents/cli).
175
+ return (fs.realpathSync(fileURLToPath(import.meta.url)) === fs.realpathSync(path.resolve(entry)));
175
176
  }
176
177
  catch {
177
178
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magnetoagents/mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Magneto MCP stdio server — drive computers via sk_live_* against /api/v1 (or remote /mcp)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,6 @@
25
25
  "url": "https://github.com/vargasjons/magneto-app.git",
26
26
  "directory": "packages/mcp"
27
27
  },
28
- "dependencies": {},
29
28
  "devDependencies": {
30
29
  "@types/node": "^20.17.0",
31
30
  "typescript": "^5.8.2",