MCP, MCP server
Stata Code
Agent-native Stata bridge for Claude Code.
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_UNCONFIRMED OBFUSCATION_ENCODED_BLOB
Why this grade
- PERMISSION_DELETE_FILES Low
Contains a call that can delete files.
branding/logo-v5/build.py, line 156
subprocess.run( - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
AGENTS.md, line 94
curl -s -o /dev/null -w "%{http_code}\n" https://pypi.org/pypi/stata-code/X.Y.Z/json - SECRETS_PATH_UNCONFIRMED Low
The Secrets check reports a credential or environment file, but no quoted line shows a recognisable path.
vscode/src/serverLaunch.test.ts, line 45
candidates[0].env?.PYTHONPATH, - OBFUSCATION_ENCODED_BLOB Low
Contains a long base64 shaped string in a file that should be readable.
vscode/test-fixtures/dta/edit_cases.json, line 602
"1": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
branding/logo-v5/build.py, line 156
subprocess.run(
branding/logo-v5/build.py, line 187
subprocess.run(["rsvg-convert", "-w", str(w), "-o", str(OUT / n), str(OUT / "favicon.svg")], check=True)
branding/logo-v5/build.py, line 188
subprocess.run(["rsvg-convert", "-w", "180", "-o", str(OUT / "apple-touch-icon-180.png"), str(OUT / "mark.svg")], check=True)
Show more
scripts/build_standalone.py, line 68
return subprocess.call(argv, cwd=str(REPO_ROOT))
stata_code/core/_pool.py, line 380
def _ensure_stdout_pump(proc: subprocess.Popen[str]) -> _StdoutPump:
stata_code/core/_pool.py, line 432
self._proc: subprocess.Popen[str] | None = None
stata_code/core/_pool.py, line 439
def _spawn(self) -> subprocess.Popen[str]:
stata_code/core/_pool.py, line 443
proc = subprocess.Popen(
vscode/src/dtaEditor.test.ts, line 133
fs.rmSync(dir, { recursive: true, force: true });
vscode/src/dtaEditor.ts, line 641
await fs.unlink(target.fsPath).catch(() => undefined);
vscode/src/dtaEditor.ts, line 700
await fs.unlink(file);
vscode/src/dtaWriter.test.ts, line 42
return run(file).finally(() => fs.rmSync(dir, { recursive: true, force: true }));
vscode/src/dtaWriter.ts, line 609
await fs.rm(temp, { force: true });
vscode/src/webviewHarness.ts, line 165
fs.rmSync(this.profile, { recursive: true, force: true, maxRetries: 5 });
vscode/src/webviewHarness.ts, line 395
fs.rmSync(dir, { recursive: true, force: 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
AGENTS.md, line 94
curl -s -o /dev/null -w "%{http_code}\n" https://pypi.org/pypi/stata-code/X.Y.Z/json
AGENTS.md, line 97
curl -s -H "Accept: application/vnd.pypi.simple.v1+json" \
CLAUDE.md, line 95
curl -s -o /dev/null -w "%{http_code}\n" https://pypi.org/pypi/stata-code/X.Y.Z/json
Show more
CLAUDE.md, line 98
curl -s -H "Accept: application/vnd.pypi.simple.v1+json" \
vscode/src/webviewHarness.ts, line 131
const socket = new WebSocket(endpoint);
Secrets
Concern
reads a credential or environment file.
SECRETS_PATH_UNCONFIRMED
vscode/src/serverLaunch.test.ts, line 45
candidates[0].env?.PYTHONPATH,
vscode/src/serverLaunch.test.ts, line 48
assert.equal(candidates[0].env?.STATA_HOME, "/Applications/StataNow");
vscode/src/serverLaunch.test.ts, line 49
assert.equal(candidates[0].env?.PYSTATA_PATH, "/Applications/StataNow/utilities");
Show more
vscode/src/serverLaunch.test.ts, line 50
assert.equal(candidates[0].env?.API_TOKEN, undefined);
.gitignore, line 150
# Environments
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Concern
contains an encoded blob in a file that should be readable.
OBFUSCATION_ENCODED_BLOB
vscode/test-fixtures/dta/edit_cases.json, line 602
"1": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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 f892456a3d0b. can delete files. can reach a host that is not written as a fixed address. reads a credential or environment file. contains an encoded blob in a file that should be readable.
Date and source
Date checked:
github.com
Commit graded: f892456a3d0b035293e583fd47f09c8696559a97
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.