feat(cli): arctl run --inspector + working --watch for MCP#499
Merged
Conversation
Signed-off-by: Kristy Tian <kristy.tian@solo.io>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an --inspector flag to arctl run to optionally launch the MCP Inspector alongside an MCP server run, with strict flag/kind validation and test coverage.
Changes:
- Added
--inspectorflag toarctl run, including symmetric validation with--no-chatbased on project kind. - Implemented a small
internal/cli/declarative/inspectorhelper to spawnnpx @modelcontextprotocol/inspector. - Added unit tests for the new validation behavior and dry-run narration.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| internal/cli/declarative/run.go | Adds the --inspector flag, validates flag applicability by framework type, and launches/kills the Inspector subprocess. |
| internal/cli/declarative/run_test.go | Adds tests for --inspector/--no-chat kind validation and dry-run Inspector URL narration. |
| internal/cli/declarative/inspector/inspector.go | Introduces a wrapper to start MCP Inspector via npx with test-injectable process creation/start. |
| internal/cli/declarative/inspector/inspector_test.go | Tests argv construction and error propagation for Inspector launch. |
--inspector flag to arctl run
josh-pritchard
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Makes
arctl run --watchwork for MCP servers, composes with--inspector, and adds a signpost on agent--watch.--inspectorlaunches MCP Inspector against the local MCP; retries until ready. Errors on agent projects.--watchfor MCP: fixes<no value>template render; names the container so restartsdocker rm -fcleanly instead of leaking ports.--watch --inspectorcomposes — Inspector reconnects across container restarts.arctl run <agent> --watchprints where the agent lives and how to open chat in another terminal (suppressed with--no-chat).cmd.Context()plumbed through so Ctrl-C cancels the watch loop cleanly.Change Type
/kind feature
/kind fix
Changelog
Additional Notes