Commit 31aebdf
committed
fix(mcp): clarify ASCII-only requirement in server name validation error
Fixes bounty issue #1626
The validate_server_name function uses is_ascii_alphanumeric() but the error
message only mentioned 'letters, numbers' without specifying ASCII-only.
Users trying unicode names like 'test-日本語' received a generic error without
understanding why unicode characters were rejected.
Updated the error message to explicitly state 'ASCII letters a-z/A-Z,
digits 0-9' so users understand the limitation.1 parent 8f839ec commit 31aebdf
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
| |||
0 commit comments