UNPKG

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.

27 lines 891 B
export function registerDockerSystemInfo(server, dockerService) { server.registerTool("docker_system_info", { title: "Docker System Information", description: "Get Docker system information", inputSchema: {} }, async () => { try { const info = await dockerService.getSystemInfo(); return { content: [{ type: "text", text: JSON.stringify(info, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting system info: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } }); } //# sourceMappingURL=docker_system_info.js.map