@mithung/vunet-mcp-server 2.0.4 → 2.0.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.
- package/CHANGELOG.md +15 -0
- package/index.js +10 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.6] - 2026-02-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **CRITICAL FIX**: Corrected metric query endpoint to use `/api/metrics/` as per VuNet API documentation
|
|
12
|
+
- Fixed query parameters to use snake_case format (relative_time, start_time, end_time) per VuNet API spec
|
|
13
|
+
- URL encoding for metric names with spaces now works correctly
|
|
14
|
+
- Removed incorrect path variations (/query/ and /vuSmartMaps/api/1/bu/1/metrics/)
|
|
15
|
+
- Verified working with actual VuNet tenant
|
|
16
|
+
|
|
17
|
+
## [2.0.5] - 2026-02-13
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- Added URL encoding for metric names in query path (e.g., "Traces Transaction Volume" → "Traces%20Transaction%20Volume")
|
|
21
|
+
- Metrics with spaces in names now query correctly
|
|
22
|
+
|
|
8
23
|
## [2.0.4] - 2026-02-13
|
|
9
24
|
|
|
10
25
|
### 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.
|
|
29
|
+
version: "2.0.6",
|
|
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 (VuNet uses
|
|
191
|
+
// Time parameters (VuNet uses snake_case: relative_time, start_time, end_time per the documentation)
|
|
192
192
|
if (args.relative_time) {
|
|
193
|
-
params.
|
|
193
|
+
params.relative_time = args.relative_time;
|
|
194
194
|
} else if (args.start_time && args.end_time) {
|
|
195
|
-
params.
|
|
196
|
-
params.
|
|
195
|
+
params.start_time = args.start_time;
|
|
196
|
+
params.end_time = args.end_time;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
// Filters (dynamic)
|
|
@@ -221,7 +221,9 @@ class VunetMCPServer {
|
|
|
221
221
|
async queryMetric(metricName, queryParams) {
|
|
222
222
|
await this.ensureAuthenticated();
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
// URL encode the metric name for the path
|
|
225
|
+
const encodedMetricName = encodeURIComponent(metricName);
|
|
226
|
+
const url = `${this.normalizeTenantUrl(this.tenantUrl)}/api/metrics/${encodedMetricName}/`;
|
|
225
227
|
|
|
226
228
|
try {
|
|
227
229
|
const response = await axios.get(url, {
|
|
@@ -240,7 +242,8 @@ class VunetMCPServer {
|
|
|
240
242
|
await this.ensureAuthenticated();
|
|
241
243
|
|
|
242
244
|
// Retry the request
|
|
243
|
-
const
|
|
245
|
+
const retryEncodedMetricName = encodeURIComponent(metricName);
|
|
246
|
+
const retryUrl = `${this.normalizeTenantUrl(this.tenantUrl)}/api/metrics/${retryEncodedMetricName}/`;
|
|
244
247
|
const retryResponse = await axios.get(retryUrl, {
|
|
245
248
|
params: queryParams,
|
|
246
249
|
headers: {
|
package/package.json
CHANGED