rhombus-node-mcp 0.1.20 → 0.1.22

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.
@@ -55,7 +55,6 @@ export async function getFaceEvents(args, timeZone, requestModifiers, sessionId)
55
55
  }
56
56
  }
57
57
  // one last sweep of null values
58
- console.log("filteredArgs", filteredArgs);
59
58
  filteredArgs = removeNulls(filteredArgs);
60
59
  const response = await postApi({
61
60
  route: "/faceRecognition/faceEvent/findFaceEventsByOrg",
package/dist/logger.js CHANGED
@@ -1,6 +1,6 @@
1
+ import fs from "node:fs";
2
+ import path from "node:path";
1
3
  import log4js from "log4js";
2
- import path from "path";
3
- import fs from "fs";
4
4
  const baseDir = process.env.LOG_FOLDER ?? process.cwd();
5
5
  const logDir = path.resolve(baseDir, "logs");
6
6
  // Attempt to create log directory, but don't fail if we can't
@@ -1,5 +1,6 @@
1
1
  import { TOOL_ARGS, OUTPUT_SCHEMA, RequestType, } from "../types/report-tool-types.js";
2
2
  import { getOccupancyCountReport, getSummaryCountReport, getOccupancyEnabledCameras, getLineCrossingEnabledCameras, getThresholdCrossingCountReport, findPromptConfigurations, getCustomLLMReport, } from "../api/report-tool-api.js";
3
+ import { logger } from "../logger.js";
3
4
  const TOOL_NAME = "report-tool";
4
5
  const TOOL_DESCRIPTION = `
5
6
  This tool generates summary count reports for various types of data within the Rhombus system.
@@ -150,7 +151,7 @@ const TOOL_HANDLER = async (args, extra) => {
150
151
  const { promptUuid, promptType, rangeStart, rangeEnd, interval } = customLLMReportRequest;
151
152
  const report = await getCustomLLMReport(promptUuid, promptType, new Date(rangeStart).getTime(), new Date(rangeEnd).getTime(), interval, extra._meta?.requestModifiers, extra.sessionId);
152
153
  // Log the report data to help debug
153
- console.log("📊 Custom LLM Report Tool Response:", JSON.stringify({
154
+ logger.log("📊 Custom LLM Report Tool Response:", JSON.stringify({
154
155
  promptType,
155
156
  hasError: report?.error,
156
157
  dataPointsCount: report?.timeSeriesDataPoints?.length,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhombus-node-mcp",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "description": "MCP server for Rhombus API",
5
5
  "keywords": [
6
6
  "ai",
@@ -27,6 +27,7 @@
27
27
  "clean": "rm -rf dist",
28
28
  "build": "rm -rf dist && tsc && chmod +x dist/*.js",
29
29
  "docker:build": "docker build -t rhombussystems/mcp-server-rhombus .",
30
+ "start": "node dist/index.js",
30
31
  "prepare": "npm run build",
31
32
  "watch": "npm run clean && tsc --watch",
32
33
  "generate-schemas": "npx tsx scripts/generate-zod-schemas.ts",
@@ -44,7 +45,7 @@
44
45
  "dist"
45
46
  ],
46
47
  "dependencies": {
47
- "@modelcontextprotocol/sdk": "^1.9.0",
48
+ "@modelcontextprotocol/sdk": "^1.21.1",
48
49
  "axios": "^1.11.0",
49
50
  "cheerio": "^1.1.2",
50
51
  "chrono-node": "^2.8.0",
@@ -75,4 +76,4 @@
75
76
  "engines": {
76
77
  "node": ">=18"
77
78
  }
78
- }
79
+ }