docker-mcp
Version:
A Model Context Protocol (MCP) server that enables AI agents to interact with Docker containers locally or remotely via SSH. Provides comprehensive Docker management capabilities including container operations, logs, monitoring, and cleanup.
275 lines • 9.77 kB
TypeScript
import { z } from "zod";
export declare const ContainerIdSchema: z.ZodObject<{
containerId: z.ZodString;
}, "strip", z.ZodTypeAny, {
containerId: string;
}, {
containerId: string;
}>;
export declare const ContainerListSchema: z.ZodObject<{
all: z.ZodOptional<z.ZodBoolean>;
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
all?: boolean | undefined;
filters?: Record<string, string> | undefined;
}, {
all?: boolean | undefined;
filters?: Record<string, string> | undefined;
}>;
export declare const ContainerLogsSchema: z.ZodObject<{
containerId: z.ZodString;
tail: z.ZodOptional<z.ZodNumber>;
since: z.ZodOptional<z.ZodString>;
until: z.ZodOptional<z.ZodString>;
timestamps: z.ZodOptional<z.ZodBoolean>;
follow: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
containerId: string;
tail?: number | undefined;
since?: string | undefined;
until?: string | undefined;
timestamps?: boolean | undefined;
follow?: boolean | undefined;
}, {
containerId: string;
tail?: number | undefined;
since?: string | undefined;
until?: string | undefined;
timestamps?: boolean | undefined;
follow?: boolean | undefined;
}>;
export declare const ContainerStatsSchema: z.ZodObject<{
containerId: z.ZodString;
stream: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
containerId: string;
stream?: boolean | undefined;
}, {
containerId: string;
stream?: boolean | undefined;
}>;
export declare const ContainerExecSchema: z.ZodObject<{
containerId: z.ZodString;
command: z.ZodArray<z.ZodString, "many">;
workingDir: z.ZodOptional<z.ZodString>;
env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
user: z.ZodOptional<z.ZodString>;
privileged: z.ZodOptional<z.ZodBoolean>;
tty: z.ZodOptional<z.ZodBoolean>;
detach: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
containerId: string;
command: string[];
user?: string | undefined;
workingDir?: string | undefined;
env?: string[] | undefined;
privileged?: boolean | undefined;
tty?: boolean | undefined;
detach?: boolean | undefined;
}, {
containerId: string;
command: string[];
user?: string | undefined;
workingDir?: string | undefined;
env?: string[] | undefined;
privileged?: boolean | undefined;
tty?: boolean | undefined;
detach?: boolean | undefined;
}>;
export declare const ContainerCreateSchema: z.ZodObject<{
image: z.ZodString;
name: z.ZodOptional<z.ZodString>;
command: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
ports: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
volumes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
workingDir: z.ZodOptional<z.ZodString>;
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
restart: z.ZodOptional<z.ZodEnum<["no", "on-failure", "always", "unless-stopped"]>>;
network: z.ZodOptional<z.ZodString>;
detach: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
image: string;
volumes?: string[] | undefined;
name?: string | undefined;
command?: string[] | undefined;
workingDir?: string | undefined;
env?: string[] | undefined;
detach?: boolean | undefined;
ports?: Record<string, string> | undefined;
labels?: Record<string, string> | undefined;
restart?: "no" | "on-failure" | "always" | "unless-stopped" | undefined;
network?: string | undefined;
}, {
image: string;
volumes?: string[] | undefined;
name?: string | undefined;
command?: string[] | undefined;
workingDir?: string | undefined;
env?: string[] | undefined;
detach?: boolean | undefined;
ports?: Record<string, string> | undefined;
labels?: Record<string, string> | undefined;
restart?: "no" | "on-failure" | "always" | "unless-stopped" | undefined;
network?: string | undefined;
}>;
export declare const ImageListSchema: z.ZodObject<{
all: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
all?: boolean | undefined;
}, {
all?: boolean | undefined;
}>;
export declare const ImagePullSchema: z.ZodObject<{
image: z.ZodString;
platform: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
image: string;
platform?: string | undefined;
}, {
image: string;
platform?: string | undefined;
}>;
export declare const ImageRemoveSchema: z.ZodObject<{
image: z.ZodString;
force: z.ZodOptional<z.ZodBoolean>;
noprune: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
image: string;
force?: boolean | undefined;
noprune?: boolean | undefined;
}, {
image: string;
force?: boolean | undefined;
noprune?: boolean | undefined;
}>;
export declare const NetworkListSchema: z.ZodObject<{
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
filters?: Record<string, string> | undefined;
}, {
filters?: Record<string, string> | undefined;
}>;
export declare const NetworkInspectSchema: z.ZodObject<{
networkId: z.ZodString;
verbose: z.ZodOptional<z.ZodBoolean>;
scope: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
networkId: string;
verbose?: boolean | undefined;
scope?: string | undefined;
}, {
networkId: string;
verbose?: boolean | undefined;
scope?: string | undefined;
}>;
export declare const VolumeListSchema: z.ZodObject<{
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
filters?: Record<string, string> | undefined;
}, {
filters?: Record<string, string> | undefined;
}>;
export declare const VolumeInspectSchema: z.ZodObject<{
volumeName: z.ZodString;
}, "strip", z.ZodTypeAny, {
volumeName: string;
}, {
volumeName: string;
}>;
export declare const ComposeSchema: z.ZodObject<{
composePath: z.ZodString;
projectName: z.ZodOptional<z.ZodString>;
services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
composePath: string;
services?: string[] | undefined;
env?: Record<string, string> | undefined;
projectName?: string | undefined;
}, {
composePath: string;
services?: string[] | undefined;
env?: Record<string, string> | undefined;
projectName?: string | undefined;
}>;
export declare const ComposeLogsSchema: z.ZodObject<{
composePath: z.ZodString;
projectName: z.ZodOptional<z.ZodString>;
services: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tail: z.ZodOptional<z.ZodNumber>;
follow: z.ZodOptional<z.ZodBoolean>;
timestamps: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
composePath: string;
services?: string[] | undefined;
tail?: number | undefined;
timestamps?: boolean | undefined;
follow?: boolean | undefined;
projectName?: string | undefined;
}, {
composePath: string;
services?: string[] | undefined;
tail?: number | undefined;
timestamps?: boolean | undefined;
follow?: boolean | undefined;
projectName?: string | undefined;
}>;
export declare const CleanupSchema: z.ZodObject<{
force: z.ZodOptional<z.ZodBoolean>;
until: z.ZodOptional<z.ZodString>;
filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
filters?: Record<string, string> | undefined;
until?: string | undefined;
force?: boolean | undefined;
}, {
filters?: Record<string, string> | undefined;
until?: string | undefined;
force?: boolean | undefined;
}>;
export declare const ContainerCopySchema: z.ZodObject<{
containerId: z.ZodString;
srcPath: z.ZodString;
destPath: z.ZodString;
followLink: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
containerId: string;
srcPath: string;
destPath: string;
followLink?: boolean | undefined;
}, {
containerId: string;
srcPath: string;
destPath: string;
followLink?: boolean | undefined;
}>;
export declare const RestartLoopDetectionSchema: z.ZodObject<{
timeWindowMinutes: z.ZodOptional<z.ZodNumber>;
maxRestarts: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
timeWindowMinutes?: number | undefined;
maxRestarts?: number | undefined;
}, {
timeWindowMinutes?: number | undefined;
maxRestarts?: number | undefined;
}>;
export type ContainerIdInput = z.infer<typeof ContainerIdSchema>;
export type ContainerListInput = z.infer<typeof ContainerListSchema>;
export type ContainerLogsInput = z.infer<typeof ContainerLogsSchema>;
export type ContainerStatsInput = z.infer<typeof ContainerStatsSchema>;
export type ContainerExecInput = z.infer<typeof ContainerExecSchema>;
export type ContainerCreateInput = z.infer<typeof ContainerCreateSchema>;
export type ImageListInput = z.infer<typeof ImageListSchema>;
export type ImagePullInput = z.infer<typeof ImagePullSchema>;
export type ImageRemoveInput = z.infer<typeof ImageRemoveSchema>;
export type NetworkListInput = z.infer<typeof NetworkListSchema>;
export type NetworkInspectInput = z.infer<typeof NetworkInspectSchema>;
export type VolumeListInput = z.infer<typeof VolumeListSchema>;
export type VolumeInspectInput = z.infer<typeof VolumeInspectSchema>;
export type ComposeInput = z.infer<typeof ComposeSchema>;
export type ComposeLogsInput = z.infer<typeof ComposeLogsSchema>;
export type CleanupInput = z.infer<typeof CleanupSchema>;
export type ContainerCopyInput = z.infer<typeof ContainerCopySchema>;
export type RestartLoopDetectionInput = z.infer<typeof RestartLoopDetectionSchema>;
//# sourceMappingURL=mcp.d.ts.map