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/README.md
CHANGED
|
@@ -35,12 +35,36 @@
|
|
|
35
35
|
npx ls-mcp
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
### Analyze Specific Files
|
|
39
|
+
|
|
40
|
+
To analyze specific MCP configuration files instead of using automatic discovery, use the `--files` flag. This flag **replaces** automatic discovery and only analyzes the files you specify:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Single file
|
|
44
|
+
npx ls-mcp --files ./mcp-config.json
|
|
45
|
+
|
|
46
|
+
# Multiple files (comma-separated)
|
|
47
|
+
npx ls-mcp --files ./config1.json,./config2.json
|
|
48
|
+
|
|
49
|
+
# Multiple files (space-separated)
|
|
50
|
+
npx ls-mcp --files ./config1.json ./config2.json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
The `--files` flag automatically detects the configuration structure in your files, supporting various formats including:
|
|
54
|
+
- `servers` - Standard MCP configuration key
|
|
55
|
+
- `mcpServers` - Alternative MCP configuration key
|
|
56
|
+
- `mcp.servers` - Nested configuration format
|
|
57
|
+
- `context_servers` - Context-based configuration format
|
|
58
|
+
|
|
38
59
|
### JSON Output
|
|
39
60
|
|
|
40
61
|
To output results in JSON format (useful for programmatic consumption):
|
|
41
62
|
|
|
42
63
|
```bash
|
|
43
64
|
npx ls-mcp --json
|
|
65
|
+
|
|
66
|
+
# Combine with --files flag
|
|
67
|
+
npx ls-mcp --files ./config.json --json
|
|
44
68
|
```
|
|
45
69
|
|
|
46
70
|
This will return a structured JSON object containing:
|
|
@@ -66,6 +90,7 @@ For detailed information about the project architecture and features:
|
|
|
66
90
|
- **[Project Overview](./docs/project.md)**: Comprehensive project analysis and architecture
|
|
67
91
|
- **[Design Documentation](./docs/design.md)**: Technical design decisions and implementation details
|
|
68
92
|
- **[Requirements](./docs/requirements.md)**: Functional and non-functional requirements
|
|
93
|
+
- **[Custom File Analysis](./docs/custom-files-analysis.md)**: Analyze specific MCP configuration files with the `--files` flag
|
|
69
94
|
- **[Directory Bubbling](./docs/directory-bubbling.md)**: Intelligent directory traversal feature
|
|
70
95
|
- **[URL Hostname Extraction](./docs/url-hostname-extraction.md)**: Clean display of hostnames for URL-based servers
|
|
71
96
|
- **[Credential Detection](./docs/credential-detection.md)**: Security analysis features
|