@mithung/vunet-mcp-server 2.0.3 → 2.0.4

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/CHANGELOG.md CHANGED
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.0.4] - 2026-02-13
9
+
10
+ ### Fixed
11
+ - **CRITICAL FIX**: Changed metric query endpoint from `/metrics/` to `/query/`
12
+ - Fixed query parameter names to use VuNet camelCase format (relativeTime, startTime, endTime)
13
+ - Metrics now query correctly against VuNet tenant
14
+
8
15
  ## [2.0.3] - 2026-02-13
9
16
 
10
17
  ### Fixed
package/index.js CHANGED
@@ -26,7 +26,7 @@ class VunetMCPServer {
26
26
  this.server = new Server(
27
27
  {
28
28
  name: "vunet-mcp-server",
29
- version: "2.0.3",
29
+ version: "2.0.4",
30
30
  },
31
31
  {
32
32
  capabilities: {
@@ -188,12 +188,12 @@ class VunetMCPServer {
188
188
  buildQueryParams(args) {
189
189
  const params = {};
190
190
 
191
- // Time parameters
191
+ // Time parameters (VuNet uses camelCase: relativeTime, startTime, endTime)
192
192
  if (args.relative_time) {
193
- params.relative_time = args.relative_time;
193
+ params.relativeTime = args.relative_time;
194
194
  } else if (args.start_time && args.end_time) {
195
- params.start_time = args.start_time;
196
- params.end_time = args.end_time;
195
+ params.startTime = args.start_time;
196
+ params.endTime = args.end_time;
197
197
  }
198
198
 
199
199
  // Filters (dynamic)
@@ -221,7 +221,7 @@ class VunetMCPServer {
221
221
  async queryMetric(metricName, queryParams) {
222
222
  await this.ensureAuthenticated();
223
223
 
224
- const url = `${this.normalizeTenantUrl(this.tenantUrl)}/vuSmartMaps/api/1/bu/${this.buId}/metrics/${metricName}/`;
224
+ const url = `${this.normalizeTenantUrl(this.tenantUrl)}/vuSmartMaps/api/1/bu/${this.buId}/query/${metricName}/`;
225
225
 
226
226
  try {
227
227
  const response = await axios.get(url, {
@@ -240,7 +240,7 @@ class VunetMCPServer {
240
240
  await this.ensureAuthenticated();
241
241
 
242
242
  // Retry the request
243
- const retryUrl = `${this.normalizeTenantUrl(this.tenantUrl)}/vuSmartMaps/api/1/bu/${this.buId}/metrics/${metricName}/`;
243
+ const retryUrl = `${this.normalizeTenantUrl(this.tenantUrl)}/vuSmartMaps/api/1/bu/${this.buId}/query/${metricName}/`;
244
244
  const retryResponse = await axios.get(retryUrl, {
245
245
  params: queryParams,
246
246
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mithung/vunet-mcp-server",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Model Context Protocol (MCP) Server for Vunet vuSmartMaps - Multi-tenant observability platform integration",
5
5
  "main": "index.js",
6
6
  "type": "module",