rhombus-node-mcp 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 +1 -12
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,19 +31,9 @@ const STATIC_ARGS = {
31
31
  .optional(z.any())
32
32
  .describe("Optional headers accepted by tools. LLM should never ever use this. 😅"),
33
33
  };
34
- const shouldUseCustomHeaders = (headers) => {
35
- let valid = true;
36
- if (!headers)
37
- return false;
38
- Object.keys(headers).forEach(key => {
39
- if (headers[key].length === 0)
40
- valid = false;
41
- });
42
- return valid;
43
- };
44
34
  async function postApi(url, body, customHeaders) {
45
35
  let headers = {
46
- ...(shouldUseCustomHeaders(customHeaders) ? customHeaders : AUTH_HEADERS),
36
+ ...(customHeaders || AUTH_HEADERS),
47
37
  ...STATIC_HEADERS,
48
38
  };
49
39
  try {
@@ -72,7 +62,6 @@ async function getOrg(headers) {
72
62
  }
73
63
  async function getLocations(headers) {
74
64
  const url = BASE_URL + "/location/getLocationsV2";
75
- console.error("headers:", JSON.stringify(headers));
76
65
  return await postApi(url, "{}", headers);
77
66
  }
78
67
  async function getCameraList(headers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhombus-node-mcp",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "MCP server for Rhombus API",
5
5
  "keywords": [
6
6
  "ai",