@clinetools/code-sanitizer
v0.1.0
Published
Strip dangerous patterns from code before execution: eval(), exec(), system calls, network requests. Configurable allowlists.
Maintainers
Readme
Code Sanitizer
Strip dangerous patterns from code before execution: eval(), exec(), system calls, network requests. Configurable allowlists.
Quick Start
npx @clinetools/code-sanitizerSetup
1. Get your token
Sign up at clinetools.com and get your API token.
2. Set environment variable
export CLINETOOLS_TOKEN=ct_live_...3. Add to your MCP client
Claude Code
claude mcp add code-sanitizer -- npx @clinetools/code-sanitizerClaude Desktop / Cline
Add to your MCP settings JSON:
{
"mcpServers": {
"code-sanitizer": {
"command": "npx",
"args": ["@clinetools/code-sanitizer"],
"env": {
"CLINETOOLS_TOKEN": "ct_live_..."
}
}
}
}Links
License
MIT
