@@ -139,15 +139,23 @@ mcpproxy serve [flags]
139139Run health diagnostics:
140140
141141``` bash
142- mcpproxy doctor
142+ mcpproxy doctor [flags]
143143```
144144
145+ | Flag | Description | Default |
146+ | ------| -------------| ---------|
147+ | ` --output, -o ` | Output format: ` pretty ` , ` json ` | ` pretty ` |
148+ | ` --log-level, -l ` | Log level | ` warn ` |
149+ | ` --config, -c ` | Path to config file | auto-detect |
150+
145151Checks for:
146152- Upstream server connection errors
147153- OAuth authentication requirements
148154- Missing secrets
149155- Runtime warnings
150156- Docker isolation status
157+ - Tools pending quarantine approval (pending/changed counts per server)
158+ - Security features status (routing mode, sensitive data detection)
151159
152160## Upstream Management
153161
@@ -185,6 +193,54 @@ mcpproxy upstream restart <server-name>
185193mcpproxy upstream restart --all
186194```
187195
196+ ### upstream inspect
197+
198+ Inspect tool approval status for a server (tool-level quarantine):
199+
200+ ``` bash
201+ mcpproxy upstream inspect < server-name> [flags]
202+ ```
203+
204+ | Flag | Description | Default |
205+ | ------| -------------| ---------|
206+ | ` --tool ` | Inspect a specific tool by name | all tools |
207+ | ` --output, -o ` | Output format: table, json | ` table ` |
208+
209+ ** Examples:**
210+
211+ ``` bash
212+ # Show all tool approvals for a server
213+ mcpproxy upstream inspect github-server
214+
215+ # Inspect a specific tool (shows diff if changed)
216+ mcpproxy upstream inspect github-server --tool create_issue
217+
218+ # JSON output for scripting
219+ mcpproxy upstream inspect github-server --output=json
220+ ```
221+
222+ See [ Tool Quarantine] ( /features/tool-quarantine ) for details.
223+
224+ ### upstream approve
225+
226+ Approve quarantined tools for a server:
227+
228+ ``` bash
229+ mcpproxy upstream approve < server-name> [tool-names...]
230+ ```
231+
232+ Without specific tool names, approves all pending/changed tools.
233+
234+ ** Examples:**
235+
236+ ``` bash
237+ # Approve all pending/changed tools
238+ mcpproxy upstream approve github-server
239+
240+ # Approve specific tools
241+ mcpproxy upstream approve github-server create_issue list_repos
242+ ```
243+
188244### upstream enable/disable
189245
190246Enable or disable a server:
@@ -344,24 +400,32 @@ mcpproxy call tool-destructive --tool-name=github:delete_repo --json_args='{"rep
344400
345401### code exec
346402
347- Execute JavaScript code:
403+ Execute JavaScript or TypeScript code:
348404
349405``` bash
350406mcpproxy code exec [flags]
351407```
352408
353409| Flag | Description | Default |
354410| ------| -------------| ---------|
355- | ` --code ` | JavaScript code to execute | - |
356- | ` --file ` | Path to JavaScript file (alternative to --code) | - |
411+ | ` --code ` | JavaScript or TypeScript code to execute | - |
412+ | ` --file ` | Path to JS/TS file (alternative to --code) | - |
413+ | ` --language ` | Source code language: ` javascript ` , ` typescript ` | ` javascript ` |
357414| ` --input ` | JSON input data | ` {} ` |
358415| ` --input-file ` | Path to JSON file containing input data | - |
359416| ` --max-tool-calls ` | Maximum tool calls (0 = unlimited) | ` 0 ` |
360417| ` --allowed-servers ` | Comma-separated list of allowed servers | - |
361418
362- ** Example :**
419+ ** Examples :**
363420``` bash
421+ # JavaScript (default)
364422mcpproxy code exec --code=" ({ result: input.value * 2 })" --input=' {"value": 21}'
423+
424+ # TypeScript with type annotations
425+ mcpproxy code exec --language typescript --code=" const x: number = 42; ({ result: x })"
426+
427+ # TypeScript from file
428+ mcpproxy code exec --language typescript --file=script.ts --input-file=params.json
365429```
366430
367431See [ Code Execution] ( /features/code-execution ) for detailed documentation.
0 commit comments