-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcontainer_shell_base.yaml
More file actions
40 lines (34 loc) · 1.45 KB
/
container_shell_base.yaml
File metadata and controls
40 lines (34 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# SPDX-FileCopyrightText: GitHub, Inc.
# SPDX-License-Identifier: MIT
seclab-taskflow-agent:
filetype: toolbox
version: "1.0"
server_params:
kind: stdio
command: python
args: ["-m", "seclab_taskflows.mcp_servers.container_shell"]
env:
CONTAINER_IMAGE: "seclab-shell-base:latest"
CONTAINER_WORKSPACE: "{{ env('CONTAINER_WORKSPACE', required=False) }}"
CONTAINER_TIMEOUT: "{{ env('CONTAINER_TIMEOUT', '30') }}"
CONTAINER_PERSIST: "{{ env('CONTAINER_PERSIST', required=False) }}"
CONTAINER_PERSIST_KEY: "{{ env('CONTAINER_PERSIST_KEY', required=False) }}"
LOG_DIR: "{{ env('LOG_DIR') }}"
confirm:
- shell_exec
server_prompt: |
## Container Shell (base)
You have access to an isolated Docker container. Use `shell_exec` to run commands.
The working directory is /workspace (mapped from the host workspace if configured).
Available tools in this container:
- bash, coreutils (ls, cat, grep, find, sed, awk, sort, uniq, wc, ...)
- file — identify file type by magic bytes
- strings — extract printable strings from binary files
- objdump — disassemble and dump object/binary files
- readelf — display ELF binary structure
- nm — list symbols from object files
- xxd / hexdump — hex inspection
- python3 — scripting
- curl / wget — HTTP requests
- git — version control
All commands run inside the container. Output includes stdout, stderr, and exit code.