ls-mcp 1.15.2 → 1.15.3
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 +16 -8
- package/dist/bin/cli.cjs +1359 -1747
- package/dist/bin/cli.cjs.map +1 -0
- package/dist/bin/cli.d.cts +1 -1
- package/dist/bin/cli.d.ts +1 -1
- package/dist/bin/cli.mjs +1341 -1733
- package/dist/main.cjs +1002 -1267
- package/dist/main.d.cts +74 -69
- package/dist/main.d.ts +74 -69
- package/dist/main.mjs +985 -1240
- package/package.json +29 -35
- package/src/bin/cli.ts +1 -1
- package/src/components/mcp-server-status.ts +1 -1
- package/src/components/mcp-servers-config-parsable.ts +1 -1
- package/src/main.ts +1 -1
- package/src/services/mcp-config-service.ts +20 -11
- package/src/services/mcp-server-manager-service.ts +5 -5
- package/src/services/render-service.ts +9 -8
- package/src/utils/url-utils.ts +1 -1
package/dist/main.d.cts
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { MCPConfigParser, MCPFilePath } from "agent-files";
|
|
3
2
|
interface MCPAppMetadata {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
name: string;
|
|
4
|
+
friendlyName: string;
|
|
5
|
+
paths: MCPFilePath$1[];
|
|
7
6
|
}
|
|
8
|
-
interface MCPFilePath extends MCPFilePath
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
interface MCPFilePath$1 extends MCPFilePath {
|
|
8
|
+
parsable?: boolean;
|
|
9
|
+
servers?: MCPServerInfo[];
|
|
11
10
|
}
|
|
12
11
|
interface PackageVersionInfo {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
packageName: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
isPinned: boolean;
|
|
15
|
+
isLatest: boolean;
|
|
17
16
|
}
|
|
18
17
|
interface MCPServerInfo {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
name: string;
|
|
19
|
+
command: string;
|
|
20
|
+
args?: string[];
|
|
21
|
+
transport?: 'stdio' | 'sse' | 'http';
|
|
22
|
+
type?: 'sse' | 'http' | 'stdio' | 'streamable-http';
|
|
23
|
+
source?: string;
|
|
24
|
+
env?: Record<string, string>;
|
|
25
|
+
headers?: Record<string, string>;
|
|
26
|
+
status?: 'running' | 'stopped';
|
|
27
|
+
versionInfo?: PackageVersionInfo;
|
|
28
|
+
credentials?: CredentialAnalysisResult;
|
|
30
29
|
}
|
|
31
30
|
interface MCPFileGroups {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
name: string;
|
|
32
|
+
friendlyName: string;
|
|
33
|
+
paths: MCPFilePath$1[];
|
|
34
|
+
stats?: {
|
|
35
|
+
serversCount?: number;
|
|
36
|
+
};
|
|
38
37
|
}
|
|
38
|
+
interface MCPFileGroupsResult {
|
|
39
|
+
name: string;
|
|
40
|
+
friendlyName: string;
|
|
41
|
+
paths: MCPFilePath$1[];
|
|
42
|
+
stats: {
|
|
43
|
+
serversCount?: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>;
|
|
39
47
|
type MCPFileGroupsResultRecord = Record<string, MCPFileGroups>;
|
|
40
|
-
type MCPAppPathsRecord = Record<string, MCPFilePath[]>;
|
|
48
|
+
type MCPAppPathsRecord = Record<string, MCPFilePath$1[]>;
|
|
41
49
|
interface CredentialVariable {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
name: string;
|
|
51
|
+
value: string;
|
|
52
|
+
riskLevel: 'low' | 'high';
|
|
53
|
+
source?: 'env' | 'args' | 'headers';
|
|
46
54
|
}
|
|
47
55
|
interface CredentialAnalysisResult {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
hasCredentials: boolean;
|
|
57
|
+
credentialVars: CredentialVariable[];
|
|
58
|
+
riskLevel: 'none' | 'low' | 'high';
|
|
51
59
|
}
|
|
52
|
-
|
|
53
60
|
interface MCPConfigServiceOptions {
|
|
54
|
-
|
|
61
|
+
enableDirectoryBubbling?: boolean;
|
|
55
62
|
}
|
|
56
63
|
declare class MCPConfigService {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
private pathRegistry;
|
|
65
|
+
private currentOS;
|
|
66
|
+
private debug;
|
|
67
|
+
private directoryBubbleService;
|
|
68
|
+
private versionDetectionService;
|
|
69
|
+
private enableDirectoryBubbling;
|
|
70
|
+
constructor(options?: MCPConfigServiceOptions);
|
|
71
|
+
getConfigFilesPerApp(appName: string): MCPFilePath$1[];
|
|
72
|
+
getAllConfigFiles(): MCPAppPathsRecord;
|
|
73
|
+
getMCPServersPerApp(appName: string): Promise<MCPServerInfo[]>;
|
|
74
|
+
getAllMCPServers(): Promise<Record<string, MCPServerInfo[]>>;
|
|
75
|
+
getSupportedApps(): MCPAppMetadata[];
|
|
76
|
+
getSupportedOperatingSystems(): string[];
|
|
77
|
+
validateConfigFile(filePath: string): Promise<boolean>;
|
|
78
|
+
protected createParser(filePath: string): MCPConfigParser;
|
|
79
|
+
getMCPFileGroups(): Promise<MCPFileGroupsResultRecord>;
|
|
80
|
+
parseCustomFiles(filePaths: string[]): Promise<MCPFileGroupsResultRecord>;
|
|
81
|
+
registerCustomApp(appName: string, paths: MCPFilePath$1[]): void;
|
|
82
|
+
private parseConfigFileForServers;
|
|
83
|
+
private convertToMCPServerInfo;
|
|
84
|
+
private getFriendlyName;
|
|
78
85
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
getMCPConfigService(): MCPConfigService;
|
|
86
|
+
export declare class MCPFiles {
|
|
87
|
+
private mcpConfigService;
|
|
88
|
+
private customFiles?;
|
|
89
|
+
constructor(customFiles?: string[]);
|
|
90
|
+
findFiles(): Promise<MCPFileGroupsResultRecord>;
|
|
91
|
+
getMCPConfigService(): MCPConfigService;
|
|
86
92
|
}
|
|
87
|
-
|
|
88
|
-
export { MCPFiles };
|
|
93
|
+
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -1,88 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { MCPConfigParser, MCPFilePath } from "agent-files";
|
|
3
2
|
interface MCPAppMetadata {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
name: string;
|
|
4
|
+
friendlyName: string;
|
|
5
|
+
paths: MCPFilePath$1[];
|
|
7
6
|
}
|
|
8
|
-
interface MCPFilePath extends MCPFilePath
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
interface MCPFilePath$1 extends MCPFilePath {
|
|
8
|
+
parsable?: boolean;
|
|
9
|
+
servers?: MCPServerInfo[];
|
|
11
10
|
}
|
|
12
11
|
interface PackageVersionInfo {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
packageName: string;
|
|
13
|
+
version?: string;
|
|
14
|
+
isPinned: boolean;
|
|
15
|
+
isLatest: boolean;
|
|
17
16
|
}
|
|
18
17
|
interface MCPServerInfo {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
name: string;
|
|
19
|
+
command: string;
|
|
20
|
+
args?: string[];
|
|
21
|
+
transport?: 'stdio' | 'sse' | 'http';
|
|
22
|
+
type?: 'sse' | 'http' | 'stdio' | 'streamable-http';
|
|
23
|
+
source?: string;
|
|
24
|
+
env?: Record<string, string>;
|
|
25
|
+
headers?: Record<string, string>;
|
|
26
|
+
status?: 'running' | 'stopped';
|
|
27
|
+
versionInfo?: PackageVersionInfo;
|
|
28
|
+
credentials?: CredentialAnalysisResult;
|
|
30
29
|
}
|
|
31
30
|
interface MCPFileGroups {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
name: string;
|
|
32
|
+
friendlyName: string;
|
|
33
|
+
paths: MCPFilePath$1[];
|
|
34
|
+
stats?: {
|
|
35
|
+
serversCount?: number;
|
|
36
|
+
};
|
|
38
37
|
}
|
|
38
|
+
interface MCPFileGroupsResult {
|
|
39
|
+
name: string;
|
|
40
|
+
friendlyName: string;
|
|
41
|
+
paths: MCPFilePath$1[];
|
|
42
|
+
stats: {
|
|
43
|
+
serversCount?: number;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
type MCPFilePathGroupsRecord = Record<string, MCPFileGroups>;
|
|
39
47
|
type MCPFileGroupsResultRecord = Record<string, MCPFileGroups>;
|
|
40
|
-
type MCPAppPathsRecord = Record<string, MCPFilePath[]>;
|
|
48
|
+
type MCPAppPathsRecord = Record<string, MCPFilePath$1[]>;
|
|
41
49
|
interface CredentialVariable {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
50
|
+
name: string;
|
|
51
|
+
value: string;
|
|
52
|
+
riskLevel: 'low' | 'high';
|
|
53
|
+
source?: 'env' | 'args' | 'headers';
|
|
46
54
|
}
|
|
47
55
|
interface CredentialAnalysisResult {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
hasCredentials: boolean;
|
|
57
|
+
credentialVars: CredentialVariable[];
|
|
58
|
+
riskLevel: 'none' | 'low' | 'high';
|
|
51
59
|
}
|
|
52
|
-
|
|
53
60
|
interface MCPConfigServiceOptions {
|
|
54
|
-
|
|
61
|
+
enableDirectoryBubbling?: boolean;
|
|
55
62
|
}
|
|
56
63
|
declare class MCPConfigService {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
private pathRegistry;
|
|
65
|
+
private currentOS;
|
|
66
|
+
private debug;
|
|
67
|
+
private directoryBubbleService;
|
|
68
|
+
private versionDetectionService;
|
|
69
|
+
private enableDirectoryBubbling;
|
|
70
|
+
constructor(options?: MCPConfigServiceOptions);
|
|
71
|
+
getConfigFilesPerApp(appName: string): MCPFilePath$1[];
|
|
72
|
+
getAllConfigFiles(): MCPAppPathsRecord;
|
|
73
|
+
getMCPServersPerApp(appName: string): Promise<MCPServerInfo[]>;
|
|
74
|
+
getAllMCPServers(): Promise<Record<string, MCPServerInfo[]>>;
|
|
75
|
+
getSupportedApps(): MCPAppMetadata[];
|
|
76
|
+
getSupportedOperatingSystems(): string[];
|
|
77
|
+
validateConfigFile(filePath: string): Promise<boolean>;
|
|
78
|
+
protected createParser(filePath: string): MCPConfigParser;
|
|
79
|
+
getMCPFileGroups(): Promise<MCPFileGroupsResultRecord>;
|
|
80
|
+
parseCustomFiles(filePaths: string[]): Promise<MCPFileGroupsResultRecord>;
|
|
81
|
+
registerCustomApp(appName: string, paths: MCPFilePath$1[]): void;
|
|
82
|
+
private parseConfigFileForServers;
|
|
83
|
+
private convertToMCPServerInfo;
|
|
84
|
+
private getFriendlyName;
|
|
78
85
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
getMCPConfigService(): MCPConfigService;
|
|
86
|
+
export declare class MCPFiles {
|
|
87
|
+
private mcpConfigService;
|
|
88
|
+
private customFiles?;
|
|
89
|
+
constructor(customFiles?: string[]);
|
|
90
|
+
findFiles(): Promise<MCPFileGroupsResultRecord>;
|
|
91
|
+
getMCPConfigService(): MCPConfigService;
|
|
86
92
|
}
|
|
87
|
-
|
|
88
|
-
export { MCPFiles };
|
|
93
|
+
export {};
|