ls-mcp 1.13.2 → 1.14.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 +25 -0
- package/dist/bin/cli.cjs +131 -482
- package/dist/bin/cli.mjs +121 -472
- package/dist/main.cjs +111 -480
- package/dist/main.d.cts +6 -39
- package/dist/main.d.ts +6 -39
- package/dist/main.mjs +101 -470
- package/package.json +2 -1
- package/src/bin/cli.ts +25 -2
- package/src/main.ts +45 -1
- package/src/services/mcp-config-service.ts +75 -7
- package/src/types/mcp-config-service.types.ts +2 -20
- package/src/services/directory-bubble-service.ts +0 -82
- package/src/services/mcp-config-linter-service.ts +0 -34
- package/src/services/mcp-config-parser.ts +0 -234
- package/src/services/mcp-path-registry.ts +0 -213
package/dist/main.d.cts
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
parsed: boolean;
|
|
4
|
-
valid: boolean;
|
|
5
|
-
servers: Record<string, MCPServerConfig>;
|
|
6
|
-
}
|
|
7
|
-
interface MCPServerConfig {
|
|
8
|
-
name: string;
|
|
9
|
-
command: string;
|
|
10
|
-
args?: string[];
|
|
11
|
-
transport?: 'stdio' | 'sse' | 'http';
|
|
12
|
-
type?: 'sse' | 'http' | 'stdio' | 'streamable-http';
|
|
13
|
-
url?: string;
|
|
14
|
-
env?: Record<string, string>;
|
|
15
|
-
headers?: Record<string, string>;
|
|
16
|
-
}
|
|
1
|
+
import { MCPFilePath as MCPFilePath$1, MCPConfigParser } from 'agent-files';
|
|
2
|
+
|
|
17
3
|
interface MCPAppMetadata {
|
|
18
4
|
name: string;
|
|
19
5
|
friendlyName: string;
|
|
20
6
|
paths: MCPFilePath[];
|
|
21
7
|
}
|
|
22
|
-
interface MCPFilePath {
|
|
23
|
-
filePath: string;
|
|
24
|
-
type: 'local' | 'global';
|
|
8
|
+
interface MCPFilePath extends MCPFilePath$1 {
|
|
25
9
|
parsable?: boolean;
|
|
26
10
|
servers?: MCPServerInfo[];
|
|
27
11
|
}
|
|
@@ -66,25 +50,6 @@ interface CredentialAnalysisResult {
|
|
|
66
50
|
riskLevel: 'none' | 'low' | 'high';
|
|
67
51
|
}
|
|
68
52
|
|
|
69
|
-
declare class MCPConfigParser {
|
|
70
|
-
private filePath;
|
|
71
|
-
private fileContents;
|
|
72
|
-
private parsed;
|
|
73
|
-
private valid;
|
|
74
|
-
private fileContentsData;
|
|
75
|
-
constructor(filePath: string);
|
|
76
|
-
parseConfigFile(): Promise<MCPConfigData>;
|
|
77
|
-
extractMCPServers(configData: any): Promise<Record<string, MCPServerConfig>>;
|
|
78
|
-
private normalizeServerConfigs;
|
|
79
|
-
private validateType;
|
|
80
|
-
private inferTransportType;
|
|
81
|
-
validateServerConfig(serverConfig: MCPServerConfig): boolean;
|
|
82
|
-
getSupportedConfigKeys(): string[];
|
|
83
|
-
isValidSyntax(): Promise<boolean>;
|
|
84
|
-
countMCPServers(): Promise<number>;
|
|
85
|
-
private getFileContent;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
53
|
interface MCPConfigServiceOptions {
|
|
89
54
|
enableDirectoryBubbling?: boolean;
|
|
90
55
|
}
|
|
@@ -105,6 +70,7 @@ declare class MCPConfigService {
|
|
|
105
70
|
validateConfigFile(filePath: string): Promise<boolean>;
|
|
106
71
|
protected createParser(filePath: string): MCPConfigParser;
|
|
107
72
|
getMCPFileGroups(): Promise<MCPFileGroupsResultRecord>;
|
|
73
|
+
parseCustomFiles(filePaths: string[]): Promise<MCPFileGroupsResultRecord>;
|
|
108
74
|
registerCustomApp(appName: string, paths: MCPFilePath[]): void;
|
|
109
75
|
private parseConfigFileForServers;
|
|
110
76
|
private convertToMCPServerInfo;
|
|
@@ -113,7 +79,8 @@ declare class MCPConfigService {
|
|
|
113
79
|
|
|
114
80
|
declare class MCPFiles {
|
|
115
81
|
private mcpConfigService;
|
|
116
|
-
|
|
82
|
+
private customFiles?;
|
|
83
|
+
constructor(customFiles?: string[]);
|
|
117
84
|
findFiles(): Promise<MCPFileGroupsResultRecord>;
|
|
118
85
|
getMCPConfigService(): MCPConfigService;
|
|
119
86
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,27 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
parsed: boolean;
|
|
4
|
-
valid: boolean;
|
|
5
|
-
servers: Record<string, MCPServerConfig>;
|
|
6
|
-
}
|
|
7
|
-
interface MCPServerConfig {
|
|
8
|
-
name: string;
|
|
9
|
-
command: string;
|
|
10
|
-
args?: string[];
|
|
11
|
-
transport?: 'stdio' | 'sse' | 'http';
|
|
12
|
-
type?: 'sse' | 'http' | 'stdio' | 'streamable-http';
|
|
13
|
-
url?: string;
|
|
14
|
-
env?: Record<string, string>;
|
|
15
|
-
headers?: Record<string, string>;
|
|
16
|
-
}
|
|
1
|
+
import { MCPFilePath as MCPFilePath$1, MCPConfigParser } from 'agent-files';
|
|
2
|
+
|
|
17
3
|
interface MCPAppMetadata {
|
|
18
4
|
name: string;
|
|
19
5
|
friendlyName: string;
|
|
20
6
|
paths: MCPFilePath[];
|
|
21
7
|
}
|
|
22
|
-
interface MCPFilePath {
|
|
23
|
-
filePath: string;
|
|
24
|
-
type: 'local' | 'global';
|
|
8
|
+
interface MCPFilePath extends MCPFilePath$1 {
|
|
25
9
|
parsable?: boolean;
|
|
26
10
|
servers?: MCPServerInfo[];
|
|
27
11
|
}
|
|
@@ -66,25 +50,6 @@ interface CredentialAnalysisResult {
|
|
|
66
50
|
riskLevel: 'none' | 'low' | 'high';
|
|
67
51
|
}
|
|
68
52
|
|
|
69
|
-
declare class MCPConfigParser {
|
|
70
|
-
private filePath;
|
|
71
|
-
private fileContents;
|
|
72
|
-
private parsed;
|
|
73
|
-
private valid;
|
|
74
|
-
private fileContentsData;
|
|
75
|
-
constructor(filePath: string);
|
|
76
|
-
parseConfigFile(): Promise<MCPConfigData>;
|
|
77
|
-
extractMCPServers(configData: any): Promise<Record<string, MCPServerConfig>>;
|
|
78
|
-
private normalizeServerConfigs;
|
|
79
|
-
private validateType;
|
|
80
|
-
private inferTransportType;
|
|
81
|
-
validateServerConfig(serverConfig: MCPServerConfig): boolean;
|
|
82
|
-
getSupportedConfigKeys(): string[];
|
|
83
|
-
isValidSyntax(): Promise<boolean>;
|
|
84
|
-
countMCPServers(): Promise<number>;
|
|
85
|
-
private getFileContent;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
53
|
interface MCPConfigServiceOptions {
|
|
89
54
|
enableDirectoryBubbling?: boolean;
|
|
90
55
|
}
|
|
@@ -105,6 +70,7 @@ declare class MCPConfigService {
|
|
|
105
70
|
validateConfigFile(filePath: string): Promise<boolean>;
|
|
106
71
|
protected createParser(filePath: string): MCPConfigParser;
|
|
107
72
|
getMCPFileGroups(): Promise<MCPFileGroupsResultRecord>;
|
|
73
|
+
parseCustomFiles(filePaths: string[]): Promise<MCPFileGroupsResultRecord>;
|
|
108
74
|
registerCustomApp(appName: string, paths: MCPFilePath[]): void;
|
|
109
75
|
private parseConfigFileForServers;
|
|
110
76
|
private convertToMCPServerInfo;
|
|
@@ -113,7 +79,8 @@ declare class MCPConfigService {
|
|
|
113
79
|
|
|
114
80
|
declare class MCPFiles {
|
|
115
81
|
private mcpConfigService;
|
|
116
|
-
|
|
82
|
+
private customFiles?;
|
|
83
|
+
constructor(customFiles?: string[]);
|
|
117
84
|
findFiles(): Promise<MCPFileGroupsResultRecord>;
|
|
118
85
|
getMCPConfigService(): MCPConfigService;
|
|
119
86
|
}
|