
一个兼容 VS Code 的扩展(Cursor、Windsurf、Antigravity 等),允许直接从编辑器运行 Stata 代码。使 AI 代理能够直接与 Stata 交互。
概览
由伦敦政治经济学院托马斯·蒙克建造。 在 VS Code 内执行代码、查看输出和查看图表。无需切换窗口,无需在 do-file 编辑器和 AI 聊天之间复制粘贴。 :一个现代的 Stata IDE——自动补全、语法高亮、多光标,以及一个可以直接执行命令、检查变量和调试错误的 AI 助手。 :合著者在他们使用的其他代码相同的环境中工作。共享编辑器设置、一致的格式,以及理解你项目结构的AI助手。 学生学习Stata时,使用他们将用来处理其他所有操作的工具——内联错误、集成终端以及能够解释错误原因的人工智能。 通过在扩展视图中搜索“,直接从市场列表安装。 - VS Code 市场:tmonk.stata-workbench- 开放 VSX:tmonk/stata-workbench 离线备份:1. 从发布页面下载最新的扩展名 .vsix。2.
概述(AI 翻译)
Stata Workbench 是用于 Stata 开发的统一代理工具包。该工具包赋予 AI 代理对 Stata 的原生控制——执行命令、检查变量、导出图表,并比原生 Stata 更快更可靠地构建。作为 VS Code 扩展(Cursor、Windsurf、Antigravity)构建,使您的代理能在编辑器内运行。由 mcp-stata 驱动。曾被新闻报道。
由伦敦政治经济学院托马斯·蒙克建造。
为什么要用这个?
运行Stata时不离开编辑器。 在VS Code内执行代码、查看输出和查看图表。无需切换窗口,无需在do文件编辑器和AI聊天之间复制粘贴。
适合个人工作:一个现代的Stata集成环境——自动补全、语法高亮、多光标,以及一个AI助手,可以直接执行命令、检查变量并调试错误。
用于协作:合著者在他们用来处理其他代码的同一环境中工作。共享编辑器设置、统一的格式,以及理解你项目结构的AI助手。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Stata Workbench
Stata Workbench is unified agentic toolkit for Stata development. The toolkit gives AI agents native control over Stata - run commands, inspect variables, export graphs, and build more quickly and reliably than native Stata alone. Built as a VS Code extension (Cursor, Windsurf, Antigravity), so your agent works inside your editor. Powered by mcp-stata. Featured in News.
Built by Thomas Monk, London School of Economics.
Why use this?
Run Stata without leaving your editor. Execute code, see output, and view graphs - all within VS Code. No switching windows, no copying and pasting between your do-file editor and an AI chat.
For solo work: A modern IDE for Stata—autocomplete, syntax highlighting, multiple cursors, and an AI assistant that can run commands, inspect your variables, and debug errors directly.
For collaboration: Co-authors work in the same environment they use for other code. Shared editor settings, consistent formatting, and AI assistants that understand your project structure.
For teaching: Students learn Stata with the same tools they’ll use for everything else - inline errors, an integrated terminal, and an AI that can explain what went wrong.
Installation
Install directly from the marketplace listings by searching for Stata Workbench in the Extensions view.
安装
uvx --refresh --refresh-package mcp-stata --from mcp-stata@latest mcp-stata