| Version | Supported |
|---|---|
| 1.0.x | ✅ |
Dev Brain is a read-only analysis tool designed for trusted development environments. It operates as an MCP (Model Context Protocol) server and has the following security characteristics:
- Analyzes Python source code using safe AST parsing
- Generates test suggestions and documentation recommendations
- Detects security vulnerabilities in analyzed code
- Returns JSON responses with analysis results
- Execute arbitrary code (
eval,exec, subprocess calls) - Write, modify, or delete files
- Make network requests
- Store or persist any data
- Access databases or external services
The smart_tests_generate tool accepts file paths and reads Python files for analysis. This tool:
- Only reads
.pyfiles - Uses safe
ast.parse()for code analysis (no execution) - Does not write or modify any files
- Returns only the filename (not full path) in responses
Important: This tool has read access to any Python file accessible to the user running the MCP server. It is designed for use in trusted development environments where the MCP client is also trusted.
If you discover a security vulnerability, please report it by:
- DO NOT open a public GitHub issue
- Email the maintainer directly or use GitHub's private vulnerability reporting
- Include:
- Description of the vulnerability
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
We aim to respond to security reports within 48 hours and will work with you to understand and address the issue.
- Run in trusted environments: Only use Dev Brain in development environments with trusted MCP clients
- Review analyzed code: The tool analyzes any Python file you point it to
- Keep dependencies updated: Run
pip install --upgrade dev-brainregularly - Check permissions: Ensure the MCP server runs with appropriate file system permissions
Dev Brain has minimal dependencies to reduce attack surface:
mcp>=1.0.0- Official MCP server framework
Development dependencies (not required for runtime):
pytest- Testing frameworkpytest-asyncio- Async test supportpytest-cov- Coverage reporting