Skip to content

fix: reject malformed --header values instead of dropping them - #44

Merged
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-malformed-header-e2f9
Sep 12, 2026
Merged

fix: reject malformed --header values instead of dropping them#44
royalpinto007 merged 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-malformed-header-e2f9

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

Malformed --header values (no colon, or empty name before :) now fail with a clear error and exit code 2 instead of being silently dropped.

Test plan

  • npm test — includes reject header without colon

Fixes #24

Throw when a --header argument has no colon or an empty name, so audits
cannot run unauthenticated due to a mistyped header.

Fixes AgentPostmortem#24
@royalpinto007
royalpinto007 merged commit dd26425 into AgentPostmortem:main Sep 12, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

And it's in. Thanks @sharadvc.

Contributions like this are what keep MCP-audit moving.

A star on the repo would mean a lot if this project is useful to you.

Happy to see more from you whenever you have the time.

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.

Malformed --header values are silently dropped

2 participants