@mseep/doit-mcp-server
Version:
DoiT official MCP Server
88 lines (87 loc) • 2.08 kB
TypeScript
import { z } from "zod";
export declare const AnomaliesArgumentsSchema: z.ZodObject<{
filter: z.ZodOptional<z.ZodString>;
pageToken: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
filter?: string | undefined;
pageToken?: string | undefined;
}, {
filter?: string | undefined;
pageToken?: string | undefined;
}>;
export declare const AnomalyArgumentsSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export interface SKU {
name: string;
cost: number;
}
export interface Anomaly {
id?: string;
anomalyChartUrl?: string;
billingAccount: string;
attribution: string;
costOfAnomaly: number;
platform: string;
scope: string;
serviceName: string;
top3SKUs: SKU[];
severityLevel: string;
timeFrame: string;
startTime: number;
status: string | null;
endTime: number | null;
acknowledged: boolean;
}
export interface AnomaliesResponse {
rowCount: number;
anomalies: Anomaly[];
}
export declare const anomaliesTool: {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
filter: {
type: string;
description: string;
};
pageToken: {
type: string;
description: string;
};
};
};
};
export declare const anomalyTool: {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
id: {
type: string;
description: string;
};
};
required: string[];
};
};
export declare function formatAnomaly(anomaly: Anomaly): string;
export declare function handleAnomaliesRequest(args: any, token: string): Promise<{
content: {
type: string;
text: string;
}[];
}>;
export declare function handleAnomalyRequest(args: any, token: string): Promise<{
content: {
type: string;
text: string;
}[];
}>;