Skip to content

Commit 13efffa

Browse files
Release 0.7.2
Add three convenience MCP tools (install_package, search_log, inspect_data), an on-demand Stata reference library under skills/stata-code/references/, and a deterministic skill-zip packaging script. Bump all release version literals 0.7.1 → 0.7.2 and refresh the plugin tool count (15 → 18). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent bb4c0da commit 13efffa

8 files changed

Lines changed: 37 additions & 10 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
},
77
"metadata": {
88
"description": "Agent-native Stata bridge — MCP server, Jupyter kernel, and VS Code extension sharing one v1.0 result schema.",
9-
"version": "0.7.1"
9+
"version": "0.7.2"
1010
},
1111
"plugins": [
1212
{
1313
"name": "stata-code",
1414
"source": ".",
1515
"description": "Run Stata code from Claude Code through the stata-code MCP server (typed errors, token-economy logs/graphs, multi-session) and an agent skill that teaches Claude the result schema and Stata workflows.",
16-
"version": "0.7.1",
16+
"version": "0.7.2",
1717
"author": {
1818
"name": "Bryce Wang",
1919
"email": "brycewang@stanford.edu",

.claude-plugin/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stata-code",
3-
"version": "0.7.1",
4-
"description": "Agent-native Stata bridge for Claude Code. Bundles an MCP server (15 tools, token-economy result schema, typed errors, multi-session) and an agent skill that teaches Claude how to call it idiomatically.",
3+
"version": "0.7.2",
4+
"description": "Agent-native Stata bridge for Claude Code. Bundles an MCP server (18 tools, token-economy result schema, typed errors, multi-session) and an agent skill with an on-demand Stata reference library that teaches Claude how to call it idiomatically.",
55
"author": {
66
"name": "Bryce Wang",
77
"email": "brycewang@stanford.edu",

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ to semver-major.minor for the result schema (see `SCHEMA.md` §6).
66

77
## Unreleased
88

9+
## 0.7.2 — 2026-06-20
10+
11+
### Added
12+
13+
- **Three convenience MCP tools** raise the tool surface from 15 to 18:
14+
- `install_package(name, source?, url?, replace?, session_id?)` — installs a
15+
community package via `ssc install` / `net install` without the agent
16+
having to remember the syntax, then verifies it resolves with `which`.
17+
Package names and URLs are validated to keep them out of the generated
18+
command line; failures surface the typed `error` block (e.g. `network`).
19+
- `search_log(ref, pattern, is_regex?, ignore_case?, context?, max_matches?)`
20+
— greps within a truncated `log://` payload and returns only the matching
21+
lines (with optional context), so a long log can be inspected without
22+
pulling the whole transcript back through `get_log`.
23+
- `inspect_data(varlist?, detail?, session_id?)` — runs `describe` +
24+
`codebook` and returns the structured `dataset` block plus the codebook
25+
log: a one-call "what's in this dataset" the agent doesn't have to spell out.
26+
- **On-demand Stata reference library** under `skills/stata-code/references/`
27+
(~4,200 lines): topic files for core syntax, data management, econometrics,
28+
causal inference, panel/time series, graphics, and table export; load-bearing
29+
`error-codes.md` (the full `rc → kind → fix` table + self-repair loop, aligned
30+
with the typed-error taxonomy) and `defensive-coding.md`; and per-package notes
31+
for `reghdfe`, `coefplot`, `estout`, and `gtools`. `SKILL.md` gained a routing
32+
table (read 1–3 files on demand) and a live-vs-offline execution-mode section.
33+
- **`scripts/build_skill_zip.py`** packages the skill into a deterministic
34+
`build/stata-code-skill.zip` for upload as Claude.ai project knowledge.
35+
936
## 0.7.1 — 2026-06-19
1037

1138
### Fixed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "stata-code"
7-
version = "0.7.1"
7+
version = "0.7.2"
88
description = "Agent-native Stata bridge — one core, multiple frontends (MCP, Jupyter, VSCode)"
99
readme = "README.md"
1010
license = "MIT"

stata_code/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def is_available() -> bool:
174174
return True
175175

176176

177-
__version__ = "0.7.1"
177+
__version__ = "0.7.2"
178178

179179
__all__ = [
180180
# Primary entry points

stata_code/mcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
)
9999
from stata_code.core.schema import RunResult
100100

101-
__version__ = "0.7.1"
101+
__version__ = "0.7.2"
102102

103103
SERVER_INSTRUCTIONS = (
104104
"Use stata-code for running and inspecting Stata code. Prefer structuredContent "

vscode/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "stata-code-vscode",
33
"displayName": "stata-code",
44
"description": "Run Stata code from VSCode through the agent-native stata-code MCP server.",
5-
"version": "0.7.1",
5+
"version": "0.7.2",
66
"publisher": "brycewang-stanford",
77
"license": "MIT",
88
"icon": "icon.png",

0 commit comments

Comments
 (0)