@mxstage/mxstage 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +109 -0
- package/README.md +142 -0
- package/THIRD_PARTY_LICENSES.txt +10365 -0
- package/THIRD_PARTY_NOTICES.md +33 -0
- package/app/apple-touch-icon.png +0 -0
- package/app/assets/data-grid-overlay-editor-DQtebd85.js +1 -0
- package/app/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/app/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-400-normal-D9b5-NCV.woff +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-400-normal-WWS2zpoO.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-600-normal-G82u7SZs.woff2 +0 -0
- package/app/assets/ibm-plex-sans-jp-japanese-600-normal-Yx8moQLO.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/app/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/app/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/app/assets/index-B6-YMnm2.js +280 -0
- package/app/assets/index-B7H0eul9.css +1 -0
- package/app/assets/number-overlay-editor-ASCP4orf.js +9 -0
- package/app/assets/vault.worker-sXMFUEQ6.js +1 -0
- package/app/favicon-32.png +0 -0
- package/app/favicon.svg +1 -0
- package/app/icon-192.png +0 -0
- package/app/icon-512.png +0 -0
- package/app/icon-maskable-512.png +0 -0
- package/app/index.html +22 -0
- package/app/manifest.webmanifest +18 -0
- package/app/sw.js +1 -0
- package/bin/mxstage.mjs +6 -0
- package/package.json +47 -0
- package/server/mxstage-bridge.mjs +39669 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Parameters
|
|
4
|
+
|
|
5
|
+
Licensor: Kazuhiro Muto
|
|
6
|
+
Licensed Work: MX Stage 0.2.0 or later.
|
|
7
|
+
The Licensed Work is (c) 2026 Kazuhiro Muto,
|
|
8
|
+
except for the third-party material listed in
|
|
9
|
+
THIRD_PARTY_NOTICES.md, which remains under its own
|
|
10
|
+
license.
|
|
11
|
+
Additional Use Grant: You may make production use of the Licensed Work,
|
|
12
|
+
provided that you do not use it to create, change or
|
|
13
|
+
delete data held in a Production Maximo Environment.
|
|
14
|
+
Reading data from a Production Maximo Environment is
|
|
15
|
+
permitted.
|
|
16
|
+
|
|
17
|
+
A "Production Maximo Environment" is an instance of
|
|
18
|
+
IBM Maximo or IBM Maximo Application Suite (including
|
|
19
|
+
Maximo Manage) that an organization uses to record its
|
|
20
|
+
day-to-day operations, or that is being prepared to
|
|
21
|
+
replace such an instance (for example, the target of a
|
|
22
|
+
migration or upgrade before go-live). Any other
|
|
23
|
+
instance, such as one used only for development,
|
|
24
|
+
testing, training, demonstration or migration
|
|
25
|
+
rehearsals, is not a Production Maximo Environment,
|
|
26
|
+
even if it holds a copy of production data.
|
|
27
|
+
Change Date: Four years from the date on which each version of the
|
|
28
|
+
Licensed Work is first publicly distributed.
|
|
29
|
+
Change License: Apache License, Version 2.0
|
|
30
|
+
|
|
31
|
+
Notice
|
|
32
|
+
|
|
33
|
+
The Business Source License (this document, or the “License”) is not an Open
|
|
34
|
+
Source license. However, the Licensed Work will eventually be made available
|
|
35
|
+
under an Open Source License, as stated in this License.
|
|
36
|
+
|
|
37
|
+
License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
|
|
38
|
+
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
|
39
|
+
|
|
40
|
+
-----------------------------------------------------------------------------
|
|
41
|
+
|
|
42
|
+
Business Source License 1.1
|
|
43
|
+
|
|
44
|
+
Terms
|
|
45
|
+
|
|
46
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
47
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
48
|
+
Licensor may make an Additional Use Grant, above, permitting limited
|
|
49
|
+
production use.
|
|
50
|
+
|
|
51
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly
|
|
52
|
+
available distribution of a specific version of the Licensed Work under this
|
|
53
|
+
License, whichever comes first, the Licensor hereby grants you rights under
|
|
54
|
+
the terms of the Change License, and the rights granted in the paragraph
|
|
55
|
+
above terminate.
|
|
56
|
+
|
|
57
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
58
|
+
currently in effect as described in this License, you must purchase a
|
|
59
|
+
commercial license from the Licensor, its affiliated entities, or authorized
|
|
60
|
+
resellers, or you must refrain from using the Licensed Work.
|
|
61
|
+
|
|
62
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
63
|
+
of the Licensed Work, are subject to this License. This License applies
|
|
64
|
+
separately for each version of the Licensed Work and the Change Date may vary
|
|
65
|
+
for each version of the Licensed Work released by Licensor.
|
|
66
|
+
|
|
67
|
+
You must conspicuously display this License on each original or modified copy
|
|
68
|
+
of the Licensed Work. If you receive the Licensed Work in original or
|
|
69
|
+
modified form from a third party, the terms and conditions set forth in this
|
|
70
|
+
License apply to your use of that work.
|
|
71
|
+
|
|
72
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
73
|
+
terminate your rights under this License for the current and all other
|
|
74
|
+
versions of the Licensed Work.
|
|
75
|
+
|
|
76
|
+
This License does not grant you any right in any trademark or logo of
|
|
77
|
+
Licensor or its affiliates (provided that you may use a trademark or logo of
|
|
78
|
+
Licensor as expressly required by this License).
|
|
79
|
+
|
|
80
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
81
|
+
AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
82
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
83
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
84
|
+
TITLE.
|
|
85
|
+
|
|
86
|
+
MariaDB hereby grants you permission to use this License’s text to license
|
|
87
|
+
your works, and to refer to it using the trademark “Business Source License”,
|
|
88
|
+
as long as you comply with the Covenants of Licensor below.
|
|
89
|
+
|
|
90
|
+
Covenants of Licensor
|
|
91
|
+
|
|
92
|
+
In consideration of the right to use this License’s text and the “Business
|
|
93
|
+
Source License” name and trademark, Licensor covenants to MariaDB, and to all
|
|
94
|
+
other recipients of the licensed work to be provided by Licensor:
|
|
95
|
+
|
|
96
|
+
1. To specify as the Change License the GPL Version 2.0 or any later version,
|
|
97
|
+
or a license that is compatible with GPL Version 2.0 or a later version,
|
|
98
|
+
where “compatible” means that software provided under the Change License can
|
|
99
|
+
be included in a program with software provided under GPL Version 2.0 or a
|
|
100
|
+
later version. Licensor may specify additional Change Licenses without
|
|
101
|
+
limitation.
|
|
102
|
+
|
|
103
|
+
2. To either: (a) specify an additional grant of rights to use that does not
|
|
104
|
+
impose any additional restriction on the right granted in this License, as
|
|
105
|
+
the Additional Use Grant; or (b) insert the text “None”.
|
|
106
|
+
|
|
107
|
+
3. To specify a Change Date.
|
|
108
|
+
|
|
109
|
+
4. Not to modify this License in any other way.
|
package/README.md
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# MX Stage
|
|
2
|
+
|
|
3
|
+
English | [日本語](README.ja.md)
|
|
4
|
+
|
|
5
|
+
**MX Stage is a local-only AI workbench for correcting IBM Maximo data with your own AI assistant (Claude Desktop, ChatGPT, IBM Bob): every change is staged, diffed and approved by a human before it is written to Maximo.**
|
|
6
|
+
|
|
7
|
+
Website: https://mxstage.tsunagi.app · Contact: mxstage@tsunagi.app
|
|
8
|
+
|
|
9
|
+
- **Your AI works on a staging sheet, not on Maximo.** The AI assistant loads Maximo data into a sheet in the *work screen* (a browser tab), analyses it and proposes changes with reasons. You see every changed cell.
|
|
10
|
+
- **Only a person can commit.** The AI's tools cannot write to Maximo. Changes are written only when you press **Commit to Maximo** in the work screen. MX Stage writes one record first, checks it, then continues, and stops on conflicts. Any batch of changes can be undone before you commit.
|
|
11
|
+
- **Nothing leaves your PC except calls to your Maximo and your AI assistant.** There is no MX Stage cloud and no telemetry. The only exception is optional: if you turn on **Settings → Updates → Update automatically** (off by default), the bridge asks GitHub once a day for the latest version number. Installs made with the setup script then update themselves while no work is open; the Claude Desktop extension downloads and checks the new file for you to install. A small local process (the *bridge*) serves the work screen, talks MCP to your AI assistant and relays requests to Maximo, so Maximo needs no CORS settings. Your Maximo API key is saved on this PC by the bridge, encrypted with Windows data protection (DPAPI) or the macOS Keychain, and is never sent to the browser. Every window of the work screen — the installed app, a browser tab, or the browser inside your AI assistant — connects automatically, even after a restart, and you can switch between saved Maximo environments in Settings. (You can also connect without saving; the key then stays only in the tab's memory.)
|
|
12
|
+
- **Teach it your procedures.** Save a procedure worked out in a conversation as a *Skill*; the AI follows it next time.
|
|
13
|
+
|
|
14
|
+
## Why not call the Maximo REST API from the AI directly?
|
|
15
|
+
|
|
16
|
+
Several Maximo MCP servers let the AI call the REST API. That is fine for reading, but risky for bulk changes: you cannot see what the AI is about to write, and a wrong guess goes straight into production. MX Stage puts a staging sheet, a diff, an undo and a human approval in between.
|
|
17
|
+
|
|
18
|
+
## Supported AI assistants
|
|
19
|
+
|
|
20
|
+
| Assistant | Status |
|
|
21
|
+
|---|---|
|
|
22
|
+
| Claude Desktop (chat and Code tab) | Supported |
|
|
23
|
+
| ChatGPT desktop — **Codex** or **Work** mode (Chat mode cannot use local MCP servers) | Supported |
|
|
24
|
+
| Claude Code, Codex CLI and IDE extension, Antigravity | Work, not officially supported |
|
|
25
|
+
| IBM Bob | Supported (registered by the installer) |
|
|
26
|
+
| LM Studio | Coming |
|
|
27
|
+
|
|
28
|
+
## Requirements
|
|
29
|
+
|
|
30
|
+
- Windows (macOS and Linux are untested)
|
|
31
|
+
- Node.js 22.6 or later and Git (the installer offers to install them)
|
|
32
|
+
- Chrome or Edge
|
|
33
|
+
- IBM Maximo or Maximo Application Suite (Manage) with the JSON API at `/maximo/api` and an API key
|
|
34
|
+
|
|
35
|
+
## Install
|
|
36
|
+
|
|
37
|
+
### Claude Desktop (simplest)
|
|
38
|
+
|
|
39
|
+
1. Download `mxstage-<version>.mcpb` from the [latest release](https://github.com/mxstage/mxstage/releases/latest).
|
|
40
|
+
2. In Claude Desktop, open **Settings → Extensions**, then **Advanced settings → Install Extension…** and choose the file (or double-click the file, or drag it onto the Extensions page). Choose **Install**.
|
|
41
|
+
3. Open `http://127.0.0.1:8788/app` in Chrome or Edge and **enter your Maximo URL and API key in Settings.** Never paste the API key into the chat.
|
|
42
|
+
4. In a new chat, ask "show the MX Stage status".
|
|
43
|
+
|
|
44
|
+
The extension needs no Node.js or Git: Claude Desktop runs it. To use MX Stage from other assistants as well (ChatGPT desktop, IBM Bob, Claude Code in the terminal, Antigravity), use the installer below; it detects the extension and does not register MX Stage twice.
|
|
45
|
+
|
|
46
|
+
### Other assistants (installer)
|
|
47
|
+
|
|
48
|
+
**Ask Claude Code (or the Code tab of Claude Desktop) to install it:** give it this repository's URL and say "install this". It follows [Installation steps for Claude Code](#installation-steps-for-claude-code) below and asks before running each command.
|
|
49
|
+
|
|
50
|
+
To install by hand, clone this repository to `%USERPROFILE%\mxstage` and run `node scripts/setup-local.mjs` in it.
|
|
51
|
+
|
|
52
|
+
**One install registers MX Stage with every supported assistant found on this PC.** Then restart the assistant you use, open `mxstage` on the desktop (or `http://127.0.0.1:8788/app`), and **enter your Maximo URL and API key in Settings.** Never paste the API key into the chat.
|
|
53
|
+
|
|
54
|
+
In Settings, also choose for each Maximo whether it is **production** or **test**. Committing to production needs a license (see [License](#license)); everything else is free.
|
|
55
|
+
|
|
56
|
+
To update, say "update MX Stage"; to remove it, say "uninstall MX Stage" (see [Uninstall](#uninstall)).
|
|
57
|
+
|
|
58
|
+
## Where it is registered
|
|
59
|
+
|
|
60
|
+
`~` is `%USERPROFILE%`. The installer only touches assistants that are installed (Claude Desktop: its settings folder exists; Antigravity: `~\.gemini`; Codex: `~\.codex`; IBM Bob: `~\.bob`), backs up every file before changing it (to `~\.config\mxstage\backup\`), and never changes other servers' settings. `node scripts/setup-local.mjs --status` shows what is registered without changing anything. To leave an assistant out, add `--no-claude-desktop`, `--no-antigravity`, `--no-codex` or `--no-bob` (`--no-skills` copies no Skills). `--claude-code` registers Claude Code even when the extension is enabled.
|
|
61
|
+
|
|
62
|
+
| Assistant | MCP server | Skills | After installing or updating |
|
|
63
|
+
|---|---|---|---|
|
|
64
|
+
| Claude Code (CLI) | `mcpServers.mxstage` in `~\.claude.json`. **Not registered** when the MX Stage extension (`.mcpb`) is enabled in Claude Desktop, because the Code tab already gets MX Stage from the extension and would show every tool twice (an entry the installer added earlier is removed). Add `--claude-code` to register anyway for Claude Code in a terminal (remembered for later runs) | `~\.claude\skills\<name>\SKILL.md` | Restart Claude Code |
|
|
65
|
+
| Claude Desktop (Code tab) | Same as Claude Code, or the extension (`.mcpb`) when it is enabled | Same as Claude Code | Quit Claude Desktop from the system tray and open it again |
|
|
66
|
+
| Claude Desktop (chat) | `mcpServers.mxstage` in `%APPDATA%\Claude\claude_desktop_config.json`. Microsoft Store version: also in `%LOCALAPPDATA%\Packages\Claude_<publisher ID>\LocalCache\Roaming\Claude\claude_desktop_config.json` when that folder exists. **Not registered** when the MX Stage extension (`.mcpb`) is installed and enabled in Claude Desktop (an entry the installer added earlier is removed) | Not copied (see [Skills](#skills)) | Quit from the system tray (closing the window is not enough) and open again |
|
|
67
|
+
| Antigravity | `mcpServers.mxstage` in `~\.gemini\config\mcp_config.json` | `~\.gemini\config\skills\<name>\SKILL.md` | Start a new conversation |
|
|
68
|
+
| Codex (ChatGPT desktop, CLI, IDE extension) | `[mcp_servers.mxstage]` in `~\.codex\config.toml` | `~\.agents\skills\<name>\SKILL.md` | Restart Codex |
|
|
69
|
+
| IBM Bob | `mcpServers.mxstage` in `~\.bob\settings\mcp.json` | `~\.bob\skills\<name>\SKILL.md` | Restart IBM Bob |
|
|
70
|
+
|
|
71
|
+
## Uninstall
|
|
72
|
+
|
|
73
|
+
Say "uninstall MX Stage" to Claude Code, or run in `%USERPROFILE%\mxstage`:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
node scripts/setup-local.mjs --uninstall
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
This removes the `mxstage` entries from every assistant (restoring any setting the installer replaced), the Skills it copied (unless you edited them), the sign-in shortcut and desktop shortcut, and the bridge it started. It keeps your own Skills (`~\.config\mxstage\skills\`) and the backups. To remove everything, also delete `%USERPROFILE%\mxstage` and `~\.config\mxstage` (the backups are full copies of the original settings files, including any tokens in them), and clear the site data for `127.0.0.1:8788` in your browser.
|
|
80
|
+
|
|
81
|
+
## Installation steps for Claude Code
|
|
82
|
+
|
|
83
|
+
When the user asks to install MX Stage, follow these steps and get the user's approval before each command.
|
|
84
|
+
|
|
85
|
+
1. **Check prerequisites**: `node --version` (22.6 or later) and `git --version`. If missing, with the user's agreement install them with `winget install OpenJS.NodeJS.LTS` / `winget install Git.Git`, then confirm `node` and `git` work in a new shell.
|
|
86
|
+
2. **Get the code** into `%USERPROFILE%\mxstage` (`~/mxstage` on macOS and Linux):
|
|
87
|
+
- if it does not exist: `git clone <this repository URL> "%USERPROFILE%\mxstage"`
|
|
88
|
+
- if it exists: `git pull --ff-only` in it (if local changes block it, stop and tell the user)
|
|
89
|
+
3. **Install**: in that folder run `node scripts/setup-local.mjs --json`. This also runs `npm install` and builds the work screen. Do not use `mxstage.cmd` (it waits for a key press at the end).
|
|
90
|
+
4. **Read the result**: success if no item in `steps` has `"level": "error"`. For `error` or `warn`, tell the user its `message` and `hint` and follow the `hint`. Do not edit settings files by guesswork.
|
|
91
|
+
5. **Tell the user** to restart the assistant they use, to enter the Maximo URL and API key in the work screen settings (`http://127.0.0.1:8788/app`), and never to paste the API key into the chat.
|
|
92
|
+
|
|
93
|
+
**Update**: steps 2 to 4. Ask the user to restart their assistant afterwards so the new bridge is used. **Uninstall**: `node scripts/setup-local.mjs --uninstall --json`. **Status**: `node scripts/setup-local.mjs --status --json` (changes nothing).
|
|
94
|
+
|
|
95
|
+
## Skills
|
|
96
|
+
|
|
97
|
+
A Skill is a procedure the AI assistant follows.
|
|
98
|
+
|
|
99
|
+
| | Location | Contents | Updates |
|
|
100
|
+
|---|---|---|---|
|
|
101
|
+
| Built-in | `skills/` in this repository (`mxstage-workbench`) | The basic procedure and rules for every task | Replaced with MX Stage updates; do not edit |
|
|
102
|
+
| Yours | `~/.config/mxstage/skills/<name>/SKILL.md` | Procedures for your tasks or customers | Yours; kept across updates and never sent anywhere |
|
|
103
|
+
|
|
104
|
+
- **Every assistant gets the basic procedure**: it is attached to the result of the first tool call in each conversation, so assistants that cannot load Skill files (Claude Desktop chat, for example) follow the same rules.
|
|
105
|
+
- **Create Skills from the chat**: say "save this procedure as a Skill". The AI shows the name, description and body, and saves it after you agree.
|
|
106
|
+
- Run the installer again to copy new or changed Skills to each assistant.
|
|
107
|
+
|
|
108
|
+
## Documentation
|
|
109
|
+
|
|
110
|
+
The detailed guides are in Japanese for now:
|
|
111
|
+
|
|
112
|
+
- [docs/local.md](docs/local.md) — daily use, updates, troubleshooting
|
|
113
|
+
- [docs/status.md](docs/status.md) — what works today
|
|
114
|
+
- [docs/publish.md](docs/publish.md) — checks before publishing
|
|
115
|
+
|
|
116
|
+
## Development
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
npm run typecheck # tsc (app and bridge)
|
|
120
|
+
npx vitest run # tests (app and bridge)
|
|
121
|
+
npm run test:setup # installer tests (write only to temporary folders)
|
|
122
|
+
npm run build # build the built-in Skill and the work screen (dist/app)
|
|
123
|
+
npm run dev:app # dev server for the work screen (http://localhost:5173/app?demo=1 shows sample data; relays to the dev bridge on 8790)
|
|
124
|
+
npm run dev:fake-maximo # a fake Maximo at https://127.0.0.1:9797 (API key: test-api-key)
|
|
125
|
+
npm run dev:bridge # a bridge on port 8790 that accepts the development license for the fake Maximo
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Disable IBM telemetry when installing dependencies (`$env:IBM_TELEMETRY_DISABLED='true'; npm install` in PowerShell); the installer does this itself. See [dev/README.md](dev/README.md) for developing and testing license checks.
|
|
129
|
+
|
|
130
|
+
**Only test commits against a development Maximo with dummy data.** There is no automatic rollback of changes written to Maximo.
|
|
131
|
+
|
|
132
|
+
## License
|
|
133
|
+
|
|
134
|
+
MX Stage is licensed under the [Business Source License 1.1](LICENSE). The source is available, but it is not open source. The [LICENSE](LICENSE) file is authoritative; this is a summary.
|
|
135
|
+
|
|
136
|
+
- **Free**: everything except committing to a production Maximo — loading, analysing and editing production data, building Skills, and committing to test environments. You may read, modify and redistribute the source under the same license.
|
|
137
|
+
- **License needed**: using MX Stage to create, change or delete data in a **production Maximo environment** — US$4,800 per production environment per year, for any number of users and PCs. The license key names the environment's URLs (up to three aliases). [Pricing](https://mxstage.tsunagi.app/pricing).
|
|
138
|
+
- **Production environment**: the Maximo your organization uses to record day-to-day operations, and an environment being prepared to replace it (for example, a migration target before go-live). **Test environment**: everything else (development, test, training, demonstration, migration rehearsal), even if it holds a copy of production data.
|
|
139
|
+
- **Each version becomes Apache License 2.0 four years after its release.**
|
|
140
|
+
- Third-party packages and fonts (IBM Carbon Design System, IBM Plex and others) keep their own licenses ([THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)).
|
|
141
|
+
|
|
142
|
+
IBM and Maximo are trademarks of International Business Machines Corporation. MX Stage is an independent product and is not affiliated with or endorsed by IBM.
|