@general-analysis/mcp-guard
Version:
An MCP guardrail with built-in AI-powered moderation that aggregates multiple MCP servers into one secure interface
76 lines • 2.03 kB
TypeScript
import { z } from "zod";
export declare const StdioServerConfigSchema: z.ZodObject<{
name: z.ZodString;
command: z.ZodString;
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
env: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
}, "strip", z.ZodTypeAny, {
name: string;
command: string;
args: string[];
env: Record<string, string>;
}, {
name: string;
command: string;
args?: string[] | undefined;
env?: Record<string, string> | undefined;
}>;
export declare const RemoteServerConfigSchema: z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
url: string;
}, {
name: string;
url: string;
}>;
export declare const ServerConfigSchema: z.ZodUnion<[z.ZodObject<{
name: z.ZodString;
command: z.ZodString;
args: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
env: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
}, "strip", z.ZodTypeAny, {
name: string;
command: string;
args: string[];
env: Record<string, string>;
}, {
name: string;
command: string;
args?: string[] | undefined;
env?: Record<string, string> | undefined;
}>, z.ZodObject<{
name: z.ZodString;
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
url: string;
}, {
name: string;
url: string;
}>]>;
export type ServerConfig = z.infer<typeof ServerConfigSchema>;
export interface GuardApiResponse {
injection_heuristic?: {
flagged: boolean;
info: any;
};
injection_guard?: {
flagged: boolean;
info: {
injection_texts?: string[];
[key: string]: any;
};
};
[key: string]: any;
}
export declare const BLOCKED_RESPONSE: {
content: {
type: "text";
text: string;
}[];
isError: boolean;
};
export declare function createPaymentRequiredResponse(originalOutput: any): any;
//# sourceMappingURL=types.d.ts.map