MCP, MCP server
Songgeneration Mcp
Local open-weight music generation: Tencent SG2/LeVo2 via Studio, plus Lyria, ACE-Step, MusicGen and Stable Audio backends.
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.
scripts/cua-smoke.py, line 288
subprocess.run(["taskkill", "/F", "/IM", f"{name}.exe", "/T"], capture_output=True, timeout=10) - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
scripts/cua-smoke.py, line 335
resp = urllib.request.urlopen(f"{BACKEND_URL}{HEALTH_PATH}", timeout=5) - SECRETS_PATH_DOTENV Low
Mentions a .env file.
native/build.ps1, line 70
# Bundle .env into installer if it exists (survives reinstall, no manual copy needed) - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
src/songgeneration_mcp/acestep.py, line 35
self.api_key = os.getenv("ACESTEP_API_KEY") or "" - 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
scripts/cua-smoke.py, line 288
subprocess.run(["taskkill", "/F", "/IM", f"{name}.exe", "/T"], capture_output=True, timeout=10)
scripts/cua-smoke.py, line 309
r = subprocess.run([installer, "/S"], capture_output=True, timeout=120)
scripts/cua-smoke.py, line 331
subprocess.Popen([exe], cwd=INSTALL_DIR, env=env)
Show more
scripts/cua-smoke.py, line 725
r = subprocess.run([uninstaller, "/S"], capture_output=True, timeout=60)
scripts/cua-smoke.py, line 728
remaining = subprocess.run(
scripts/cua-webapp-test.py, line 110
subprocess.run( # noqa: S603 - fixed literal command array, local test script
scripts/cua-webapp-test.py, line 117
os.remove(path)
scripts/cua-webapp-test.py, line 138
subprocess.Popen( # noqa: S603 - fixed literal command array, local test script
scripts/cua-webapp-test.py, line 163
subprocess.Popen( # noqa: S603 - fixed literal command array, local test script
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 335
resp = urllib.request.urlopen(f"{BACKEND_URL}{HEALTH_PATH}", timeout=5)
scripts/cua-smoke.py, line 405
resp = urllib.request.urlopen(f"{BACKEND_URL}{FEATURE_PATH}", timeout=5)
scripts/cua-smoke.py, line 419
resp = urllib.request.urlopen(f"{BACKEND_URL}{DIAGNOSTICS_PATH}", timeout=5)
Show more
scripts/cua-smoke.py, line 630
with urllib.request.urlopen(req, timeout=5) as resp:
scripts/cua-smoke.py, line 665
with urllib.request.urlopen(req, timeout=5) as resp:
scripts/cua-webapp-test.py, line 183
r = urllib.request.urlopen(url, timeout=3) # noqa: S310 - localhost health poll from config
scripts/cua-webapp-test.py, line 203
r = urllib.request.urlopen(url, timeout=3)
scripts/cua-webapp-test.py, line 402
r = urllib.request.urlopen(f"{BACKEND_URL}/api/v1/diagnostics", timeout=5) # noqa: S310 - localhost diagnostics check
tools/_debug_studio_payload.py, line 15
r = httpx.post("http://127.0.0.1:10930/api/generate", json=sr, timeout=30)
web_sota/src/pages/quick.tsx, line 45
await fetch(`http://127.0.0.1:11116/api/v1/deck/${deck}/load`, {
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
native/build.ps1, line 70
# Bundle .env into installer if it exists (survives reinstall, no manual copy needed)
native/build.ps1, line 71
$envSrc = "$Root\.env"
src/songgeneration_mcp/acestep.py, line 35
self.api_key = os.getenv("ACESTEP_API_KEY") or ""
Show more
native/build.ps1, line 73
Copy-Item $envSrc "$ResourceDir\.env" -Force
native/build.ps1, line 74
Write-Host " Bundled .env ($((Get-Item $envSrc).Length) bytes)" -ForegroundColor Green
native/build.ps1, line 76
Write-Host " WARNING: No .env at repo root - create one from .env.example for credentials" -ForegroundColor DarkYellow
native/build.ps1, line 77
Set-Content -Path "$ResourceDir\.env" -Value "# Empty - configure via Settings page" -Encoding utf8
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")
src/songgeneration_mcp/server.py, line 218
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS"):
src/songgeneration_mcp/server.py, line 281
token = settings.get("hf_token") or os.environ.get("HF_TOKEN")
src/songgeneration_mcp/server.py, line 485
hf_token = load_settings().get("hf_token") or os.environ.get("HF_TOKEN") or None
src/songgeneration_mcp/server.py, line 1071
"hf_token_configured": bool(settings.get("hf_token") or os.environ.get("HF_TOKEN")),
src/songgeneration_mcp/server.py, line 1152
"hf_token_configured": bool(settings.get("hf_token") or os.environ.get("HF_TOKEN")),
src/songgeneration_mcp/settings_store.py, line 73
env_hf_token = os.getenv("HF_TOKEN", "").strip()
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 baeab72256c3. 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: baeab72256c32d640a3f8c66b78bcb7b97efd72e
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.