Is there a way to disable JAN's ability to run terminal commands? #9370
|
I can't figure out which MCP tool allows this terminal command stuff to happen. I do want JAN to be able to read/write files in the directory I have allowed, but I don't want it to be able to execute seemingly arbitrary commands like echo or date. What do I tweak to fine tune this behavior? |
Replies: 1 comment 2 replies
|
It isn't one of your MCP tools. Besides the MCP servers you add, Jan's main chat has one built-in tool: a sandboxed Until recently there was no way to turn it off (#9222). Jan 0.8.7 (released 20 October) adds a switch for it (#9235):
With the switch off, the shell tool isn't offered to the model at all, and neither is the part of the system prompt that describes it. It applies from the next message without a restart, and the setting is kept after you relaunch. Your filesystem MCP server isn't affected, so reading and writing files in the directory you allowed keeps working. Notes:
|
It isn't one of your MCP tools. Besides the MCP servers you add, Jan's main chat has one built-in tool: a sandboxed
shell, with no network access, writes only inside the chat's own workspace, and no access to your home folder. That's what runsechoanddate.Until recently there was no way to turn it off (#9222). Jan 0.8.7 (released 20 October) adds a switch for it (#9235):
With the switch off, the shell tool isn't offered to the model at all, and neither is the part of the system prompt that describes it. It applies from the next message without a restart, and th…