MCP, MCP server
Opencode Cli Mcp
Session context injection for opencode-cli-mcp (MCP server wrapping opencode serve)
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
PERMISSION_DELETE_FILES NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ OBFUSCATION_FILE_OVER_READ_CAP
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
api/routes/system.py, line 19
r = subprocess.run( - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
scripts/cua-smoke.py, line 351
resp = urllib.request.urlopen(f"{BACKEND_URL}{HEALTH_PATH}", timeout=5) - SECRETS_PATH_DOTENV Low
Mentions a .env file.
native/build.ps1, line 80
# Bundle .env.example (NOT .env - dev .env has personal API keys) - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
src/opencode_cli_mcp/client.py, line 30
password = os.environ.get("OPENCODE_SERVER_PASSWORD", "") - OBFUSCATION_FILE_OVER_READ_CAP Note
A file was over the read cap and was not fully read.
uv.lock, line 1
version = 1
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Concern
can delete files.
PERMISSION_DELETE_FILES
api/routes/system.py, line 19
r = subprocess.run(
scripts/cua-smoke.py, line 304
subprocess.run(["taskkill", "/F", "/IM", f"{name}.exe", "/T"], capture_output=True, timeout=10)
scripts/cua-smoke.py, line 325
r = subprocess.run([installer, "/S"], capture_output=True, timeout=120)
Show more
scripts/cua-smoke.py, line 347
subprocess.Popen([exe], cwd=INSTALL_DIR, env=env)
scripts/cua-smoke.py, line 797
r = subprocess.run([uninstaller, "/S"], capture_output=True, timeout=60)
scripts/cua-smoke.py, line 806
subprocess.run(
scripts/cua-webapp-test.py, line 111
subprocess.run( # noqa: S603 - fixed literal command array, local test script
scripts/cua-webapp-test.py, line 118
os.remove(path)
scripts/cua-webapp-test.py, line 139
subprocess.Popen( # noqa: S603 - fixed literal command array, local test script
src/opencode_cli_mcp/tools/mcpb_install.py, line 55
shutil.rmtree(tmp, ignore_errors=True)
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
scripts/cua-smoke.py, line 351
resp = urllib.request.urlopen(f"{BACKEND_URL}{HEALTH_PATH}", timeout=5)
scripts/cua-smoke.py, line 422
resp = urllib.request.urlopen(f"{BACKEND_URL}{FEATURE_PATH}", timeout=5)
scripts/cua-smoke.py, line 436
resp = urllib.request.urlopen(f"{BACKEND_URL}{DIAGNOSTICS_PATH}", timeout=5)
Show more
scripts/cua-smoke.py, line 702
with urllib.request.urlopen(req, timeout=5) as resp:
scripts/cua-smoke.py, line 737
with urllib.request.urlopen(req, timeout=5) as resp:
scripts/cua-webapp-test.py, line 184
r = urllib.request.urlopen(url, timeout=3) # noqa: S310 - localhost health poll from config
scripts/cua-webapp-test.py, line 204
r = urllib.request.urlopen(url, timeout=3)
scripts/cua-webapp-test.py, line 403
r = urllib.request.urlopen(f"{BACKEND_URL}/api/v1/diagnostics", timeout=5) # noqa: S310 - localhost diagnostics check
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
native/build.ps1, line 80
# Bundle .env.example (NOT .env - dev .env has personal API keys)
native/build.ps1, line 81
$envExample = "$Root\.env.example"
src/opencode_cli_mcp/client.py, line 30
password = os.environ.get("OPENCODE_SERVER_PASSWORD", "")
Show more
native/build.ps1, line 83
Copy-Item $envExample "$ResourceDir\.env.example" -Force
native/build.ps1, line 84
Write-Host " Bundled .env.example OK" -ForegroundColor Green
native/build.ps1, line 86
Write-Host " WARNING: .env.example not found at repo root" -ForegroundColor DarkYellow
native/src/backend.rs, line 141
.env(ENV_PORT, BACKEND_PORT.to_string())
native/src/backend.rs, line 142
.env(ENV_HOST, "127.0.0.1")
native/src/backend.rs, line 143
.env(ENV_TAURI, "1")
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Note
a file was over the read cap and was not fully read.
OBFUSCATION_FILE_OVER_READ_CAP
uv.lock, line 1
version = 1
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit 80fe427568b6. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file. a file was over the read cap and was not fully read.
Date and source
Date checked:
github.com
Commit graded: 80fe427568b674152976f3d624c66ba7a19b78ab
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.