Hacker News new | past | comments | ask | show | jobs | submit login

Code execution is okay, but soon runs into the problem of missing packages that it can't install.

Practically, sandboxing hasn't been super important for me. Running claude with mcp based shell access has been working fine for me, as long as you instruct it to use venv, temporary directory, etc.






Can it run ipython? Then you could use ipython magic to pip install things:

https://ipython.readthedocs.io/en/stable/interactive/magics....


Is there a guide on how to do that?

For building mcp server? The official docs do a great job

https://modelcontextprotocol.io/introduction

My own mcp server could be an inspiration on Mac. It's based on pexpect to enable repl session and has some tricks to prevent bad commands.

https://github.com/rusiaaman/wcgw

However, I recommend creating one with your own customised prompts and tools for maximum benefit.


I wrote a program that can do more or less the same thing, if you only care about the LLM running commands to help you do something:

https://github.com/skorokithakis/sysaidmin




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: