
butteredstardust/twaco
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
A CLI and MCP utility for working with tw and AI agents
概要
ThingWorx keeps a solution's code inside entity XML: every service script sits in a CDATA section of a Thing, ThingTemplate or ThingShape export. That is hard to edit, review, diff or hand to an AI agent. twaco is a single command-line binary that makes the repository the source of truth: - twaco extract writes every service script, DataShape, mashup and DataTable configuration out to sidecar files. twaco sync writes them back byte for byte, touching nothing else in the XML. - twaco check runs every gate in one pass: sidecars in sync, formatting, script traps the Rhino engine punishes, project validation and your own hooks. twaco types --check type-checks every service against the entities' declarations with TypeScript. - twaco deploy bundles per project in dependency order, has the server parse every script, and refuses when someone changed the server since your last deploy.
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 MCP 初心者?mcpskill.org のガイドから始めましょう →