ForeverVM

ทางการ

รัน Python ในแซนด์บ็อกซ์โค้ด

คุณทำอะไรได้บ้างด้วย Forever VM MCP?

  • Start a new Python REPL session — ask your assistant to create a fresh Python environment using create-python-repl and 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-repl and receive the output.
  • Chain multiple code executions in one session — reuse the same REPL ID across several run-python-in-repl calls to build up state, variables, or results incrementally.

เอกสาร

ForeverVM MCP Server

MCP Server สำหรับ ForeverVM ที่ช่วยให้ Claude สามารถรันโค้ดใน Python REPL ได้

เครื่องมือ

  1. create-python-repl
  • สร้าง Python REPL
  • ส่งคืน: ID ของ REPL ใหม่
  1. run-python-in-repl
    • รันโค้ดใน Python REPL
    • อินพุตที่จำเป็น:
      • code (string): โค้ดที่ Python REPL จะรัน
      • replId (string): ID ของ REPL ที่จะใช้รันโค้ด
    • ส่งคืน: ผลลัพธ์ของโค้ดที่รัน

การใช้งานกับ Claude Desktop

รันคำสั่งต่อไปนี้:

npx forevervm-mcp install --claude

สำหรับไคลเอนต์ MCP อื่นๆ ดูเอกสาร

การติดตั้งในเครื่อง (สำหรับการพัฒนาเท่านั้น)

ในไคลเอนต์ MCP ให้ตั้งค่าคำสั่งเป็น npm และอาร์กิวเมนต์เป็น:

["--prefix", "<path/to/this/directory>", "run", "start", "run"]