BT

butteredstardust/twaco

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

0 stars 0 forks 品質 66 トレンド 20MIT

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. extract writes service scripts, DataShape fields, mashups and DataTable settings to files under src/; sync puts them back, changing nothing else.
  • Start from what you have. init sets up a repository from a folder of exports, or with --from-server from projects on a server; entity pull takes in later server changes.
  • Build without Composer. new creates Things, templates, shapes, DataShapes, DataTables, timers, styles, menus and more; thing edits services, properties and subscriptions; mashup builds mashups from templates, with widgets, bindings and events.
  • Refactor safely. rename, move and copy follow every reference through entities, scripts and mashups, and show the plan first.
  • Understand before you change. catalog shows a service’s signature and script, impact what a change reaches, trace how callers use a service, unused what nothing uses, and docs writes the solution up as Markdown.
  • Catch problems before the server does. check runs 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 --check type-checks scripts.
  • Deploy without clobbering. deploy has 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. adopt compares a Composer export with the repository and shows only what really changed.
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →