@1mcp/agent 0.15.0 ā 0.17.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 +115 -14
- package/build/commands/app/backups.d.ts +17 -0
- package/build/commands/app/backups.d.ts.map +1 -0
- package/build/commands/app/backups.js +162 -0
- package/build/commands/app/backups.js.map +1 -0
- package/build/commands/app/consolidate.d.ts +21 -0
- package/build/commands/app/consolidate.d.ts.map +1 -0
- package/build/commands/app/consolidate.js +383 -0
- package/build/commands/app/consolidate.js.map +1 -0
- package/build/commands/app/discover.d.ts +16 -0
- package/build/commands/app/discover.d.ts.map +1 -0
- package/build/commands/app/discover.js +79 -0
- package/build/commands/app/discover.js.map +1 -0
- package/build/commands/app/index.d.ts +12 -0
- package/build/commands/app/index.d.ts.map +1 -0
- package/build/commands/app/index.js +274 -0
- package/build/commands/app/index.js.map +1 -0
- package/build/commands/app/list.d.ts +16 -0
- package/build/commands/app/list.d.ts.map +1 -0
- package/build/commands/app/list.js +95 -0
- package/build/commands/app/list.js.map +1 -0
- package/build/commands/app/restore.d.ts +21 -0
- package/build/commands/app/restore.d.ts.map +1 -0
- package/build/commands/app/restore.js +265 -0
- package/build/commands/app/restore.js.map +1 -0
- package/build/commands/app/status.d.ts +16 -0
- package/build/commands/app/status.d.ts.map +1 -0
- package/build/commands/app/status.js +224 -0
- package/build/commands/app/status.js.map +1 -0
- package/build/commands/mcp/add.d.ts +19 -0
- package/build/commands/mcp/add.d.ts.map +1 -0
- package/build/commands/mcp/add.js +135 -0
- package/build/commands/mcp/add.js.map +1 -0
- package/build/commands/mcp/enable.d.ts +13 -0
- package/build/commands/mcp/enable.d.ts.map +1 -0
- package/build/commands/mcp/enable.js +100 -0
- package/build/commands/mcp/enable.js.map +1 -0
- package/build/commands/mcp/index.d.ts +12 -0
- package/build/commands/mcp/index.d.ts.map +1 -0
- package/build/commands/mcp/index.js +351 -0
- package/build/commands/mcp/index.js.map +1 -0
- package/build/commands/mcp/list.d.ts +11 -0
- package/build/commands/mcp/list.d.ts.map +1 -0
- package/build/commands/mcp/list.js +144 -0
- package/build/commands/mcp/list.js.map +1 -0
- package/build/commands/mcp/remove.d.ts +10 -0
- package/build/commands/mcp/remove.d.ts.map +1 -0
- package/build/commands/mcp/remove.js +89 -0
- package/build/commands/mcp/remove.js.map +1 -0
- package/build/commands/mcp/status.d.ts +10 -0
- package/build/commands/mcp/status.d.ts.map +1 -0
- package/build/commands/mcp/status.js +243 -0
- package/build/commands/mcp/status.js.map +1 -0
- package/build/commands/mcp/update.d.ts +18 -0
- package/build/commands/mcp/update.d.ts.map +1 -0
- package/build/commands/mcp/update.js +157 -0
- package/build/commands/mcp/update.js.map +1 -0
- package/build/commands/mcp/utils/configUtils.d.ts +64 -0
- package/build/commands/mcp/utils/configUtils.d.ts.map +1 -0
- package/build/commands/mcp/utils/configUtils.js +266 -0
- package/build/commands/mcp/utils/configUtils.js.map +1 -0
- package/build/commands/mcp/utils/doubleHyphenParser.d.ts +32 -0
- package/build/commands/mcp/utils/doubleHyphenParser.d.ts.map +1 -0
- package/build/commands/mcp/utils/doubleHyphenParser.js +61 -0
- package/build/commands/mcp/utils/doubleHyphenParser.js.map +1 -0
- package/build/commands/mcp/utils/validation.d.ts +33 -0
- package/build/commands/mcp/utils/validation.d.ts.map +1 -0
- package/build/commands/mcp/utils/validation.js +235 -0
- package/build/commands/mcp/utils/validation.js.map +1 -0
- package/build/constants.d.ts +12 -2
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +16 -2
- package/build/constants.js.map +1 -1
- package/build/core/capabilities/asyncLoadingOrchestrator.d.ts +96 -0
- package/build/core/capabilities/asyncLoadingOrchestrator.d.ts.map +1 -0
- package/build/core/capabilities/asyncLoadingOrchestrator.js +256 -0
- package/build/core/capabilities/asyncLoadingOrchestrator.js.map +1 -0
- package/build/core/capabilities/capabilityAggregator.d.ts +114 -0
- package/build/core/capabilities/capabilityAggregator.d.ts.map +1 -0
- package/build/core/capabilities/capabilityAggregator.js +234 -0
- package/build/core/capabilities/capabilityAggregator.js.map +1 -0
- package/build/core/client/clientManager.d.ts +28 -0
- package/build/core/client/clientManager.d.ts.map +1 -1
- package/build/core/client/clientManager.js +120 -0
- package/build/core/client/clientManager.js.map +1 -1
- package/build/core/loading/loadingStateTracker.d.ts +128 -0
- package/build/core/loading/loadingStateTracker.d.ts.map +1 -0
- package/build/core/loading/loadingStateTracker.js +209 -0
- package/build/core/loading/loadingStateTracker.js.map +1 -0
- package/build/core/loading/mcpLoadingManager.d.ts +139 -0
- package/build/core/loading/mcpLoadingManager.d.ts.map +1 -0
- package/build/core/loading/mcpLoadingManager.js +296 -0
- package/build/core/loading/mcpLoadingManager.js.map +1 -0
- package/build/core/notifications/notificationManager.d.ts +111 -0
- package/build/core/notifications/notificationManager.d.ts.map +1 -0
- package/build/core/notifications/notificationManager.js +232 -0
- package/build/core/notifications/notificationManager.js.map +1 -0
- package/build/core/server/agentConfig.d.ts +59 -0
- package/build/core/server/agentConfig.d.ts.map +1 -1
- package/build/core/server/agentConfig.js +82 -1
- package/build/core/server/agentConfig.js.map +1 -1
- package/build/core/server/serverManager.d.ts +1 -0
- package/build/core/server/serverManager.d.ts.map +1 -1
- package/build/core/server/serverManager.js +3 -0
- package/build/core/server/serverManager.js.map +1 -1
- package/build/index.js +123 -31
- package/build/index.js.map +1 -1
- package/build/server.d.ts +23 -2
- package/build/server.d.ts.map +1 -1
- package/build/server.js +83 -10
- package/build/server.js.map +1 -1
- package/build/services/healthService.d.ts +107 -0
- package/build/services/healthService.d.ts.map +1 -0
- package/build/services/healthService.js +294 -0
- package/build/services/healthService.js.map +1 -0
- package/build/transport/http/middlewares/mcpAvailabilityMiddleware.d.ts +79 -0
- package/build/transport/http/middlewares/mcpAvailabilityMiddleware.d.ts.map +1 -0
- package/build/transport/http/middlewares/mcpAvailabilityMiddleware.js +243 -0
- package/build/transport/http/middlewares/mcpAvailabilityMiddleware.js.map +1 -0
- package/build/transport/http/routes/healthRoutes.d.ts +8 -0
- package/build/transport/http/routes/healthRoutes.d.ts.map +1 -0
- package/build/transport/http/routes/healthRoutes.js +282 -0
- package/build/transport/http/routes/healthRoutes.js.map +1 -0
- package/build/transport/http/routes/sseRoutes.d.ts +2 -1
- package/build/transport/http/routes/sseRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/sseRoutes.js +13 -1
- package/build/transport/http/routes/sseRoutes.js.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts +2 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.js +13 -1
- package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
- package/build/transport/http/server.d.ts +7 -1
- package/build/transport/http/server.d.ts.map +1 -1
- package/build/transport/http/server.js +17 -3
- package/build/transport/http/server.js.map +1 -1
- package/build/transport/transportFactory.d.ts +4 -0
- package/build/transport/transportFactory.d.ts.map +1 -1
- package/build/transport/transportFactory.js +1 -1
- package/build/transport/transportFactory.js.map +1 -1
- package/build/utils/appDiscovery.d.ts +75 -0
- package/build/utils/appDiscovery.d.ts.map +1 -0
- package/build/utils/appDiscovery.js +358 -0
- package/build/utils/appDiscovery.js.map +1 -0
- package/build/utils/appPresets.d.ts +88 -0
- package/build/utils/appPresets.d.ts.map +1 -0
- package/build/utils/appPresets.js +430 -0
- package/build/utils/appPresets.js.map +1 -0
- package/build/utils/backupManager.d.ts +61 -0
- package/build/utils/backupManager.d.ts.map +1 -0
- package/build/utils/backupManager.js +314 -0
- package/build/utils/backupManager.js.map +1 -0
- package/build/utils/urlDetection.d.ts +35 -0
- package/build/utils/urlDetection.d.ts.map +1 -0
- package/build/utils/urlDetection.js +115 -0
- package/build/utils/urlDetection.js.map +1 -0
- package/build/utils/validationHelpers.d.ts +62 -0
- package/build/utils/validationHelpers.d.ts.map +1 -0
- package/build/utils/validationHelpers.js +252 -0
- package/build/utils/validationHelpers.js.map +1 -0
- package/package.json +25 -3
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { generateSupportedAppsHelp } from '../../utils/appPresets.js';
|
|
2
|
+
/**
|
|
3
|
+
* App command group entry point.
|
|
4
|
+
*
|
|
5
|
+
* Manages desktop application MCP configurations, allowing users to
|
|
6
|
+
* consolidate MCP servers from apps into 1mcp and restore them when needed.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Register app command group and subcommands
|
|
10
|
+
*/
|
|
11
|
+
export function setupAppCommands(yargs) {
|
|
12
|
+
return yargs.command('app', 'Manage desktop application MCP configurations', (yargs) => {
|
|
13
|
+
return yargs
|
|
14
|
+
.command({
|
|
15
|
+
command: 'consolidate [app-name..]',
|
|
16
|
+
describe: 'Consolidate MCP servers from desktop applications into 1mcp',
|
|
17
|
+
builder: (yargs) => {
|
|
18
|
+
return yargs
|
|
19
|
+
.positional('app-name', {
|
|
20
|
+
describe: 'Desktop app(s) to consolidate (claude-desktop, cursor, vscode, etc.)',
|
|
21
|
+
type: 'string',
|
|
22
|
+
array: true,
|
|
23
|
+
default: [],
|
|
24
|
+
})
|
|
25
|
+
.option('url', {
|
|
26
|
+
describe: 'Override auto-detected 1mcp server URL',
|
|
27
|
+
type: 'string',
|
|
28
|
+
alias: 'u',
|
|
29
|
+
})
|
|
30
|
+
.option('dry-run', {
|
|
31
|
+
describe: 'Preview changes without making them',
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
default: false,
|
|
34
|
+
})
|
|
35
|
+
.option('yes', {
|
|
36
|
+
describe: 'Skip confirmation prompts (for automation)',
|
|
37
|
+
type: 'boolean',
|
|
38
|
+
default: false,
|
|
39
|
+
alias: 'y',
|
|
40
|
+
})
|
|
41
|
+
.option('manual-only', {
|
|
42
|
+
describe: 'Show manual setup instructions only',
|
|
43
|
+
type: 'boolean',
|
|
44
|
+
default: false,
|
|
45
|
+
})
|
|
46
|
+
.option('backup-only', {
|
|
47
|
+
describe: 'Create backup without replacing config',
|
|
48
|
+
type: 'boolean',
|
|
49
|
+
default: false,
|
|
50
|
+
})
|
|
51
|
+
.option('force', {
|
|
52
|
+
describe: 'Skip validation warnings',
|
|
53
|
+
type: 'boolean',
|
|
54
|
+
default: false,
|
|
55
|
+
alias: 'f',
|
|
56
|
+
})
|
|
57
|
+
.example([
|
|
58
|
+
['$0 app consolidate claude-desktop', 'Consolidate Claude Desktop MCP servers into 1mcp'],
|
|
59
|
+
['$0 app consolidate cursor --dry-run', 'Preview consolidation for Cursor'],
|
|
60
|
+
['$0 app consolidate vscode --url=http://localhost:3051/mcp', 'Use custom 1mcp URL'],
|
|
61
|
+
['$0 app consolidate claude-desktop cursor vscode', 'Consolidate multiple apps at once'],
|
|
62
|
+
]).epilogue(`
|
|
63
|
+
WHAT IT DOES:
|
|
64
|
+
1. Extracts MCP server configurations from app config files
|
|
65
|
+
2. Imports those servers into your 1mcp configuration
|
|
66
|
+
3. Replaces app config with single 1mcp connection
|
|
67
|
+
4. Creates backup of original app configuration
|
|
68
|
+
|
|
69
|
+
EXAMPLE WORKFLOW:
|
|
70
|
+
Before: Claude Desktop ā [filesystem, postgres, sequential] servers directly
|
|
71
|
+
After: Claude Desktop ā 1mcp ā [filesystem, postgres, sequential] servers
|
|
72
|
+
|
|
73
|
+
${generateSupportedAppsHelp()}
|
|
74
|
+
`);
|
|
75
|
+
},
|
|
76
|
+
handler: async (argv) => {
|
|
77
|
+
const { consolidateCommand } = await import('./consolidate.js');
|
|
78
|
+
await consolidateCommand(argv);
|
|
79
|
+
},
|
|
80
|
+
})
|
|
81
|
+
.command({
|
|
82
|
+
command: 'restore [app-name]',
|
|
83
|
+
describe: 'Restore desktop applications to pre-consolidation state',
|
|
84
|
+
builder: (yargs) => {
|
|
85
|
+
return yargs
|
|
86
|
+
.positional('app-name', {
|
|
87
|
+
describe: 'Desktop app to restore (claude-desktop, cursor, vscode, etc.)',
|
|
88
|
+
type: 'string',
|
|
89
|
+
})
|
|
90
|
+
.option('backup', {
|
|
91
|
+
describe: 'Specific backup file to restore from',
|
|
92
|
+
type: 'string',
|
|
93
|
+
alias: 'b',
|
|
94
|
+
})
|
|
95
|
+
.option('list', {
|
|
96
|
+
describe: 'List available backups for app',
|
|
97
|
+
type: 'boolean',
|
|
98
|
+
default: false,
|
|
99
|
+
alias: 'l',
|
|
100
|
+
})
|
|
101
|
+
.option('all', {
|
|
102
|
+
describe: 'Restore all apps that were consolidated',
|
|
103
|
+
type: 'boolean',
|
|
104
|
+
default: false,
|
|
105
|
+
alias: 'a',
|
|
106
|
+
})
|
|
107
|
+
.option('keep-in-1mcp', {
|
|
108
|
+
describe: "Don't remove servers from 1mcp config (keep both)",
|
|
109
|
+
type: 'boolean',
|
|
110
|
+
default: false,
|
|
111
|
+
})
|
|
112
|
+
.option('dry-run', {
|
|
113
|
+
describe: 'Preview restore without making changes',
|
|
114
|
+
type: 'boolean',
|
|
115
|
+
default: false,
|
|
116
|
+
})
|
|
117
|
+
.option('yes', {
|
|
118
|
+
describe: 'Skip confirmation prompts',
|
|
119
|
+
type: 'boolean',
|
|
120
|
+
default: false,
|
|
121
|
+
alias: 'y',
|
|
122
|
+
})
|
|
123
|
+
.example([
|
|
124
|
+
['$0 app restore claude-desktop', 'Restore Claude Desktop configuration'],
|
|
125
|
+
['$0 app restore cursor --list', 'List available backups for Cursor'],
|
|
126
|
+
['$0 app restore --all --dry-run', 'Preview restoring all apps'],
|
|
127
|
+
['$0 app restore --backup=./config.backup.1640995200000.meta', 'Restore from specific backup'],
|
|
128
|
+
]).epilogue(`
|
|
129
|
+
WHAT IT DOES:
|
|
130
|
+
1. Finds backup files created during consolidation
|
|
131
|
+
2. Restores original app configuration from backup
|
|
132
|
+
3. Validates restored configuration works correctly
|
|
133
|
+
4. Optionally removes imported servers from 1mcp config
|
|
134
|
+
|
|
135
|
+
EXAMPLE WORKFLOW:
|
|
136
|
+
Current: Claude Desktop ā 1mcp ā [filesystem, postgres, sequential] servers
|
|
137
|
+
After: Claude Desktop ā [filesystem, postgres, sequential] servers directly
|
|
138
|
+
`);
|
|
139
|
+
},
|
|
140
|
+
handler: async (argv) => {
|
|
141
|
+
const { restoreCommand } = await import('./restore.js');
|
|
142
|
+
await restoreCommand(argv);
|
|
143
|
+
},
|
|
144
|
+
})
|
|
145
|
+
.command({
|
|
146
|
+
command: 'list',
|
|
147
|
+
describe: 'List supported desktop applications',
|
|
148
|
+
builder: (yargs) => {
|
|
149
|
+
return yargs
|
|
150
|
+
.option('configurable-only', {
|
|
151
|
+
describe: 'Show only apps that support automatic consolidation',
|
|
152
|
+
type: 'boolean',
|
|
153
|
+
default: false,
|
|
154
|
+
})
|
|
155
|
+
.option('manual-only', {
|
|
156
|
+
describe: 'Show only apps that require manual setup',
|
|
157
|
+
type: 'boolean',
|
|
158
|
+
default: false,
|
|
159
|
+
})
|
|
160
|
+
.example([
|
|
161
|
+
['$0 app list', 'List all supported applications'],
|
|
162
|
+
['$0 app list --configurable-only', 'List only auto-configurable apps'],
|
|
163
|
+
['$0 app list --manual-only', 'List only manual setup apps'],
|
|
164
|
+
]);
|
|
165
|
+
},
|
|
166
|
+
handler: async (argv) => {
|
|
167
|
+
const { listCommand } = await import('./list.js');
|
|
168
|
+
await listCommand(argv);
|
|
169
|
+
},
|
|
170
|
+
})
|
|
171
|
+
.command({
|
|
172
|
+
command: 'discover',
|
|
173
|
+
describe: 'Discover installed apps with MCP configurations',
|
|
174
|
+
builder: (yargs) => {
|
|
175
|
+
return yargs
|
|
176
|
+
.option('show-empty', {
|
|
177
|
+
describe: 'Include apps with no MCP servers configured',
|
|
178
|
+
type: 'boolean',
|
|
179
|
+
default: false,
|
|
180
|
+
})
|
|
181
|
+
.option('show-paths', {
|
|
182
|
+
describe: 'Show configuration file paths',
|
|
183
|
+
type: 'boolean',
|
|
184
|
+
default: false,
|
|
185
|
+
})
|
|
186
|
+
.example([
|
|
187
|
+
['$0 app discover', 'Find installed apps with MCP configs'],
|
|
188
|
+
['$0 app discover --show-empty', 'Include apps with no servers'],
|
|
189
|
+
['$0 app discover --show-paths', 'Show config file locations'],
|
|
190
|
+
]);
|
|
191
|
+
},
|
|
192
|
+
handler: async (argv) => {
|
|
193
|
+
const { discoverCommand } = await import('./discover.js');
|
|
194
|
+
await discoverCommand(argv);
|
|
195
|
+
},
|
|
196
|
+
})
|
|
197
|
+
.command({
|
|
198
|
+
command: 'status [app-name]',
|
|
199
|
+
describe: 'Show current status of app configurations',
|
|
200
|
+
builder: (yargs) => {
|
|
201
|
+
return yargs
|
|
202
|
+
.positional('app-name', {
|
|
203
|
+
describe: 'Desktop app to check (claude-desktop, cursor, vscode, etc.)',
|
|
204
|
+
type: 'string',
|
|
205
|
+
})
|
|
206
|
+
.option('verbose', {
|
|
207
|
+
describe: 'Show detailed configuration information',
|
|
208
|
+
type: 'boolean',
|
|
209
|
+
default: false,
|
|
210
|
+
alias: 'v',
|
|
211
|
+
})
|
|
212
|
+
.example([
|
|
213
|
+
['$0 app status', 'Show status of all apps'],
|
|
214
|
+
['$0 app status claude-desktop', 'Show status of specific app'],
|
|
215
|
+
['$0 app status --verbose', 'Show detailed status information'],
|
|
216
|
+
]);
|
|
217
|
+
},
|
|
218
|
+
handler: async (argv) => {
|
|
219
|
+
const { statusCommand } = await import('./status.js');
|
|
220
|
+
await statusCommand(argv);
|
|
221
|
+
},
|
|
222
|
+
})
|
|
223
|
+
.command({
|
|
224
|
+
command: 'backups [app-name]',
|
|
225
|
+
describe: 'List all available backups',
|
|
226
|
+
builder: (yargs) => {
|
|
227
|
+
return yargs
|
|
228
|
+
.positional('app-name', {
|
|
229
|
+
describe: 'Show backups for specific app only',
|
|
230
|
+
type: 'string',
|
|
231
|
+
})
|
|
232
|
+
.option('cleanup', {
|
|
233
|
+
describe: 'Remove backups older than specified days',
|
|
234
|
+
type: 'number',
|
|
235
|
+
})
|
|
236
|
+
.option('verify', {
|
|
237
|
+
describe: 'Verify backup file integrity',
|
|
238
|
+
type: 'boolean',
|
|
239
|
+
default: false,
|
|
240
|
+
})
|
|
241
|
+
.example([
|
|
242
|
+
['$0 app backups', 'List all available backups'],
|
|
243
|
+
['$0 app backups claude-desktop', 'List backups for specific app'],
|
|
244
|
+
['$0 app backups --cleanup=30', 'Remove backups older than 30 days'],
|
|
245
|
+
['$0 app backups --verify', 'Verify backup integrity'],
|
|
246
|
+
]);
|
|
247
|
+
},
|
|
248
|
+
handler: async (argv) => {
|
|
249
|
+
const { backupsCommand } = await import('./backups.js');
|
|
250
|
+
await backupsCommand(argv);
|
|
251
|
+
},
|
|
252
|
+
})
|
|
253
|
+
.demandCommand(1, 'You must specify a subcommand')
|
|
254
|
+
.help().epilogue(`
|
|
255
|
+
App Command Group - Desktop Application MCP Configuration Management
|
|
256
|
+
|
|
257
|
+
The app command group helps you consolidate MCP servers from various desktop
|
|
258
|
+
applications (Claude Desktop, Cursor, VS Code, etc.) into a unified 1mcp proxy.
|
|
259
|
+
|
|
260
|
+
This simplifies configuration management by:
|
|
261
|
+
⢠Moving all MCP servers to a single 1mcp instance
|
|
262
|
+
⢠Replacing individual app configs with one 1mcp connection
|
|
263
|
+
⢠Providing safe backup and restore capabilities
|
|
264
|
+
⢠Supporting both automatic and manual setup workflows
|
|
265
|
+
|
|
266
|
+
For more information about each command, use: $0 app <command> --help
|
|
267
|
+
`);
|
|
268
|
+
}, () => {
|
|
269
|
+
// This handler runs when 'app' is called without a subcommand
|
|
270
|
+
console.log('Please specify a subcommand. Use --help for available commands.');
|
|
271
|
+
process.exit(1);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAW;IAC1C,OAAO,KAAK,CAAC,OAAO,CAClB,KAAK,EACL,+CAA+C,EAC/C,CAAC,KAAK,EA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;;;;;;;;;;SAahB,CAAC,CAAC;IACP,CAAC,EACD,GAAG,EAAE;QACH,8DAA8D;QAC9D,OAAO,CAAC,GAAG,CAAC,iEAAiE,CAAC,CAAC;QAC/E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List command - Display supported desktop applications.
|
|
3
|
+
*
|
|
4
|
+
* Shows all supported applications with their consolidation status
|
|
5
|
+
* (automatic vs manual setup required).
|
|
6
|
+
*/
|
|
7
|
+
interface ListOptions {
|
|
8
|
+
'configurable-only': boolean;
|
|
9
|
+
'manual-only': boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Main list command handler
|
|
13
|
+
*/
|
|
14
|
+
export declare function listCommand(options: ListOptions): Promise<void>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/app/list.ts"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH,UAAU,WAAW;IACnB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBrE"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { APP_PRESETS, getConfigurableApps, getManualOnlyApps, showPlatformWarningIfNeeded, } from '../../utils/appPresets.js';
|
|
2
|
+
/**
|
|
3
|
+
* Main list command handler
|
|
4
|
+
*/
|
|
5
|
+
export async function listCommand(options) {
|
|
6
|
+
// Show platform warning if needed
|
|
7
|
+
showPlatformWarningIfNeeded();
|
|
8
|
+
console.log('š± Supported Desktop Applications for MCP Consolidation\n');
|
|
9
|
+
if (options['configurable-only']) {
|
|
10
|
+
showConfigurableApps();
|
|
11
|
+
}
|
|
12
|
+
else if (options['manual-only']) {
|
|
13
|
+
showManualOnlyApps();
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
showAllApps();
|
|
17
|
+
}
|
|
18
|
+
console.log('\nš” Usage:');
|
|
19
|
+
console.log(' npx @1mcp/agent app consolidate <app-name>');
|
|
20
|
+
console.log(' npx @1mcp/agent app discover # Find installed apps');
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Show all supported applications
|
|
24
|
+
*/
|
|
25
|
+
function showAllApps() {
|
|
26
|
+
const configurableApps = getConfigurableApps();
|
|
27
|
+
const manualApps = getManualOnlyApps();
|
|
28
|
+
if (configurableApps.length > 0) {
|
|
29
|
+
console.log('ā
Auto-Configurable Applications (Automatic Consolidation):');
|
|
30
|
+
configurableApps.forEach((appName) => {
|
|
31
|
+
const preset = APP_PRESETS[appName];
|
|
32
|
+
console.log(` ${preset.name.padEnd(15)} - ${preset.displayName}`);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
if (manualApps.length > 0) {
|
|
36
|
+
console.log('\nš§ Manual Setup Applications (Instructions Provided):');
|
|
37
|
+
manualApps.forEach((appName) => {
|
|
38
|
+
const preset = APP_PRESETS[appName];
|
|
39
|
+
console.log(` ${preset.name.padEnd(15)} - ${preset.displayName}`);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
console.log(`\nš Total: ${configurableApps.length + manualApps.length} applications supported`);
|
|
43
|
+
console.log(` ā
Auto-configurable: ${configurableApps.length}`);
|
|
44
|
+
console.log(` š§ Manual setup: ${manualApps.length}`);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Show only configurable applications
|
|
48
|
+
*/
|
|
49
|
+
function showConfigurableApps() {
|
|
50
|
+
const configurableApps = getConfigurableApps();
|
|
51
|
+
console.log('ā
Auto-Configurable Applications:\n');
|
|
52
|
+
console.log('These applications support automatic MCP server consolidation.\n');
|
|
53
|
+
if (configurableApps.length === 0) {
|
|
54
|
+
console.log('No auto-configurable applications found.');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
configurableApps.forEach((appName) => {
|
|
58
|
+
const preset = APP_PRESETS[appName];
|
|
59
|
+
console.log(`š± ${preset.displayName} (${preset.name})`);
|
|
60
|
+
// Show configuration locations
|
|
61
|
+
const locations = preset.locations
|
|
62
|
+
.filter((loc) => loc.platform === 'all' || loc.platform === process.platform)
|
|
63
|
+
.sort((a, b) => b.priority - a.priority);
|
|
64
|
+
if (locations.length > 0) {
|
|
65
|
+
console.log(' Configuration locations:');
|
|
66
|
+
locations.forEach((loc) => {
|
|
67
|
+
console.log(` ${loc.level}: ${loc.path}`);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
console.log();
|
|
71
|
+
});
|
|
72
|
+
console.log(`š ${configurableApps.length} auto-configurable applications available.`);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Show only manual setup applications
|
|
76
|
+
*/
|
|
77
|
+
function showManualOnlyApps() {
|
|
78
|
+
const manualApps = getManualOnlyApps();
|
|
79
|
+
console.log('š§ Manual Setup Applications:\n');
|
|
80
|
+
console.log('These applications require manual configuration with provided instructions.\n');
|
|
81
|
+
if (manualApps.length === 0) {
|
|
82
|
+
console.log('No manual setup applications found.');
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
manualApps.forEach((appName) => {
|
|
86
|
+
const preset = APP_PRESETS[appName];
|
|
87
|
+
console.log(`š± ${preset.displayName} (${preset.name})`);
|
|
88
|
+
console.log(' Requires manual setup - instructions will be provided during consolidation.');
|
|
89
|
+
console.log();
|
|
90
|
+
});
|
|
91
|
+
console.log(`š ${manualApps.length} manual setup applications available.`);
|
|
92
|
+
console.log('\nš” To get setup instructions for a manual app:');
|
|
93
|
+
console.log(' npx @1mcp/agent app consolidate <app-name> --manual-only');
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=list.js.map
|
|
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AgF,CAAC,CAAC;QAC9F,OAAO,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,MAAM,UAAU,CAAC,MAAM,uCAAuC,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;IAChE,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;AAC7E,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restore command - Restore desktop applications to pre-consolidation state.
|
|
3
|
+
*
|
|
4
|
+
* Restores original application configurations from backups created
|
|
5
|
+
* during the consolidation process.
|
|
6
|
+
*/
|
|
7
|
+
interface RestoreOptions {
|
|
8
|
+
'app-name'?: string;
|
|
9
|
+
backup?: string;
|
|
10
|
+
list: boolean;
|
|
11
|
+
all: boolean;
|
|
12
|
+
'keep-in-1mcp': boolean;
|
|
13
|
+
'dry-run': boolean;
|
|
14
|
+
yes: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Main restore command handler
|
|
18
|
+
*/
|
|
19
|
+
export declare function restoreCommand(options: RestoreOptions): Promise<void>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=restore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore.d.ts","sourceRoot":"","sources":["../../../src/commands/app/restore.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,UAAU,cAAc;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;CACd;AASD;;GAEG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC3E"}
|