Pixeltable Developer
io.github.pixeltablev0.2.1更新于 Oct 11, 2026
Pixeltable MCP server for declarative multimodal tables, computed columns, and services.
概览
让助手在本地搭建、检查并运行 Pixeltable 应用,包括表、计算列、数据行与服务。
- 功能
- 这是一个本地 stdio 服务器,封装 pxt 命令行,让助手可以生成 app.py、把表应用到目录、插入和查看数据行、恢复失败的计算,并管理 HTTP 服务路由。工具覆盖目录检查、行数据、应用脚手架、模式生命周期(check、diff、update、prune)以及服务生命周期(check、diff、update、list、stop、prune)。读取类工具为只读,变更类工具声明写入与破坏性行为,prune 工具默认先做试运行。它还提供状态与目录资源,以及构建和调试提示词。
- 适用场景
- 适合在本地开发或运行 Pixeltable 应用时使用,让助手编辑 app.py、演进表模式、写入或查看数据行,并启动或停止服务。它是 beta 阶段的开发者工具,更适合可信的本地开发,而非生产环境管理。
- 运行要求
- 以 uvx 从 PyPI 运行的本地进程;需要 Python 3.11 或更高版本,以及带 serve 扩展的 Pixeltable >=0.7.10,<0.8。必须设置 PIXELTABLE_MCP_PROJECT_ROOT(存放 app.py 的目录,且该目录需存在)和 PIXELTABLE_HOME(目录库)。可选:PXT_PORT(默认 22089)、PIXELTABLE_MCP_PXT、PIXELTABLE_MCP_ENABLE_UNSAFE。修改配置后需重启客户端。
安装
在 SourceWeft 中
- 打开 控制台中的 Pixeltable Developer,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Pixeltable Developer MCP Server
A local MCP server for building and operating Pixeltable
applications. Through the pxt CLI, an agent scaffolds one app.py, applies its
tables to a catalog, inserts and inspects rows, recovers failed computations, and
serves HTTP routes. It is a beta developer tool: it runs with your permissions and
changes the catalog you point it at.
Quick start
Install uv. The server is on
PyPI, and uvx downloads and runs it.
Claude Code:
Other clients (Claude Desktop, Cursor, VS Code, and so on):
The app directory must exist. An empty one is fine: the server can scaffold app.py
there. Restart the client after changing its configuration.
Both paths are fixed for the life of the process. Run one server per catalog when it applies schema or service changes.
Other ways to run it
Docker: mount the app directory, and keep the catalog in a named volume so it persists.
Do not bind-mount a catalog from a macOS host: Postgres cannot set permissions on that
directory, and initdb fails. On macOS, the app path must also be shared with your
container engine, or the mount lands inside its VM.
What the server exposes
Read tools carry read-only annotations; mutation tools declare write and destructive behavior. Prune tools default to dry runs. Failures come back as MCP tool errors, so a client can retry with corrected input.
Prompts: pixeltable_build_app, pixeltable_build_rag, pixeltable_build_agent, and
pixeltable_debug_computation. They follow
pixeltable-skill 2.12.0,
which stays the detailed reference for providers, multimodal views, indexes, tool
calling, and serving.
Pixeltable workflow
These are the commands the tools wrap:
my_appis a catalog directory, not a folder on disk.pxt service listshows the assigned URL.- In
app.py, stored columns are annotations and computed columns are assignments. Types are non-nullable; writeT | Nonefor an optional column. Do not usepxt.Required. - To change a computed expression, edit it and update the schema. The update keeps
existing values, so run
pxt recompute my_app/docs COLUMN -fto refresh them. A type change is unsupported in place; rename the computed column instead. - Cloud uses the same
app.py:pxt login, a[[pixeltable.database]]entry inpixeltable.toml, and provider keys throughpxt secret set, never in the TOML.pixeltable://guidance/cloudlists the order. The server creates no paid resources.
Unsafe mode
PIXELTABLE_MCP_ENABLE_UNSAFE=1 adds pixeltable_unsafe_execute_python,
pixeltable_unsafe_install_package, and pixeltable_unsafe_display. They run arbitrary
Python, change the server's environment, read any file the process can, and render
untrusted content in a browser canvas. They exist only over stdio: enable them for a
trusted local client in a disposable environment. HTTP is not a supported transport.
Compatibility
Releases
CHANGELOG.md lists what each version changed. 0.2.1 is the first PyPI release.
To ship a version:
- Bump the version in
pyproject.toml,src/mcp_server_pixeltable_developer/__init__.py,server.json(twice),mcpb/manifest.json,plugin/.claude-plugin/plugin.json(version anduvxpin), and the assertions in.github/workflows/ci.ymland the tests. Add a## X.Y.Zsection toCHANGELOG.mdand runuv lock. The tests fail until every copy agrees. - Merge, then push the tag
vX.Y.Z. CI reruns every check, publishes to PyPI with trusted publishing, creates the GitHub Release from the changelog section, then publishesserver.jsonto the MCP Registry with GitHub OIDC. - If the registry step fails, rerun it without a new tag:
gh workflow run mcp-registry.yml --repo pixeltable/mcp-server-pixeltable-developer --ref main.
Glama syncs from GitHub. The Docker MCP Catalog entry (servers/pixeltable/server.yaml
in docker/mcp-registry) pins a commit, so it needs a PR per release.
Develop and verify
--run-slow runs real catalogs and services in temporary directories, each on its own
daemon port. build-mcpb.sh writes the Claude Desktop bundle to dist/. For manual
testing, run the MCP Inspector against the server:
uv run mcp dev src/mcp_server_pixeltable_developer/server.py:mcp.
Privacy Policy
The server runs entirely on the machine that starts it. It collects no telemetry and no analytics, and it sends nothing to Pixeltable or to any third party.
What it handles. The Pixeltable catalog at PIXELTABLE_HOME and the
application files under PIXELTABLE_MCP_PROJECT_ROOT, both chosen by you. Tool
results are returned to the MCP client that launched the server, which is how
your assistant reads them. Nothing else receives them.
Storage and retention. The server stores nothing of its own. Catalog data
stays in PIXELTABLE_HOME on your disk, under your control, and is removed when
you remove it.
Secrets. Command output is passed through a redactor that masks common credential forms, including URL passwords and API tokens, before it reaches the client.
Third parties. If your application declares computed columns that call model providers, Pixeltable makes those calls with the credentials you configured. That traffic is your application's, not this server's.
Unsafe mode. With PIXELTABLE_MCP_ENABLE_UNSAFE=1, the added tools execute
arbitrary Python, install packages, and read files available to the server
process. Enable it only on a trusted local machine.
Contact. Report privacy questions through GitHub issues.
Documentation
- Changelog
- Migration from 0.1 to 0.2
- 0.2.0 implementation review and 0.1.0 evidence review
- Agent evaluation protocol
- Pixeltable documentation and LLM reference
- MCP Python SDK 2 documentation
License
Apache-2.0. See LICENSE.
来源:README.md,提交 f514e51
工具
0版本历史
1- v0.2.1最新Oct 11, 2026


