Repository navigation
feat(upstream): edit a stdio server's command and arguments in the Web UI and CLI - #2026
Merged
Merged
Conversation
…b UI and CLI
PATCH /api/v1/servers/{id} already accepted `command` and `args`, but neither
the Web UI nor `mcpproxy upstream patch` offered them, so changing a command
meant a raw REST call, a hand-edited config file, or removing and re-adding
the server.
Web UI: the Process card on the server Configuration tab has an Edit button.
The command is one field and the arguments are a text box with one argument
per line. Only what changed is sent, so a masked credential the user did not
touch is never echoed back; a refusal from the backend stays beside the
fields and names the argument line.
CLI: `mcpproxy upstream patch <name>` gains `--command`, `--arg` (repeatable,
replaces the list), `--clear-args`, and `-- command args...` to replace the
whole command line.
Closes #2008
- CLI: a dash-leading server name behind `--` keeps working; the command is stored as given instead of trimmed; docs name the right read command. - Web UI: changes are judged against a snapshot taken when the editor opened, so an untouched argument list is never re-parsed and sent, a command line changed elsewhere is not overwritten, and a draft is dropped when the view moves to another server. Argument lists that one-per-line cannot represent are left to the CLI, and a refused argument is named by its text-box line.
Deploying mcpproxy-docs with
|
| Latest commit: |
d8e7905
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d7f2620f.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-2008-edit-command-args.mcpproxy-docs.pages.dev |
The fields stay disabled while a save is in flight, so an edit made after submitting is not lost when the editor closes. A save that fails after the view moved to another server is reported as a toast, not as an error in the other server's editor.
…tion Two different credentials render as the same mask, so comparing displayed values could miss an argument rotated elsewhere while the editor was open. The committed generation and incarnation now decide; the values still cover a core that does not report them.
Blank lines and spaces around a line are dropped on purpose (a stray trailing space is far more common than an intended one). The hint now says so and points to the CLI for the arguments the box cannot express.
Dumbris
enabled auto-merge (squash)
November 24, 2026 06:22
1 of 2 tasks
buildUpstreamPatchBody builds a PATCH request from what the operator typed; it reads no stored config, so it is not a read door.
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 45347019988 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Summary
PATCH /api/v1/servers/{id}already acceptedcommandandargs, but neither the Web UI normcpproxy upstream patchoffered them. Changing a stdio server's command meant a raw REST call, a hand-edited config file, or removing and re-adding the server.Closes #2008
Web UI
The Process card on the server Configuration tab has an Edit button: one field for the command, and a text box with one argument per line.
argsreplaces the whole list, so a changed list is sent complete.CLI
mcpproxy upstream patch <name>gains:-- command [args...]--command PROGRAM--arg VALUE(repeatable)--clear-argsThe existing
--header,--envand--init-timeoutflags behave as before; the body is now built by a pure function (buildUpstreamPatchBody) that the tests call directly. A dash-leading server name behind--keeps its old meaning.Notes
CheckArgvMaskEcho,CheckServerWriteMasks).Testing
go test ./cmd/mcpproxy/and./scripts/test-api-e2e.shfrontend:vue-tsc --noEmit,vitest run(newserver-detail-process-edit.spec.ts)golangci-lintv2 with.github/.golangci.yml