UNPKG

@takashito/linode-mcp-server

Version:

MCP server for Linode API

59 lines 2.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createServiceTokenSchema = exports.getServiceMetricsSchema = exports.listServiceMetricDefinitionsSchema = exports.listServiceDashboardsSchema = exports.getMonitorServiceSchema = exports.listMonitorServicesSchema = exports.getMonitorDashboardSchema = exports.listMonitorDashboardsSchema = void 0; const zod_1 = require("zod"); const schemas_1 = require("../common/schemas"); /** * Schema for listing monitor dashboards */ exports.listMonitorDashboardsSchema = zod_1.z.object({ ...schemas_1.pagingParamsSchema.shape }); /** * Schema for getting a specific monitor dashboard */ exports.getMonitorDashboardSchema = zod_1.z.object({ dashboardId: zod_1.z.number().describe('The ID of the dashboard') }); /** * Schema for listing monitor services */ exports.listMonitorServicesSchema = zod_1.z.object({ ...schemas_1.pagingParamsSchema.shape }); /** * Schema for getting a specific monitor service */ exports.getMonitorServiceSchema = zod_1.z.object({ serviceType: zod_1.z.string().describe('The service type to get details for') }); /** * Schema for listing dashboards for a service type */ exports.listServiceDashboardsSchema = zod_1.z.object({ serviceType: zod_1.z.string().describe('The service type to list dashboards for'), ...schemas_1.pagingParamsSchema.shape }); /** * Schema for listing metric definitions for a service type */ exports.listServiceMetricDefinitionsSchema = zod_1.z.object({ serviceType: zod_1.z.string().describe('The service type to list metric definitions for') }); /** * Schema for getting service metrics */ exports.getServiceMetricsSchema = zod_1.z.object({ serviceType: zod_1.z.string().describe('The service type to get metrics for'), entity_ids: zod_1.z.array(zod_1.z.number()).describe('Array of entity IDs to get metrics for'), start_time: zod_1.z.string().describe('The start time for the metrics query in ISO 8601 format'), end_time: zod_1.z.string().describe('The end time for the metrics query in ISO 8601 format'), time_granularity: zod_1.z.record(zod_1.z.any()).optional().describe('The time granularity for the metrics data') }); /** * Schema for creating a service token */ exports.createServiceTokenSchema = zod_1.z.object({ serviceType: zod_1.z.string().describe('The service type to create a token for') }); //# sourceMappingURL=schemas.js.map