
一个用于与TW和AI代理合作的CLI和MCP工具
概览
ThingWorx 将解决方案的代码保存在实体 XML 中:每个服务脚本都放在 Thing、ThingTemplate 或 ThingShape 导出的 CDATA 部分。这些很难编辑、审核、差异化或交给 AI 代理。 TWACO 是一个单一命令行二进制,使仓库成为真相源: - TWACO Extract 将所有服务脚本、DataShape、mashup 和 DataTable 配置写入 sidecar 文件。TWACO 同步逐字节写回,XML 中不处理其他内容。- TWACO 检查一次运行所有门:边车同步、格式化、Rhino引擎惩罚的脚本陷阱、项目验证和你自己的钩子。Twaco类型——检查用TypeScript对每个服务进行类型检查,是否与实体声明一致。- TWACO按依赖顺序部署每个项目的捆绑包,服务器解析每个脚本,且当有人更改服务器时拒绝。
概述(AI 翻译)
将ThingWorx解决方案放在源码控制中,通过终端或AI代理进行。 将脚本服务为文件,安全部署,平台知识只需一个命令即可。
ThingWorx 将解决方案的代码保存在实体 XML 中:每个服务脚本都存储在 CDATA 中 某个东西的部分,ThingTemplate或ThingShape导出。这很难编辑、审核、差异或 交给AI代理。
TWACO 是一个单一命令行二进制,使仓库成为真相源:
- 脚本变成文件。
twaco extract编写所有服务脚本、DataShape、混搭和 DataTable 配置输出到侧车文件。[twaco sync逐字节地写回, 不涉及XML中的其他部分。 - Build无Composer。
twaco new创建Things、模板、形状、DataShapes, DataTables、流、定时器、调度器、样式、主题、状态定义、菜单和媒体。twaco thing service|property|subscription|shape添加、改变和删除它们所持有的物品,且twaco mashup从 模板构建响应式混搭:控件、绑定、事件、参数, 包含混搭和现成的布线。每个节点规划到--apply并写入 XML 为
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ThingWorx keeps a solution’s code inside entity XML, with every service script in a CDATA section. That is hard to edit, review, diff or hand to an AI agent. twaco makes your repository the source of truth: edit scripts as plain files, check them offline, and deploy without overwriting anyone else’s work. It is one binary for Windows, Linux and macOS, with no runtime to install.
What you can do
- Edit scripts as files.
extractwrites service scripts, DataShape fields, mashups and DataTable settings to files undersrc/;syncputs them back, changing nothing else. - Start from what you have.
initsets up a repository from a folder of exports, or with--from-serverfrom projects on a server;entity pulltakes in later server changes. - Build without Composer.
newcreates Things, templates, shapes, DataShapes, DataTables, timers, styles, menus and more;thingedits services, properties and subscriptions;mashupbuilds mashups from templates, with widgets, bindings and events. - Refactor safely.
rename,moveandcopyfollow every reference through entities, scripts and mashups, and show the plan first. - Understand before you change.
catalogshows a service’s signature and script,impactwhat a change reaches,tracehow callers use a service,unusedwhat nothing uses, anddocswrites the solution up as Markdown. - Catch problems before the server does.
checkruns every gate in one pass: sidecars in sync, formatting, script traps, mashup bindings, localization tokens, structure against ThingWorx’s export schema, and your own hooks.types --checktype-checks scripts. - Deploy without clobbering.
deployhas the server parse every script, refuses when someone changed an entity since your last deploy, and reads back what it imported. - Take in a designer’s work.
adoptcompares a Composer export with the repository and shows only what really changed.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →