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.
32 lines • 869 B
TypeScript
import { Agent } from 'http';
export interface SSHAgentConfig {
host: string;
port: number;
username: string;
privateKey?: string;
passphrase?: string;
socketPath: string;
timeout?: number;
}
/**
* Custom SSH agent for Docker connections
* This creates an SSH tunnel to the remote Docker socket
*/
export declare class DockerSSHAgent extends Agent {
private config;
private client;
constructor(config: SSHAgentConfig);
/**
* Create an SSH tunnel to the Docker socket
*/
createConnection(opts: any, callback: (err?: Error, stream?: any) => void): void;
/**
* Close the SSH connection
*/
destroy(): void;
}
/**
* Create a custom SSH agent for Docker connections
*/
export declare function createCustomSSHAgent(config: SSHAgentConfig): DockerSSHAgent;
//# sourceMappingURL=ssh-agent.d.ts.map