Skip to content

fix(mcp): reject empty env and header names#29

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/mcp-validate-empty-names
Jul 19, 2026
Merged

fix(mcp): reject empty env and header names#29
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/mcp-validate-empty-names

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • reject /mcp --env =VALUE before it becomes an empty environment variable name
  • reject /mcp --header values without a Name: Value pair or with an empty header name
  • keep empty env values such as EMPTY= valid

Verification

  • node --test test\mcp.test.mjs
  • npm test

@ralyodio
ralyodio merged commit 54cc356 into moshcoder:main Jul 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants