@cenogram/mcp-server 0.1.5 → 0.1.7
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/api-client.js +1 -0
- package/dist/index.js +8 -2
- package/package.json +2 -1
package/dist/api-client.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,8 +3,14 @@ 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
|
+
// ── Node version check ─────────────────────────────────────────────
|
|
9
|
+
const [nodeMajor] = process.versions.node.split(".").map(Number);
|
|
10
|
+
if (nodeMajor != null && nodeMajor < 18) {
|
|
11
|
+
process.stderr.write(`Warning: @cenogram/mcp-server recommends Node.js >= 18 (current: ${process.version}). ` +
|
|
12
|
+
"The server will try to run, but some features may not work.\n");
|
|
13
|
+
}
|
|
8
14
|
// ── Version ────────────────────────────────────────────────────────
|
|
9
15
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
16
|
let PKG_VERSION = "0.1.0";
|
|
@@ -103,7 +109,7 @@ async function main() {
|
|
|
103
109
|
await mcpServer.connect(new StdioServerTransport());
|
|
104
110
|
}
|
|
105
111
|
}
|
|
106
|
-
if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
112
|
+
if (process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url)) {
|
|
107
113
|
main().catch((err) => {
|
|
108
114
|
process.stderr.write(`Fatal: ${String(err)}\n`);
|
|
109
115
|
process.exit(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cenogram/mcp-server",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "MCP Server for Polish real estate transaction data (7M+ transactions from RCN)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@modelcontextprotocol/sdk": "^1.28.0",
|
|
23
|
+
"undici": "^5.29.0",
|
|
23
24
|
"zod": "^3.24.0"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|