Repository navigation
fix: name username in the description of every tool that takes it - #49
Merged
Merged
Conversation
mcpproxy's capability.mismatch check flagged username on every tool that takes it as "a free-form data sink never explained in the description": the parameter's own description mentions an environment variable (its DEVICE_USERNAME fallback) and the tool description never named the parameter. Append a shared usernameGuidance sentence to the eight tool descriptions, saying what username is and that it falls back to DEVICE_USERNAME. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
mcpproxy (v0.73.0) flags
usernameon every tool that takes it withcapability.mismatch:The check treats a free-text parameter as a data sink when its own description contains a "harvest" phrase, such as "environment variable", and the tool description neither names the parameter nor mentions that phrase's noun. Our
usernamedescription ends "falls back to the DEVICE_USERNAME environment variable", and no tool description namedusername.This adds a shared
usernameGuidancesentence to the eight tool descriptions that takeusername:get_config,run_show_command,run_ping,run_traceroute,fortigate_list_vdoms,get_logs,list_log_unitsanddetect_platform:The tool description now explains the parameter, which is what the check asks for.
trust_host_keytakes nousernameand is unchanged.After upgrading, mcpproxy will see changed descriptions on these eight tools and may ask for them to be approved again.
Test plan
mainflagsusernameon 8 of 9 tools; this branch flags none, and no description has a double space where the sentences joingo test ./...golangci-lint run ./...: 0 issues🤖 Generated with Claude Code