ls-mcp 1.11.0 → 1.12.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/dist/bin/cli.cjs +273 -43
- package/dist/bin/cli.mjs +273 -43
- package/dist/main.cjs +242 -41
- package/dist/main.d.cts +3 -0
- package/dist/main.d.ts +3 -0
- package/dist/main.mjs +242 -41
- package/package.json +1 -1
- package/src/components/credential-warning.ts +35 -5
- package/src/services/credential-detection-service.ts +230 -44
- package/src/services/mcp-config-service.ts +6 -1
- package/src/services/mcp-path-registry.ts +50 -1
- package/src/types/mcp-config-service.types.ts +3 -0
|
@@ -272,8 +272,13 @@ export class MCPConfigService {
|
|
|
272
272
|
type: serverConfig.type,
|
|
273
273
|
source,
|
|
274
274
|
env: serverConfig.env,
|
|
275
|
+
headers: serverConfig.headers,
|
|
275
276
|
status: 'stopped', // Default status, will be updated by server manager
|
|
276
|
-
credentials: CredentialDetectionService.
|
|
277
|
+
credentials: CredentialDetectionService.analyzeServerConfig({
|
|
278
|
+
env: serverConfig.env,
|
|
279
|
+
args: serverConfig.args,
|
|
280
|
+
headers: serverConfig.headers
|
|
281
|
+
})
|
|
277
282
|
})
|
|
278
283
|
}
|
|
279
284
|
}
|
|
@@ -93,6 +93,53 @@ export class MCPPathRegistry {
|
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
private static readonly LINUX_PATHS: MCPAppPathsRecord = {
|
|
97
|
+
claude: [
|
|
98
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Claude', 'claude_desktop_config.json'), type: 'global' }
|
|
99
|
+
],
|
|
100
|
+
claude_code: [
|
|
101
|
+
{ filePath: '.mcp.json', type: 'local' }
|
|
102
|
+
],
|
|
103
|
+
cursor: [
|
|
104
|
+
{ filePath: path.join(process.env.HOME || '', '.cursor', 'mcp.json'), type: 'global' },
|
|
105
|
+
{ filePath: path.join('.cursor', 'mcp.json'), type: 'local' }
|
|
106
|
+
],
|
|
107
|
+
vscode: [
|
|
108
|
+
{ filePath: path.join('.vscode', 'mcp.json'), type: 'local' },
|
|
109
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code', 'User', 'settings.json'), type: 'global' },
|
|
110
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code - Insiders', 'User', 'settings.json'), type: 'global' },
|
|
111
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code', 'User', 'mcp.json'), type: 'global' },
|
|
112
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code - Insiders', 'User', 'mcp.json'), type: 'global' },
|
|
113
|
+
{ filePath: path.join(process.env.HOME || '', '.mcp.json'), type: 'global' }
|
|
114
|
+
],
|
|
115
|
+
cline: [
|
|
116
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' },
|
|
117
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code - Insiders', 'User', 'globalStorage', 'saoudrizwan.claude-dev', 'settings', 'cline_mcp_settings.json'), type: 'global' }
|
|
118
|
+
],
|
|
119
|
+
windsurf: [
|
|
120
|
+
{ filePath: path.join('.codeium', 'windsurf', 'mcp_config.json'), type: 'local' }
|
|
121
|
+
],
|
|
122
|
+
roo: [
|
|
123
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' },
|
|
124
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'Code - Insiders', 'User', 'globalStorage', 'rooveterinaryinc.roo-cline', 'settings', 'cline_mcp_settings.json'), type: 'global' }
|
|
125
|
+
],
|
|
126
|
+
'intellij-github-copilot': [
|
|
127
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'github-copilot', 'intellij', 'mcp.json'), type: 'global' }
|
|
128
|
+
],
|
|
129
|
+
junie: [
|
|
130
|
+
{ filePath: path.join(process.env.HOME || '', '.junie', 'mcp.json'), type: 'global' },
|
|
131
|
+
{ filePath: path.join('.junie', 'mcp', 'mcp.json'), type: 'local' }
|
|
132
|
+
],
|
|
133
|
+
zed: [
|
|
134
|
+
{ filePath: path.join(process.env.HOME || '', '.config', 'zed', 'settings.json'), type: 'global' },
|
|
135
|
+
{ filePath: path.join('.zed', 'settings.json'), type: 'local' }
|
|
136
|
+
],
|
|
137
|
+
gemini: [
|
|
138
|
+
{ filePath: path.join(process.env.HOME || '', '.gemini', 'settings.json'), type: 'global' },
|
|
139
|
+
{ filePath: path.join('.gemini', 'settings.json'), type: 'local' }
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
|
|
96
143
|
private customApps: Map<string, MCPAppPathsRecord> = new Map()
|
|
97
144
|
|
|
98
145
|
/**
|
|
@@ -106,6 +153,8 @@ export class MCPPathRegistry {
|
|
|
106
153
|
case 'darwin':
|
|
107
154
|
case 'macos':
|
|
108
155
|
return { ...MCPPathRegistry.DARWIN_PATHS }
|
|
156
|
+
case 'linux':
|
|
157
|
+
return { ...MCPPathRegistry.LINUX_PATHS }
|
|
109
158
|
default:
|
|
110
159
|
throw new Error(`Unsupported operating system: ${os}`)
|
|
111
160
|
}
|
|
@@ -137,7 +186,7 @@ export class MCPPathRegistry {
|
|
|
137
186
|
* Get all supported operating systems
|
|
138
187
|
*/
|
|
139
188
|
getSupportedOperatingSystems (): string[] {
|
|
140
|
-
return ['win32', 'darwin']
|
|
189
|
+
return ['win32', 'darwin', 'linux']
|
|
141
190
|
}
|
|
142
191
|
|
|
143
192
|
/**
|
|
@@ -13,6 +13,7 @@ export interface MCPServerConfig {
|
|
|
13
13
|
type?: 'sse' | 'http' | 'stdio' | 'streamable-http'
|
|
14
14
|
url?: string
|
|
15
15
|
env?: Record<string, string>
|
|
16
|
+
headers?: Record<string, string>
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export interface MCPAppMetadata {
|
|
@@ -36,6 +37,7 @@ export interface MCPServerInfo {
|
|
|
36
37
|
type?: 'sse' | 'http' | 'stdio' | 'streamable-http'
|
|
37
38
|
source?: string
|
|
38
39
|
env?: Record<string, string>
|
|
40
|
+
headers?: Record<string, string>
|
|
39
41
|
status?: 'running' | 'stopped'
|
|
40
42
|
credentials?: CredentialAnalysisResult
|
|
41
43
|
}
|
|
@@ -67,6 +69,7 @@ export interface CredentialVariable {
|
|
|
67
69
|
name: string
|
|
68
70
|
value: string
|
|
69
71
|
riskLevel: 'low' | 'high'
|
|
72
|
+
source?: 'env' | 'args' | 'headers'
|
|
70
73
|
}
|
|
71
74
|
|
|
72
75
|
export interface CredentialAnalysisResult {
|