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 906 B
export function registerDockerSystemVersion(server, dockerService) { server.registerTool("docker_system_version", { title: "Docker Version Information", description: "Get Docker version information", inputSchema: {} }, async () => { try { const version = await dockerService.getVersion(); return { content: [{ type: "text", text: JSON.stringify(version, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error getting version info: ${error instanceof Error ? error.message : String(error)}` }], isError: true }; } }); } //# sourceMappingURL=docker_system_version.js.map