@mackerel/mcp-server 0.2.0 → 0.2.1
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/build/index.js +12 -12
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -142,7 +142,7 @@ list_alerts()
|
|
|
142
142
|
list_alerts(withClosed=true)
|
|
143
143
|
\`\`\`
|
|
144
144
|
</examples>
|
|
145
|
-
`,inputSchema:f.ListAlertsToolInput.shape},r.listAlerts),d.registerTool(`get_alert`,{title:`Get Alert`,description:`Retrieve a specific alert by ID from Mackerel.
|
|
145
|
+
`,inputSchema:f.ListAlertsToolInput.shape,annotations:{readOnlyHint:!0}},r.listAlerts),d.registerTool(`get_alert`,{title:`Get Alert`,description:`Retrieve a specific alert by ID from Mackerel.
|
|
146
146
|
|
|
147
147
|
🔍 USE THIS TOOL WHEN USERS:
|
|
148
148
|
- Investigate a particular alert
|
|
@@ -153,7 +153,7 @@ list_alerts(withClosed=true)
|
|
|
153
153
|
get_alert(alertId=3Yr)
|
|
154
154
|
\`\`\`
|
|
155
155
|
</example>
|
|
156
|
-
`,inputSchema:f.GetAlertToolInput.shape},r.getAlert),d.registerTool(`get_alert_logs`,{title:`Get Alert Logs`,description:`Retrieve logs for a specific alert by ID from Mackerel.
|
|
156
|
+
`,inputSchema:f.GetAlertToolInput.shape,annotations:{readOnlyHint:!0}},r.getAlert),d.registerTool(`get_alert_logs`,{title:`Get Alert Logs`,description:`Retrieve logs for a specific alert by ID from Mackerel.
|
|
157
157
|
|
|
158
158
|
🔍 USE THIS TOOL WHEN USERS:
|
|
159
159
|
- View status change history for a specific alert
|
|
@@ -165,7 +165,7 @@ get_alert(alertId=3Yr)
|
|
|
165
165
|
get_alert_logs(alertId=3Yr)
|
|
166
166
|
\`\`\`
|
|
167
167
|
</example>
|
|
168
|
-
`,inputSchema:f.GetAlertLogsToolInput.shape},r.getAlertLogs),d.registerTool(`list_dashboards`,{title:`List Dashboards`,description:`Retrieve all dashboards from Mackerel.
|
|
168
|
+
`,inputSchema:f.GetAlertLogsToolInput.shape,annotations:{readOnlyHint:!0}},r.getAlertLogs),d.registerTool(`list_dashboards`,{title:`List Dashboards`,description:`Retrieve all dashboards from Mackerel.
|
|
169
169
|
|
|
170
170
|
🔍 USE THIS TOOL WHEN USERS:
|
|
171
171
|
- Get a list of dashboards
|
|
@@ -177,7 +177,7 @@ get_alert_logs(alertId=3Yr)
|
|
|
177
177
|
list_dashboards()
|
|
178
178
|
\`\`\`
|
|
179
179
|
</example>
|
|
180
|
-
`,inputSchema:p.ListDashboardsToolInput.shape},i.listDashboards),d.registerTool(`get_dashboard`,{title:`Get Dashboard`,description:`Retrieve a specific dashboard by ID from Mackerel.
|
|
180
|
+
`,inputSchema:p.ListDashboardsToolInput.shape,annotations:{readOnlyHint:!0}},i.listDashboards),d.registerTool(`get_dashboard`,{title:`Get Dashboard`,description:`Retrieve a specific dashboard by ID from Mackerel.
|
|
181
181
|
|
|
182
182
|
🔍 USE THIS TOOL WHEN USERS:
|
|
183
183
|
- Get details of a specific dashboard
|
|
@@ -189,7 +189,7 @@ list_dashboards()
|
|
|
189
189
|
get_dashboard(dashboardId="3Yr")
|
|
190
190
|
\`\`\`
|
|
191
191
|
</examples>
|
|
192
|
-
`,inputSchema:p.GetDashboardToolInput.shape},i.getDashboard),d.registerTool(`update_dashboard`,{title:`Update Dashboard`,description:`Update a specific dashboard by ID in Mackerel.
|
|
192
|
+
`,inputSchema:p.GetDashboardToolInput.shape,annotations:{readOnlyHint:!0}},i.getDashboard),d.registerTool(`update_dashboard`,{title:`Update Dashboard`,description:`Update a specific dashboard by ID in Mackerel.
|
|
193
193
|
|
|
194
194
|
🔍 USE THIS TOOL WHEN USERS:
|
|
195
195
|
- Modify dashboard title, memo, or URL path
|
|
@@ -245,7 +245,7 @@ list_hosts(summary=true)
|
|
|
245
245
|
list_hosts(limit=20, offset=20)
|
|
246
246
|
\`\`\`
|
|
247
247
|
</examples>
|
|
248
|
-
`,inputSchema:h.ListHostsToolInput.shape},o.listHosts),d.registerTool(`get_host_metrics`,{title:`Get Host Metrics`,description:`Retrieve metrics data for a specific host from Mackerel.
|
|
248
|
+
`,inputSchema:h.ListHostsToolInput.shape,annotations:{readOnlyHint:!0}},o.listHosts),d.registerTool(`get_host_metrics`,{title:`Get Host Metrics`,description:`Retrieve metrics data for a specific host from Mackerel.
|
|
249
249
|
|
|
250
250
|
🔍 USE THIS TOOL WHEN USERS:
|
|
251
251
|
- Get metrics data for a specific host
|
|
@@ -274,7 +274,7 @@ get_host_metrics(hostId="host123", name="custom.myapp.response_time", from=16094
|
|
|
274
274
|
get_host_metrics(hostId="host123", name="ec2.cpu.used", from=1609459200, to=1609462800)
|
|
275
275
|
\`\`\`
|
|
276
276
|
</examples>
|
|
277
|
-
`,inputSchema:b.GetHostMetricsToolInput.shape},s.getHostMetrics),d.registerTool(`list_services`,{title:`List Services`,description:`Retrieve all services from Mackerel.
|
|
277
|
+
`,inputSchema:b.GetHostMetricsToolInput.shape,annotations:{readOnlyHint:!0}},s.getHostMetrics),d.registerTool(`list_services`,{title:`List Services`,description:`Retrieve all services from Mackerel.
|
|
278
278
|
|
|
279
279
|
🔍 USE THIS TOOL WHEN USERS:
|
|
280
280
|
- Get a list of services
|
|
@@ -286,7 +286,7 @@ get_host_metrics(hostId="host123", name="ec2.cpu.used", from=1609459200, to=1609
|
|
|
286
286
|
list_services()
|
|
287
287
|
\`\`\`
|
|
288
288
|
</examples>
|
|
289
|
-
`,inputSchema:g.ListServicesToolInput.shape},c.listServices),d.registerTool(`get_service_metrics`,{title:`Get Service Metrics`,description:`Retrieve metrics data for a specific service from Mackerel.
|
|
289
|
+
`,inputSchema:g.ListServicesToolInput.shape,annotations:{readOnlyHint:!0}},c.listServices),d.registerTool(`get_service_metrics`,{title:`Get Service Metrics`,description:`Retrieve metrics data for a specific service from Mackerel.
|
|
290
290
|
|
|
291
291
|
🔍 USE THIS TOOL WHEN USERS:
|
|
292
292
|
- "Service metrics" are metrics that correspond to a service that consists of multiple hosts and their collective roles
|
|
@@ -310,7 +310,7 @@ get_service_metrics(serviceName="web", name="__externalhttp.responsetime.<monito
|
|
|
310
310
|
get_service_metrics(serviceName="web", name="analytics.page_view", from=1609459200, to=1609462800)
|
|
311
311
|
\`\`\`
|
|
312
312
|
|
|
313
|
-
</examples>`,inputSchema:y.GetServiceMetricsToolInput.shape},l.getServiceMetrics),d.registerTool(`list_monitors`,{title:`List Monitors`,description:`Retrieve all monitor configurations from Mackerel.
|
|
313
|
+
</examples>`,inputSchema:y.GetServiceMetricsToolInput.shape,annotations:{readOnlyHint:!0}},l.getServiceMetrics),d.registerTool(`list_monitors`,{title:`List Monitors`,description:`Retrieve all monitor configurations from Mackerel.
|
|
314
314
|
|
|
315
315
|
🔍 USE THIS TOOL WHEN USERS:
|
|
316
316
|
- Get a list of all monitors
|
|
@@ -322,7 +322,7 @@ get_service_metrics(serviceName="web", name="analytics.page_view", from=16094592
|
|
|
322
322
|
list_monitors()
|
|
323
323
|
\`\`\`
|
|
324
324
|
</examples>
|
|
325
|
-
`,inputSchema:m.ListMonitorsToolInput.shape},a.listMonitors),d.registerTool(`get_monitor`,{title:`Get Monitor`,description:`Retrieve a specific monitor configuration by ID from Mackerel.
|
|
325
|
+
`,inputSchema:m.ListMonitorsToolInput.shape,annotations:{readOnlyHint:!0}},a.listMonitors),d.registerTool(`get_monitor`,{title:`Get Monitor`,description:`Retrieve a specific monitor configuration by ID from Mackerel.
|
|
326
326
|
|
|
327
327
|
🔍 USE THIS TOOL WHEN USERS:
|
|
328
328
|
- Get details of a specific monitor
|
|
@@ -333,7 +333,7 @@ list_monitors()
|
|
|
333
333
|
get_monitor(monitorId="2cSZzK3XfmB")
|
|
334
334
|
\`\`\`
|
|
335
335
|
</examples>
|
|
336
|
-
`,inputSchema:m.GetMonitorToolInput.shape},a.getMonitor),d.registerTool(`get_trace`,{title:`Get Trace`,description:`Retrieve trace data by trace ID from Mackerel for distributed tracing analysis.
|
|
336
|
+
`,inputSchema:m.GetMonitorToolInput.shape,annotations:{readOnlyHint:!0}},a.getMonitor),d.registerTool(`get_trace`,{title:`Get Trace`,description:`Retrieve trace data by trace ID from Mackerel for distributed tracing analysis.
|
|
337
337
|
|
|
338
338
|
🔍 USE THIS TOOL WHEN USERS:
|
|
339
339
|
- Analyze performance bottlenecks in distributed systems
|
|
@@ -379,4 +379,4 @@ get_trace(traceId="abc123def456", limit=20, offset=20) # Second page
|
|
|
379
379
|
get_trace(traceId="abc123def456", errorSpansOnly=true, limit=10, offset=0)
|
|
380
380
|
\`\`\`
|
|
381
381
|
</examples>
|
|
382
|
-
`,inputSchema:_.GetTraceToolInput.shape},u.getTrace);let x=new t;await d.connect(x),console.error(`Mackerel MCP Server running on stdio`)}function S(){let e=process.env.MACKEREL_APIKEY;if(!e)throw Error(`MACKEREL_APIKEY environment variable is not set.`);return e}x().catch(e=>{console.error(`Fatal error in main():`,e),process.exit(1)});export{};
|
|
382
|
+
`,inputSchema:_.GetTraceToolInput.shape,annotations:{readOnlyHint:!0}},u.getTrace);let x=new t;await d.connect(x),console.error(`Mackerel MCP Server running on stdio`)}function S(){let e=process.env.MACKEREL_APIKEY;if(!e)throw Error(`MACKEREL_APIKEY environment variable is not set.`);return e}x().catch(e=>{console.error(`Fatal error in main():`,e),process.exit(1)});export{};
|