Structural similarity-based code filter. Stops malicious code pattern reaching execution tools.
A structural similarity-based code security filter for MCP (Model Context Protocol). Blocks dangerous code patterns before they reach execution tools by comparing code structure against a blacklist of known-bad patterns. 1. Parse code to Concrete Syntax Tree (CST) using tree-sitter 2. Normalize by stripping identifiers and literals → structural skeleton 3. Embed the normalized structure via…
Verification confirms publisher identity (repo ownership), not code safety. The security scan covers known CVEs and suspicious install scripts — it cannot prove the absence of malicious code.
A structural similarity-based code security filter for MCP (Model Context Protocol). Blocks dangerous code patterns before they reach execution tools by comparing code structure against a blacklist of known-bad patterns. 1. Parse code to Concrete Syntax Tree (CST) using tree-sitter 2. Normalize by stripping identifiers and literals → structural skeleton 3. Embed the normalized structure via Ollama 4. Compare against blacklisted patterns in ChromaDB 5. Block if similarity exceeds threshold,…