server_file_read
Reads a text file from a Docker host over SSH or locally while hiding secret values and truncating oversized files for safe inspection.
Instructions
Read a text file on the Docker host. Secret values are hidden.
Files that hold secrets (.env, *.env, keys, credentials) are never shown. Big files are cut (SERVER_MCP_MAX_FILE_KB, default 1024 KB).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "server_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| path | Yes | ||
| as_root | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |