You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix: refuse input the API cannot answer in the shared client (#7)
* fix: refuse input the API cannot answer in the shared client
The MCP tools skipped the CLI's input checks, so an empty keyword, an
empty TLD, or an empty domain reached Namecheap. A comma in the search
keyword also bypassed the 50-domain limit. The shared client now refuses
these before any request, and the CLI reports a bad keyword as a usage
error so it keeps exit code 2.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test: refuse a domain containing a comma
Removing only the comma half of the checkDomains guard left the suite
green. A domain like "a,b.com" would split into two names in the
comma-delimited DomainList.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>