Skip to content

Chore/Custom MCP Validation#4996

Merged
HenryHengZJ merged 1 commit intomainfrom
chore/Custom-MCP-Validation
Jul 31, 2025
Merged

Chore/Custom MCP Validation#4996
HenryHengZJ merged 1 commit intomainfrom
chore/Custom-MCP-Validation

Conversation

@HenryHengZJ
Copy link
Copy Markdown
Contributor

@HenryHengZJ HenryHengZJ commented Jul 31, 2025

  • Updated validateMCPServerSecurity to only allow whitelisted commands, removing the extensive list of dangerous commands.
  • Introduced validateArgsForLocalFileAccess to check for potential local file access patterns and null byte injections.
  • Updated Supergateway_MCP to utilize the new argument validation function.
  • Added a warning in CustomMCP regarding upcoming changes to Remote MCP support.

…nds, removing the extensive list of dangerous commands.

- Introduced `validateArgsForLocalFileAccess` to check for potential local file access patterns and null byte injections.
- Updated `Supergateway_MCP` to utilize the new argument validation function.
- Added a warning in `CustomMCP` regarding upcoming changes to Remote MCP support.
@HenryHengZJ HenryHengZJ merged commit d29db16 into main Jul 31, 2025
2 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.

1 participant