@yawlabs/ssh-mcp 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +163 -0
- package/dist/index.js +579 -65
- package/dist/server.d.ts +54 -1
- package/dist/server.js +586 -65
- package/package.json +1 -1
package/dist/server.d.ts
CHANGED
|
@@ -42,6 +42,59 @@ declare function uploadFile(client: Client, localPath: string, remotePath: strin
|
|
|
42
42
|
declare function downloadFile(client: Client, remotePath: string, localPath: string): Promise<void>;
|
|
43
43
|
declare function listDir(client: Client, remotePath: string): Promise<string[]>;
|
|
44
44
|
|
|
45
|
+
interface KeyInfo {
|
|
46
|
+
name: string;
|
|
47
|
+
path: string;
|
|
48
|
+
type: string;
|
|
49
|
+
fingerprint?: string;
|
|
50
|
+
loadedInAgent: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface AgentResult {
|
|
53
|
+
running: boolean;
|
|
54
|
+
reachable: boolean;
|
|
55
|
+
socket?: string;
|
|
56
|
+
keys: string[];
|
|
57
|
+
started: boolean;
|
|
58
|
+
env?: {
|
|
59
|
+
SSH_AUTH_SOCK?: string;
|
|
60
|
+
SSH_AGENT_PID?: string;
|
|
61
|
+
};
|
|
62
|
+
message: string;
|
|
63
|
+
}
|
|
64
|
+
declare function ensureAgent(): AgentResult;
|
|
65
|
+
declare function listSshKeys(): KeyInfo[];
|
|
66
|
+
declare function loadKey(keyPath: string): {
|
|
67
|
+
status: "ok" | "error";
|
|
68
|
+
message: string;
|
|
69
|
+
};
|
|
70
|
+
interface ConfigLookupResult {
|
|
71
|
+
hostname: string;
|
|
72
|
+
user: string;
|
|
73
|
+
port: string;
|
|
74
|
+
identityFile: string[];
|
|
75
|
+
proxyJump?: string;
|
|
76
|
+
proxyCommand?: string;
|
|
77
|
+
all: Record<string, string>;
|
|
78
|
+
raw: string;
|
|
79
|
+
}
|
|
80
|
+
declare function configLookup(host: string): ConfigLookupResult | {
|
|
81
|
+
error: string;
|
|
82
|
+
};
|
|
83
|
+
declare function fixKnownHosts(host: string, port?: number): {
|
|
84
|
+
status: "ok" | "error";
|
|
85
|
+
message: string;
|
|
86
|
+
actions: string[];
|
|
87
|
+
};
|
|
88
|
+
declare function checkGitSsh(host?: string, user?: string): {
|
|
89
|
+
status: "ok" | "error";
|
|
90
|
+
message: string;
|
|
91
|
+
authenticatedAs?: string;
|
|
92
|
+
};
|
|
93
|
+
declare function testConnection(host: string, port?: number): {
|
|
94
|
+
status: "ok" | "warning" | "error";
|
|
95
|
+
message: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
45
98
|
declare function createServer(): McpServer;
|
|
46
99
|
|
|
47
|
-
export { checkConnectivity, checkKnownHosts, checkSshAgent, checkSshConfig, checkSshKeys, connect, createServer, diagnose, downloadFile, exec, listDir, readFile, registerTools, uploadFile, writeFile };
|
|
100
|
+
export { type AgentResult, type ConfigLookupResult, type DiagnosticReport, type DiagnosticResult, type ExecResult, type KeyInfo, type SSHConfig, checkConnectivity, checkGitSsh, checkKnownHosts, checkSshAgent, checkSshConfig, checkSshKeys, configLookup, connect, createServer, diagnose, downloadFile, ensureAgent, exec, fixKnownHosts, listDir, listSshKeys, loadKey, readFile, registerTools, testConnection, uploadFile, writeFile };
|