repocaster
by ivandon15
Overview
Automatically transforms existing GitHub repositories or local codebases, especially computational biology tools, into AI-accessible Model Context Protocol (MCP) servers.
Installation
python cast.py https://github.com/dauparas/ProteinMPNNEnvironment Variables
- OPENAI_API_KEY
- DEEPSEEK_API_KEY
- QWEN_API_KEY
Security Notes
The system heavily relies on `subprocess.run` to execute Python scripts from the target repository. While `subprocess.run` is used with a list (mitigating direct shell injection via arguments in `server.py`), the fundamental risk comes from the quality and safety of the target repository's scripts themselves, and the LLM's ability to correctly and safely interpret and expose arguments. Malicious input via the MCP interface could still potentially exploit vulnerabilities in the underlying target scripts if they perform unsafe operations (e.g., `os.system` or `subprocess.run(..., shell=True)` internally with untrusted input). The process inherently involves executing code from a cloned repository, which necessitates user vigilance over the source repository's trustworthiness.
Similar Servers
mcp-language-server
Serves as an MCP (Model Context Protocol) gateway, enabling LLMs to interact with Language Servers (LSPs) for codebase navigation, semantic analysis, and code editing operations.
git-mcp-server
A Model Context Protocol (MCP) server that provides Git-specific tools and resources for AI/LLM agents to interact with version control systems.
tenets
Provides intelligent, token-optimized code context and automatically injects guiding principles to AI coding assistants for enhanced understanding and consistent interactions.
code-graph-context
A Model Context Protocol (MCP) server that builds and queries a knowledge graph of TypeScript codebases in Neo4j, supporting semantic search, impact analysis, dead code detection, and multi-agent coordination through stigmergy.