You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.server.tool('container_files_list','List working directory file tree. This just reads the contents of the current working directory',{},async({})=>{
108
110
// Begin workaround using container read rather than ls:
'Read a specific file or directory. Use this tool if you would like to read files or display them to the user. This allow you to get a displayable image for the user if there is an image file.',
Copy file name to clipboardExpand all lines: apps/sandbox-container/server/prompts.ts
+5-13Lines changed: 5 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -6,28 +6,18 @@ The Container MCP Agent provides access to a sandboxed container environment. Th
6
6
The container is an Ubuntu 20.04 base image with the following packages installed:
7
7
- curl
8
8
- git
9
-
- htop
10
-
- vim
11
-
- wget
12
9
- net-tools
13
10
- build-essential
14
-
- nmap
15
-
- sudo
16
-
- ca-certificates
17
-
- lsb-release
18
11
- nodejs
19
12
- npm
20
13
- python3
21
14
- python3-pip
22
15
23
-
You also have the following python packages installed:
24
-
- matplotlib
25
-
- pandas
26
-
- numpy
16
+
If necessary, you may install additional packages.
27
17
28
18
You are given a working directory in which you can create or delete files and execute commands as described below.
29
19
30
-
If you're using python, ALWAYS use python3 instead of python. ALWAYS make sure to install dependencies, as they won't be installed ahead of time.
20
+
If you're using python, ALWAYS use \`python3\` instead of \`python\`. ALWAYS make sure to install dependencies, as they won't be installed ahead of time.
31
21
32
22
## Resources
33
23
@@ -45,7 +35,7 @@ AVOID manually reading or writing files using the \`container_exec\` tool. You s
45
35
46
36
## Tools
47
37
48
-
To manage container lifecycle, use the \`container_start\` and \`container_kill\` tools. If you run into errors where you can't connect to the container, attempt to kill and restart the container. If that doesn't work, the system is probably overloaded.
38
+
To manage container lifecycle, use the \`container_initialize\` tool. If you run into errors where you can't connect to the container, attempt to restart the container with the same \`container_initialize\` tool. If that doesn't work, the system is probably overloaded.
49
39
50
40
You can execute actions in the container using the \`container_exec\` tool. By default, stdout is returned back as a string.
51
41
To write a file, use the \`container_file_write\` tool. To delete a file, use the \`container_file_delete\` tool.
@@ -54,4 +44,6 @@ The \`container_files_list\` allows you to list file resources. Content is omitt
54
44
If you want to get the file contents of a file resource, use \`container_file_read\`, which will return the file contents.
55
45
56
46
If after calling a tool, you receive an error that a cloudchamber instance cannot be provided, just stop attempting to answer and request that the user attempt to try again later.
47
+
48
+
If you run into issues, do not attempt to retry after 3 tries unless the user prompts you to. Instead direct the user to report an issue at: https://github.com/cloudflare/mcp-server-cloudflare
0 commit comments