@cenogram/mcp-server 0.1.5 → 0.1.6

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/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { dirname, join } from "node:path";
6
- import { readFileSync } from "node:fs";
6
+ import { readFileSync, realpathSync } from "node:fs";
7
7
  import { registerTools } from "./tools.js";
8
8
  // ── Version ────────────────────────────────────────────────────────
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
@@ -103,7 +103,7 @@ async function main() {
103
103
  await mcpServer.connect(new StdioServerTransport());
104
104
  }
105
105
  }
106
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
106
+ if (process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url)) {
107
107
  main().catch((err) => {
108
108
  process.stderr.write(`Fatal: ${String(err)}\n`);
109
109
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cenogram/mcp-server",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "MCP Server for Polish real estate transaction data (7M+ transactions from RCN)",
5
5
  "type": "module",
6
6
  "bin": {