@1mcp/agent 0.21.0 → 0.22.1
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 +123 -148
- package/build/commands/app/backups.d.ts +13 -1
- package/build/commands/app/backups.d.ts.map +1 -1
- package/build/commands/app/backups.js +25 -0
- package/build/commands/app/backups.js.map +1 -1
- package/build/commands/app/consolidate.d.ts +21 -1
- package/build/commands/app/consolidate.d.ts.map +1 -1
- package/build/commands/app/consolidate.js +63 -0
- package/build/commands/app/consolidate.js.map +1 -1
- package/build/commands/app/discover.d.ts +11 -1
- package/build/commands/app/discover.d.ts.map +1 -1
- package/build/commands/app/discover.js +21 -0
- package/build/commands/app/discover.js.map +1 -1
- package/build/commands/app/index.d.ts.map +1 -1
- package/build/commands/app/index.js +15 -193
- package/build/commands/app/index.js.map +1 -1
- package/build/commands/app/list.d.ts +11 -1
- package/build/commands/app/list.d.ts.map +1 -1
- package/build/commands/app/list.js +21 -0
- package/build/commands/app/list.js.map +1 -1
- package/build/commands/app/restore.d.ts +21 -1
- package/build/commands/app/restore.d.ts.map +1 -1
- package/build/commands/app/restore.js +59 -0
- package/build/commands/app/restore.js.map +1 -1
- package/build/commands/app/status.d.ts +11 -1
- package/build/commands/app/status.d.ts.map +1 -1
- package/build/commands/app/status.js +21 -0
- package/build/commands/app/status.js.map +1 -1
- package/build/commands/mcp/add.d.ts +35 -2
- package/build/commands/mcp/add.d.ts.map +1 -1
- package/build/commands/mcp/add.js +86 -0
- package/build/commands/mcp/add.js.map +1 -1
- package/build/commands/mcp/enable.d.ts +15 -2
- package/build/commands/mcp/enable.d.ts.map +1 -1
- package/build/commands/mcp/enable.js +24 -0
- package/build/commands/mcp/enable.js.map +1 -1
- package/build/commands/mcp/index.d.ts.map +1 -1
- package/build/commands/mcp/index.js +18 -302
- package/build/commands/mcp/index.js.map +1 -1
- package/build/commands/mcp/list.d.ts +15 -2
- package/build/commands/mcp/list.d.ts.map +1 -1
- package/build/commands/mcp/list.js +35 -1
- package/build/commands/mcp/list.js.map +1 -1
- package/build/commands/mcp/remove.d.ts +11 -2
- package/build/commands/mcp/remove.d.ts.map +1 -1
- package/build/commands/mcp/remove.js +21 -0
- package/build/commands/mcp/remove.js.map +1 -1
- package/build/commands/mcp/status.d.ts +11 -2
- package/build/commands/mcp/status.d.ts.map +1 -1
- package/build/commands/mcp/status.js +23 -1
- package/build/commands/mcp/status.js.map +1 -1
- package/build/commands/mcp/tokens.d.ts +13 -3
- package/build/commands/mcp/tokens.d.ts.map +1 -1
- package/build/commands/mcp/tokens.js +31 -0
- package/build/commands/mcp/tokens.js.map +1 -1
- package/build/commands/mcp/update.d.ts +33 -2
- package/build/commands/mcp/update.d.ts.map +1 -1
- package/build/commands/mcp/update.js +72 -0
- package/build/commands/mcp/update.js.map +1 -1
- package/build/commands/preset/create.d.ts +26 -0
- package/build/commands/preset/create.d.ts.map +1 -0
- package/build/commands/preset/create.js +117 -0
- package/build/commands/preset/create.js.map +1 -0
- package/build/commands/preset/delete.d.ts +20 -0
- package/build/commands/preset/delete.d.ts.map +1 -0
- package/build/commands/preset/delete.js +46 -0
- package/build/commands/preset/delete.js.map +1 -0
- package/build/commands/preset/edit.d.ts +23 -0
- package/build/commands/preset/edit.d.ts.map +1 -0
- package/build/commands/preset/edit.js +68 -0
- package/build/commands/preset/edit.js.map +1 -0
- package/build/commands/preset/index.d.ts +6 -0
- package/build/commands/preset/index.d.ts.map +1 -0
- package/build/commands/preset/index.js +141 -0
- package/build/commands/preset/index.js.map +1 -0
- package/build/commands/preset/interactive.d.ts +12 -0
- package/build/commands/preset/interactive.d.ts.map +1 -0
- package/build/commands/preset/interactive.js +131 -0
- package/build/commands/preset/interactive.js.map +1 -0
- package/build/commands/preset/list.d.ts +16 -0
- package/build/commands/preset/list.d.ts.map +1 -0
- package/build/commands/preset/list.js +128 -0
- package/build/commands/preset/list.js.map +1 -0
- package/build/commands/preset/show.d.ts +19 -0
- package/build/commands/preset/show.d.ts.map +1 -0
- package/build/commands/preset/show.js +114 -0
- package/build/commands/preset/show.js.map +1 -0
- package/build/commands/preset/test.d.ts +20 -0
- package/build/commands/preset/test.d.ts.map +1 -0
- package/build/commands/preset/test.js +46 -0
- package/build/commands/preset/test.js.map +1 -0
- package/build/commands/preset/url.d.ts +20 -0
- package/build/commands/preset/url.d.ts.map +1 -0
- package/build/commands/preset/url.js +47 -0
- package/build/commands/preset/url.js.map +1 -0
- package/build/commands/serve/index.d.ts +106 -0
- package/build/commands/serve/index.d.ts.map +1 -0
- package/build/commands/serve/index.js +143 -0
- package/build/commands/serve/index.js.map +1 -0
- package/build/commands/serve/serve.d.ts +28 -0
- package/build/commands/serve/serve.d.ts.map +1 -0
- package/build/commands/serve/serve.js +213 -0
- package/build/commands/serve/serve.js.map +1 -0
- package/build/constants.d.ts +6 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +13 -5
- package/build/constants.js.map +1 -1
- package/build/core/server/agentConfig.d.ts +6 -0
- package/build/core/server/agentConfig.d.ts.map +1 -1
- package/build/core/server/agentConfig.js +9 -1
- package/build/core/server/agentConfig.js.map +1 -1
- package/build/core/server/serverManager.d.ts.map +1 -1
- package/build/core/server/serverManager.js +41 -0
- package/build/core/server/serverManager.js.map +1 -1
- package/build/core/types/server.d.ts +4 -1
- package/build/core/types/server.d.ts.map +1 -1
- package/build/core/types/server.js.map +1 -1
- package/build/core/types/transport.d.ts +16 -77
- package/build/core/types/transport.d.ts.map +1 -1
- package/build/core/types/transport.js +2 -2
- package/build/core/types/transport.js.map +1 -1
- package/build/globalOptions.d.ts +46 -0
- package/build/globalOptions.d.ts.map +1 -0
- package/build/globalOptions.js +37 -0
- package/build/globalOptions.js.map +1 -0
- package/build/handlers/requestHandlers.d.ts.map +1 -1
- package/build/handlers/requestHandlers.js +23 -1
- package/build/handlers/requestHandlers.js.map +1 -1
- package/build/index.js +58 -347
- package/build/index.js.map +1 -1
- package/build/logger/logger.d.ts.map +1 -1
- package/build/logger/logger.js +4 -2
- package/build/logger/logger.js.map +1 -1
- package/build/logger/mcpLoggingEnhancer.d.ts.map +1 -1
- package/build/logger/mcpLoggingEnhancer.js +10 -6
- package/build/logger/mcpLoggingEnhancer.js.map +1 -1
- package/build/server.d.ts.map +1 -1
- package/build/server.js +26 -0
- package/build/server.js.map +1 -1
- package/build/transport/http/middlewares/scopeAuthMiddleware.d.ts +10 -1
- package/build/transport/http/middlewares/scopeAuthMiddleware.d.ts.map +1 -1
- package/build/transport/http/middlewares/scopeAuthMiddleware.js +12 -0
- package/build/transport/http/middlewares/scopeAuthMiddleware.js.map +1 -1
- package/build/transport/http/middlewares/tagsExtractor.d.ts +7 -3
- package/build/transport/http/middlewares/tagsExtractor.d.ts.map +1 -1
- package/build/transport/http/middlewares/tagsExtractor.js +128 -6
- package/build/transport/http/middlewares/tagsExtractor.js.map +1 -1
- package/build/transport/http/routes/sseRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/sseRoutes.js +5 -1
- package/build/transport/http/routes/sseRoutes.js.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.js +5 -1
- package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
- package/build/transport/transportFactory.js +1 -1
- package/build/transport/transportFactory.js.map +1 -1
- package/build/utils/configureGlobalLogger.d.ts +12 -0
- package/build/utils/configureGlobalLogger.d.ts.map +1 -0
- package/build/utils/configureGlobalLogger.js +18 -0
- package/build/utils/configureGlobalLogger.js.map +1 -0
- package/build/utils/interactiveSelector.d.ts +88 -0
- package/build/utils/interactiveSelector.d.ts.map +1 -0
- package/build/utils/interactiveSelector.js +616 -0
- package/build/utils/interactiveSelector.js.map +1 -0
- package/build/utils/presetErrorHandler.d.ts +62 -0
- package/build/utils/presetErrorHandler.d.ts.map +1 -0
- package/build/utils/presetErrorHandler.js +159 -0
- package/build/utils/presetErrorHandler.js.map +1 -0
- package/build/utils/presetManager.d.ts +114 -0
- package/build/utils/presetManager.d.ts.map +1 -0
- package/build/utils/presetManager.js +565 -0
- package/build/utils/presetManager.js.map +1 -0
- package/build/utils/presetNotificationService.d.ts +62 -0
- package/build/utils/presetNotificationService.d.ts.map +1 -0
- package/build/utils/presetNotificationService.js +214 -0
- package/build/utils/presetNotificationService.js.map +1 -0
- package/build/utils/presetServerChangeDetector.d.ts +50 -0
- package/build/utils/presetServerChangeDetector.d.ts.map +1 -0
- package/build/utils/presetServerChangeDetector.js +100 -0
- package/build/utils/presetServerChangeDetector.js.map +1 -0
- package/build/utils/presetTypes.d.ts +52 -0
- package/build/utils/presetTypes.d.ts.map +1 -0
- package/build/utils/presetTypes.js +5 -0
- package/build/utils/presetTypes.js.map +1 -0
- package/build/utils/tagQueryEvaluator.d.ts +68 -0
- package/build/utils/tagQueryEvaluator.d.ts.map +1 -0
- package/build/utils/tagQueryEvaluator.js +292 -0
- package/build/utils/tagQueryEvaluator.js.map +1 -0
- package/build/utils/tagQueryParser.d.ts +11 -0
- package/build/utils/tagQueryParser.d.ts.map +1 -1
- package/build/utils/tagQueryParser.js +46 -0
- package/build/utils/tagQueryParser.js.map +1 -1
- package/build/utils/urlGenerator.d.ts +68 -0
- package/build/utils/urlGenerator.d.ts.map +1 -0
- package/build/utils/urlGenerator.js +208 -0
- package/build/utils/urlGenerator.js.map +1 -0
- package/package.json +21 -17
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { globalOptions } from '../../globalOptions.js';
|
|
2
|
+
// Import builder functions from command implementations
|
|
3
|
+
import { buildAddCommand } from './add.js';
|
|
4
|
+
import { buildUpdateCommand } from './update.js';
|
|
5
|
+
import { buildTokensCommand } from './tokens.js';
|
|
6
|
+
import { buildRemoveCommand } from './remove.js';
|
|
7
|
+
import { buildEnableCommand, buildDisableCommand } from './enable.js';
|
|
8
|
+
import { buildListCommand } from './list.js';
|
|
9
|
+
import { buildStatusCommand } from './status.js';
|
|
1
10
|
/**
|
|
2
11
|
* MCP command group entry point.
|
|
3
12
|
*
|
|
@@ -10,97 +19,11 @@
|
|
|
10
19
|
export function setupMcpCommands(yargs) {
|
|
11
20
|
return yargs.command('mcp', 'Manage MCP server configurations', (yargs) => {
|
|
12
21
|
return yargs
|
|
22
|
+
.options(globalOptions || {})
|
|
13
23
|
.command({
|
|
14
24
|
command: 'add <name>',
|
|
15
25
|
describe: 'Add a new MCP server to the configuration',
|
|
16
|
-
builder:
|
|
17
|
-
return yargs
|
|
18
|
-
.positional('name', {
|
|
19
|
-
describe: 'Name of the MCP server',
|
|
20
|
-
type: 'string',
|
|
21
|
-
demandOption: true,
|
|
22
|
-
})
|
|
23
|
-
.option('config', {
|
|
24
|
-
describe: 'Path to the config file',
|
|
25
|
-
type: 'string',
|
|
26
|
-
alias: 'c',
|
|
27
|
-
})
|
|
28
|
-
.option('type', {
|
|
29
|
-
describe: 'Transport type for the server (auto-detected when using " -- " pattern)',
|
|
30
|
-
type: 'string',
|
|
31
|
-
choices: ['stdio', 'http', 'sse'],
|
|
32
|
-
demandOption: false,
|
|
33
|
-
})
|
|
34
|
-
.option('command', {
|
|
35
|
-
describe: 'Command to execute (required for stdio)',
|
|
36
|
-
type: 'string',
|
|
37
|
-
})
|
|
38
|
-
.option('args', {
|
|
39
|
-
describe: 'Arguments for the command (stdio only)',
|
|
40
|
-
type: 'array',
|
|
41
|
-
string: true,
|
|
42
|
-
})
|
|
43
|
-
.option('url', {
|
|
44
|
-
describe: 'URL for HTTP/SSE servers',
|
|
45
|
-
type: 'string',
|
|
46
|
-
alias: 'u',
|
|
47
|
-
})
|
|
48
|
-
.option('env', {
|
|
49
|
-
describe: 'Environment variables in key=value format',
|
|
50
|
-
type: 'array',
|
|
51
|
-
string: true,
|
|
52
|
-
alias: 'e',
|
|
53
|
-
})
|
|
54
|
-
.option('tags', {
|
|
55
|
-
describe: 'Tags for categorization (comma-separated)',
|
|
56
|
-
type: 'string',
|
|
57
|
-
alias: 'g',
|
|
58
|
-
})
|
|
59
|
-
.option('timeout', {
|
|
60
|
-
describe: 'Connection timeout in milliseconds',
|
|
61
|
-
type: 'number',
|
|
62
|
-
})
|
|
63
|
-
.option('disabled', {
|
|
64
|
-
describe: 'Add server in disabled state',
|
|
65
|
-
type: 'boolean',
|
|
66
|
-
default: false,
|
|
67
|
-
})
|
|
68
|
-
.option('cwd', {
|
|
69
|
-
describe: 'Working directory for stdio servers',
|
|
70
|
-
type: 'string',
|
|
71
|
-
})
|
|
72
|
-
.option('headers', {
|
|
73
|
-
describe: 'HTTP headers in key=value format (HTTP/SSE only)',
|
|
74
|
-
type: 'array',
|
|
75
|
-
string: true,
|
|
76
|
-
})
|
|
77
|
-
.option('restart-on-exit', {
|
|
78
|
-
describe: 'Enable automatic restart when process exits (stdio only)',
|
|
79
|
-
type: 'boolean',
|
|
80
|
-
})
|
|
81
|
-
.option('max-restarts', {
|
|
82
|
-
describe: 'Maximum number of restart attempts (stdio only, unlimited if not specified)',
|
|
83
|
-
type: 'number',
|
|
84
|
-
})
|
|
85
|
-
.option('restart-delay', {
|
|
86
|
-
describe: 'Delay in milliseconds between restart attempts (stdio only, default: 1000)',
|
|
87
|
-
type: 'number',
|
|
88
|
-
})
|
|
89
|
-
.example([
|
|
90
|
-
['$0 mcp add myserver --type=stdio --command=node --args=server.js', 'Add stdio server (explicit)'],
|
|
91
|
-
['$0 mcp add webserver --type=http --url=http://localhost:3000/mcp', 'Add HTTP server'],
|
|
92
|
-
[
|
|
93
|
-
'$0 mcp add airtable --env AIRTABLE_API_KEY=key -- npx -y airtable-mcp-server',
|
|
94
|
-
'Add server using " -- " pattern',
|
|
95
|
-
],
|
|
96
|
-
['$0 mcp add myserver -- cmd /c npx -y @some/package', 'Add server with Windows command'],
|
|
97
|
-
['$0 mcp add tagged --type=stdio --command=echo --tags=dev,test', 'Add server with tags'],
|
|
98
|
-
[
|
|
99
|
-
'$0 mcp add custom --type=stdio --command=python --env=PATH=/custom/path --disabled',
|
|
100
|
-
'Add disabled server with custom env',
|
|
101
|
-
],
|
|
102
|
-
]);
|
|
103
|
-
},
|
|
26
|
+
builder: buildAddCommand,
|
|
104
27
|
handler: async (argv) => {
|
|
105
28
|
const { addCommand } = await import('./add.js');
|
|
106
29
|
const { parseDoubleHyphenArgs, hasDoubleHyphen, mergeDoubleHyphenArgs } = await import('./utils/doubleHyphenParser.js');
|
|
@@ -118,29 +41,7 @@ export function setupMcpCommands(yargs) {
|
|
|
118
41
|
.command({
|
|
119
42
|
command: 'remove <name>',
|
|
120
43
|
describe: 'Remove an MCP server from the configuration',
|
|
121
|
-
builder:
|
|
122
|
-
return yargs
|
|
123
|
-
.positional('name', {
|
|
124
|
-
describe: 'Name of the MCP server to remove',
|
|
125
|
-
type: 'string',
|
|
126
|
-
demandOption: true,
|
|
127
|
-
})
|
|
128
|
-
.option('config', {
|
|
129
|
-
describe: 'Path to the config file',
|
|
130
|
-
type: 'string',
|
|
131
|
-
alias: 'c',
|
|
132
|
-
})
|
|
133
|
-
.option('yes', {
|
|
134
|
-
describe: 'Skip confirmation prompt',
|
|
135
|
-
type: 'boolean',
|
|
136
|
-
default: false,
|
|
137
|
-
alias: 'y',
|
|
138
|
-
})
|
|
139
|
-
.example([
|
|
140
|
-
['$0 mcp remove myserver', 'Remove server with confirmation'],
|
|
141
|
-
['$0 mcp remove myserver --yes', 'Remove server without confirmation'],
|
|
142
|
-
]);
|
|
143
|
-
},
|
|
44
|
+
builder: buildRemoveCommand,
|
|
144
45
|
handler: async (argv) => {
|
|
145
46
|
const { removeCommand } = await import('./remove.js');
|
|
146
47
|
await removeCommand(argv);
|
|
@@ -149,80 +50,7 @@ export function setupMcpCommands(yargs) {
|
|
|
149
50
|
.command({
|
|
150
51
|
command: 'update <name>',
|
|
151
52
|
describe: 'Update an existing MCP server configuration',
|
|
152
|
-
builder:
|
|
153
|
-
return yargs
|
|
154
|
-
.positional('name', {
|
|
155
|
-
describe: 'Name of the MCP server to update',
|
|
156
|
-
type: 'string',
|
|
157
|
-
demandOption: true,
|
|
158
|
-
})
|
|
159
|
-
.option('config', {
|
|
160
|
-
describe: 'Path to the config file',
|
|
161
|
-
type: 'string',
|
|
162
|
-
alias: 'c',
|
|
163
|
-
})
|
|
164
|
-
.option('type', {
|
|
165
|
-
describe: 'Transport type for the server (auto-detected when using " -- " pattern)',
|
|
166
|
-
type: 'string',
|
|
167
|
-
choices: ['stdio', 'http', 'sse'],
|
|
168
|
-
})
|
|
169
|
-
.option('command', {
|
|
170
|
-
describe: 'Command to execute (stdio only)',
|
|
171
|
-
type: 'string',
|
|
172
|
-
})
|
|
173
|
-
.option('args', {
|
|
174
|
-
describe: 'Arguments for the command (stdio only)',
|
|
175
|
-
type: 'array',
|
|
176
|
-
string: true,
|
|
177
|
-
})
|
|
178
|
-
.option('url', {
|
|
179
|
-
describe: 'URL for HTTP/SSE servers',
|
|
180
|
-
type: 'string',
|
|
181
|
-
alias: 'u',
|
|
182
|
-
})
|
|
183
|
-
.option('env', {
|
|
184
|
-
describe: 'Environment variables in key=value format',
|
|
185
|
-
type: 'array',
|
|
186
|
-
string: true,
|
|
187
|
-
alias: 'e',
|
|
188
|
-
})
|
|
189
|
-
.option('tags', {
|
|
190
|
-
describe: 'Tags for categorization (comma-separated)',
|
|
191
|
-
type: 'string',
|
|
192
|
-
alias: 'g',
|
|
193
|
-
})
|
|
194
|
-
.option('timeout', {
|
|
195
|
-
describe: 'Connection timeout in milliseconds',
|
|
196
|
-
type: 'number',
|
|
197
|
-
})
|
|
198
|
-
.option('cwd', {
|
|
199
|
-
describe: 'Working directory for stdio servers',
|
|
200
|
-
type: 'string',
|
|
201
|
-
})
|
|
202
|
-
.option('headers', {
|
|
203
|
-
describe: 'HTTP headers in key=value format (HTTP/SSE only)',
|
|
204
|
-
type: 'array',
|
|
205
|
-
string: true,
|
|
206
|
-
})
|
|
207
|
-
.option('restart-on-exit', {
|
|
208
|
-
describe: 'Enable automatic restart when process exits (stdio only)',
|
|
209
|
-
type: 'boolean',
|
|
210
|
-
})
|
|
211
|
-
.option('max-restarts', {
|
|
212
|
-
describe: 'Maximum number of restart attempts (stdio only, unlimited if not specified)',
|
|
213
|
-
type: 'number',
|
|
214
|
-
})
|
|
215
|
-
.option('restart-delay', {
|
|
216
|
-
describe: 'Delay in milliseconds between restart attempts (stdio only, default: 1000)',
|
|
217
|
-
type: 'number',
|
|
218
|
-
})
|
|
219
|
-
.example([
|
|
220
|
-
['$0 mcp update myserver --tags=prod,api', 'Update server tags'],
|
|
221
|
-
['$0 mcp update myserver --env=NODE_ENV=production', 'Update environment'],
|
|
222
|
-
['$0 mcp update myserver -- npx -y updated-package', 'Update using " -- " pattern'],
|
|
223
|
-
['$0 mcp update myserver --timeout=10000', 'Update timeout'],
|
|
224
|
-
]);
|
|
225
|
-
},
|
|
53
|
+
builder: buildUpdateCommand,
|
|
226
54
|
handler: async (argv) => {
|
|
227
55
|
const { updateCommand } = await import('./update.js');
|
|
228
56
|
const { parseDoubleHyphenArgs, hasDoubleHyphen, mergeDoubleHyphenArgs } = await import('./utils/doubleHyphenParser.js');
|
|
@@ -240,20 +68,7 @@ export function setupMcpCommands(yargs) {
|
|
|
240
68
|
.command({
|
|
241
69
|
command: 'enable <name>',
|
|
242
70
|
describe: 'Enable a disabled MCP server',
|
|
243
|
-
builder:
|
|
244
|
-
return yargs
|
|
245
|
-
.positional('name', {
|
|
246
|
-
describe: 'Name of the MCP server to enable',
|
|
247
|
-
type: 'string',
|
|
248
|
-
demandOption: true,
|
|
249
|
-
})
|
|
250
|
-
.option('config', {
|
|
251
|
-
describe: 'Path to the config file',
|
|
252
|
-
type: 'string',
|
|
253
|
-
alias: 'c',
|
|
254
|
-
})
|
|
255
|
-
.example([['$0 mcp enable myserver', 'Enable a disabled server']]);
|
|
256
|
-
},
|
|
71
|
+
builder: buildEnableCommand,
|
|
257
72
|
handler: async (argv) => {
|
|
258
73
|
const { enableCommand } = await import('./enable.js');
|
|
259
74
|
await enableCommand(argv);
|
|
@@ -262,20 +77,7 @@ export function setupMcpCommands(yargs) {
|
|
|
262
77
|
.command({
|
|
263
78
|
command: 'disable <name>',
|
|
264
79
|
describe: 'Disable an MCP server without removing it',
|
|
265
|
-
builder:
|
|
266
|
-
return yargs
|
|
267
|
-
.positional('name', {
|
|
268
|
-
describe: 'Name of the MCP server to disable',
|
|
269
|
-
type: 'string',
|
|
270
|
-
demandOption: true,
|
|
271
|
-
})
|
|
272
|
-
.option('config', {
|
|
273
|
-
describe: 'Path to the config file',
|
|
274
|
-
type: 'string',
|
|
275
|
-
alias: 'c',
|
|
276
|
-
})
|
|
277
|
-
.example([['$0 mcp disable myserver', 'Disable a server temporarily']]);
|
|
278
|
-
},
|
|
80
|
+
builder: buildDisableCommand,
|
|
279
81
|
handler: async (argv) => {
|
|
280
82
|
const { disableCommand } = await import('./enable.js');
|
|
281
83
|
await disableCommand(argv);
|
|
@@ -284,36 +86,7 @@ export function setupMcpCommands(yargs) {
|
|
|
284
86
|
.command({
|
|
285
87
|
command: 'list',
|
|
286
88
|
describe: 'List all configured MCP servers',
|
|
287
|
-
builder:
|
|
288
|
-
return yargs
|
|
289
|
-
.option('config', {
|
|
290
|
-
describe: 'Path to the config file',
|
|
291
|
-
type: 'string',
|
|
292
|
-
alias: 'c',
|
|
293
|
-
})
|
|
294
|
-
.option('show-disabled', {
|
|
295
|
-
describe: 'Include disabled servers in the list',
|
|
296
|
-
type: 'boolean',
|
|
297
|
-
default: false,
|
|
298
|
-
})
|
|
299
|
-
.option('tags', {
|
|
300
|
-
describe: 'Filter servers by tags (comma-separated)',
|
|
301
|
-
type: 'string',
|
|
302
|
-
alias: 'g',
|
|
303
|
-
})
|
|
304
|
-
.option('verbose', {
|
|
305
|
-
describe: 'Show detailed server configuration',
|
|
306
|
-
type: 'boolean',
|
|
307
|
-
default: false,
|
|
308
|
-
alias: 'v',
|
|
309
|
-
})
|
|
310
|
-
.example([
|
|
311
|
-
['$0 mcp list', 'List all enabled servers'],
|
|
312
|
-
['$0 mcp list --show-disabled', 'List all servers including disabled'],
|
|
313
|
-
['$0 mcp list --tags=prod,api', 'List servers with specific tags'],
|
|
314
|
-
['$0 mcp list --verbose', 'List servers with detailed config'],
|
|
315
|
-
]);
|
|
316
|
-
},
|
|
89
|
+
builder: buildListCommand,
|
|
317
90
|
handler: async (argv) => {
|
|
318
91
|
const { listCommand } = await import('./list.js');
|
|
319
92
|
await listCommand(argv);
|
|
@@ -322,29 +95,7 @@ export function setupMcpCommands(yargs) {
|
|
|
322
95
|
.command({
|
|
323
96
|
command: 'status [name]',
|
|
324
97
|
describe: 'Show status and details of MCP servers',
|
|
325
|
-
builder:
|
|
326
|
-
return yargs
|
|
327
|
-
.positional('name', {
|
|
328
|
-
describe: 'Name of specific server to check (optional)',
|
|
329
|
-
type: 'string',
|
|
330
|
-
})
|
|
331
|
-
.option('config', {
|
|
332
|
-
describe: 'Path to the config file',
|
|
333
|
-
type: 'string',
|
|
334
|
-
alias: 'c',
|
|
335
|
-
})
|
|
336
|
-
.option('verbose', {
|
|
337
|
-
describe: 'Show detailed status information',
|
|
338
|
-
type: 'boolean',
|
|
339
|
-
default: false,
|
|
340
|
-
alias: 'v',
|
|
341
|
-
})
|
|
342
|
-
.example([
|
|
343
|
-
['$0 mcp status', 'Show status of all servers'],
|
|
344
|
-
['$0 mcp status myserver', 'Show status of specific server'],
|
|
345
|
-
['$0 mcp status --verbose', 'Show detailed status information'],
|
|
346
|
-
]);
|
|
347
|
-
},
|
|
98
|
+
builder: buildStatusCommand,
|
|
348
99
|
handler: async (argv) => {
|
|
349
100
|
const { statusCommand } = await import('./status.js');
|
|
350
101
|
await statusCommand(argv);
|
|
@@ -353,42 +104,7 @@ export function setupMcpCommands(yargs) {
|
|
|
353
104
|
.command({
|
|
354
105
|
command: 'tokens',
|
|
355
106
|
describe: 'Estimate MCP token usage for server capabilities',
|
|
356
|
-
builder:
|
|
357
|
-
return yargs
|
|
358
|
-
.option('config', {
|
|
359
|
-
describe: 'Path to the config file',
|
|
360
|
-
type: 'string',
|
|
361
|
-
alias: 'c',
|
|
362
|
-
})
|
|
363
|
-
.option('tag-filter', {
|
|
364
|
-
describe: 'Filter servers by advanced tag expression (and/or/not logic)',
|
|
365
|
-
type: 'string',
|
|
366
|
-
alias: 'f',
|
|
367
|
-
})
|
|
368
|
-
.option('format', {
|
|
369
|
-
describe: 'Output format',
|
|
370
|
-
type: 'string',
|
|
371
|
-
choices: ['table', 'json', 'summary'],
|
|
372
|
-
default: 'table',
|
|
373
|
-
})
|
|
374
|
-
.option('model', {
|
|
375
|
-
describe: 'Model to use for token estimation',
|
|
376
|
-
type: 'string',
|
|
377
|
-
alias: 'm',
|
|
378
|
-
default: 'gpt-4o',
|
|
379
|
-
})
|
|
380
|
-
.example([
|
|
381
|
-
['$0 mcp tokens', 'Estimate tokens for all MCP servers by connecting to them'],
|
|
382
|
-
[
|
|
383
|
-
'$0 mcp tokens --tag-filter="context7 or playwright"',
|
|
384
|
-
'Estimate tokens for servers with specific tags',
|
|
385
|
-
],
|
|
386
|
-
['$0 mcp tokens --format=json', 'Output in JSON format for programmatic use'],
|
|
387
|
-
['$0 mcp tokens --format=summary', 'Show concise summary'],
|
|
388
|
-
['$0 mcp tokens --model=gpt-3.5-turbo', 'Use gpt-3.5-turbo for token estimation'],
|
|
389
|
-
['$0 mcp tokens --tag-filter="ai and not experimental" --format=table', 'Filter and format output'],
|
|
390
|
-
]);
|
|
391
|
-
},
|
|
107
|
+
builder: buildTokensCommand,
|
|
392
108
|
handler: async (argv) => {
|
|
393
109
|
const { tokensCommand } = await import('./tokens.js');
|
|
394
110
|
await tokensCommand(argv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/mcp/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/mcp/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,wDAAwD;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC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,CAAC;;;;;;;;;;;;;;;SAehB,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"}
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Argv } from 'yargs';
|
|
2
|
+
import { GlobalOptions } from '../../globalOptions.js';
|
|
3
|
+
export interface ListCommandArgs extends GlobalOptions {
|
|
3
4
|
'show-disabled'?: boolean;
|
|
4
5
|
'show-secrets'?: boolean;
|
|
5
6
|
tags?: string;
|
|
6
7
|
verbose?: boolean;
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Build the list command configuration
|
|
11
|
+
*/
|
|
12
|
+
export declare function buildListCommand(yargs: Argv): Argv<{
|
|
13
|
+
"show-disabled": boolean;
|
|
14
|
+
} & {
|
|
15
|
+
"show-secrets": boolean;
|
|
16
|
+
} & {
|
|
17
|
+
tags: string | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
verbose: boolean;
|
|
20
|
+
}>;
|
|
8
21
|
/**
|
|
9
22
|
* List all configured MCP servers
|
|
10
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAMvD,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI;;;;;;;;GA8B3C;AAED;;GAEG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAsFtE"}
|
|
@@ -2,6 +2,40 @@ import { getAllServers, validateConfigPath, parseTags } from './utils/configUtil
|
|
|
2
2
|
import { validateTags } from './utils/validation.js';
|
|
3
3
|
import { inferTransportType } from '../../transport/transportFactory.js';
|
|
4
4
|
import { redactCommandArgs, redactUrl, redactSensitiveValue, sanitizeHeaders } from '../../utils/sanitization.js';
|
|
5
|
+
/**
|
|
6
|
+
* Build the list command configuration
|
|
7
|
+
*/
|
|
8
|
+
export function buildListCommand(yargs) {
|
|
9
|
+
return yargs
|
|
10
|
+
.option('show-disabled', {
|
|
11
|
+
describe: 'Include disabled servers in the list',
|
|
12
|
+
type: 'boolean',
|
|
13
|
+
default: false,
|
|
14
|
+
})
|
|
15
|
+
.option('show-secrets', {
|
|
16
|
+
describe: 'Show sensitive values in verbose output',
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
default: false,
|
|
19
|
+
})
|
|
20
|
+
.option('tags', {
|
|
21
|
+
describe: 'Filter servers by tags (comma-separated)',
|
|
22
|
+
type: 'string',
|
|
23
|
+
alias: 'g',
|
|
24
|
+
})
|
|
25
|
+
.option('verbose', {
|
|
26
|
+
describe: 'Show detailed server configuration',
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
default: false,
|
|
29
|
+
alias: 'v',
|
|
30
|
+
})
|
|
31
|
+
.example([
|
|
32
|
+
['$0 mcp list', 'List all enabled servers'],
|
|
33
|
+
['$0 mcp list --show-disabled', 'List all servers including disabled'],
|
|
34
|
+
['$0 mcp list --show-secrets', 'Show sensitive values in verbose output'],
|
|
35
|
+
['$0 mcp list --tags=prod,api', 'List servers with specific tags'],
|
|
36
|
+
['$0 mcp list --verbose', 'List servers with detailed config'],
|
|
37
|
+
]);
|
|
38
|
+
}
|
|
5
39
|
/**
|
|
6
40
|
* List all configured MCP servers
|
|
7
41
|
*/
|
|
@@ -153,7 +187,7 @@ function displayServer(name, config, verbose, showSecrets = false) {
|
|
|
153
187
|
console.log(` Environment: ${envCount} variable${envCount === 1 ? '' : 's'}`);
|
|
154
188
|
if (verbose) {
|
|
155
189
|
for (const [key, value] of Object.entries(inferredConfig.env)) {
|
|
156
|
-
const displayValue = showSecrets ? value : redactSensitiveValue(value);
|
|
190
|
+
const displayValue = showSecrets ? value : redactSensitiveValue(String(value));
|
|
157
191
|
console.log(` ${key}=${displayValue}`);
|
|
158
192
|
}
|
|
159
193
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/mcp/list.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/mcp/list.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AASlH;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAW;IAC1C,OAAO,KAAK;SACT,MAAM,CAAC,eAAe,EAAE;QACvB,QAAQ,EAAE,sCAAsC;QAChD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,CAAC;SACD,MAAM,CAAC,cAAc,EAAE;QACtB,QAAQ,EAAE,yCAAyC;QACnD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACf,CAAC;SACD,MAAM,C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,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,cAAc,CAAC,OAAO,EAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,eAAe,cAAc,CAAC,OAAO,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,IAAI,cAAc,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrE,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACxD,OAAO,CAAC,GAAG,CAAC,mBAAmB,QAAQ,YAAY,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;QAEhF,IAAI,OAAO,EAAE,CAAC;YACZ,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC9D,MAAM,YAAY,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,oBAAoB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;gBAC/E,OAAO,CAAC,GAAG,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Argv } from 'yargs';
|
|
2
|
+
import { GlobalOptions } from '../../globalOptions.js';
|
|
3
|
+
export interface RemoveCommandArgs extends GlobalOptions {
|
|
2
4
|
name: string;
|
|
3
|
-
config?: string;
|
|
4
5
|
yes?: boolean;
|
|
5
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Build the remove command configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildRemoveCommand(yargs: Argv): Argv<{
|
|
11
|
+
name: string;
|
|
12
|
+
} & {
|
|
13
|
+
yes: boolean;
|
|
14
|
+
}>;
|
|
6
15
|
/**
|
|
7
16
|
* Remove an MCP server from the configuration
|
|
8
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/remove.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/remove.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,IAAI;;;;GAiB7C;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8E1E"}
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import readline from 'readline';
|
|
2
2
|
import { serverExists, getServer, removeServer, validateConfigPath, backupConfig, reloadMcpConfig, } from './utils/configUtils.js';
|
|
3
3
|
import { validateServerName } from './utils/validation.js';
|
|
4
|
+
/**
|
|
5
|
+
* Build the remove command configuration
|
|
6
|
+
*/
|
|
7
|
+
export function buildRemoveCommand(yargs) {
|
|
8
|
+
return yargs
|
|
9
|
+
.positional('name', {
|
|
10
|
+
describe: 'Name of the MCP server to remove',
|
|
11
|
+
type: 'string',
|
|
12
|
+
demandOption: true,
|
|
13
|
+
})
|
|
14
|
+
.option('yes', {
|
|
15
|
+
describe: 'Skip confirmation prompt',
|
|
16
|
+
type: 'boolean',
|
|
17
|
+
default: false,
|
|
18
|
+
alias: 'y',
|
|
19
|
+
})
|
|
20
|
+
.example([
|
|
21
|
+
['$0 mcp remove myserver', 'Remove server with confirmation'],
|
|
22
|
+
['$0 mcp remove myserver --yes', 'Remove server without confirmation'],
|
|
23
|
+
]);
|
|
24
|
+
}
|
|
4
25
|
/**
|
|
5
26
|
* Remove an MCP server from the configuration
|
|
6
27
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/commands/mcp/remove.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/commands/mcp/remove.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,EACL,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAQ3D;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAW;IAC5C,OAAO,KAAK;SACT,UAAU,CAAC,MAAM,EAAE;QAClB,QAAQ,EAAE,kCAAkC;QAC5C,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,IAAI;KACnB,CAAC;SACD,MAAM,CAAC,KAAK,EAAE;QACb,QAAQ,EAAE,0BAA0B;QACpC,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,GAAG;KACX,CAAC;SACD,OAAO,CAAC;QACP,CAAC,wBAAwB,EAAE,iCAAiC,CAAC;QAC7D,CAAC,8BAA8B,EAAE,oCAAoC,CAAC;KACvE,CAAC,CAAC;AACP,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAuB;IACzD,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,G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,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,UAAkB;IACxC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC;YAClC,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;QAEH,EAAE,CAAC,QAAQ,CACT,iDAAiD,UAAU,0CAA0C,EACrG,CAAC,MAAM,EAAE,EAAE;YACT,EAAE,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,KAAK,KAAK,CAAC;YAC/F,OAAO,CAAC,SAAS,CAAC,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Argv } from 'yargs';
|
|
2
|
+
import { GlobalOptions } from '../../globalOptions.js';
|
|
3
|
+
export interface StatusCommandArgs extends GlobalOptions {
|
|
2
4
|
name?: string;
|
|
3
|
-
config?: string;
|
|
4
5
|
verbose?: boolean;
|
|
5
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* Build the status command configuration
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildStatusCommand(yargs: Argv): Argv<{
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
verbose: boolean;
|
|
14
|
+
}>;
|
|
6
15
|
/**
|
|
7
16
|
* Show status and details of MCP servers
|
|
8
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/status.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/commands/mcp/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKvD,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,IAAI;;;;GAiB7C;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkB1E"}
|