ForeverVM
官方在程式碼沙盒中執行 Python。
你可以用 Forever VM MCP 做什麼?
- Start a new Python REPL session — ask your assistant to create a fresh Python environment using
create-python-repland get back its session ID. - Run Python code in an existing REPL — provide a REPL ID and code snippet to execute via
run-python-in-repland receive the output. - Chain multiple code executions in one session — reuse the same REPL ID across several
run-python-in-replcalls to build up state, variables, or results incrementally.
文件
ForeverVM MCP 伺服器
適用於 ForeverVM 的 MCP 伺服器,讓 Claude 能夠在 Python REPL 中執行程式碼。
工具
create-python-repl
- 建立一個 Python REPL。
- 回傳值:新 REPL 的 ID。
run-python-in-repl- 在 Python REPL 中執行程式碼。
- 必要輸入:
code(字串):Python REPL 將執行的程式碼。replId(字串):要執行程式碼的 REPL ID。
- 回傳值:執行程式碼的結果。
與 Claude Desktop 搭配使用
執行以下指令:
npx forevervm-mcp install --claude
對於其他 MCP 客戶端,請參閱文件。
本機安裝(僅供開發使用)
在 MCP 客戶端中,將指令設為 npm,並將參數設為:
["--prefix", "<path/to/this/directory>", "run", "start", "run"]