workhorse-ai-mcp 0.7.2

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Planado
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # workhorse-ai-mcp
2
+
3
+ A delegation journal for orchestrator/worker AI workflows: an append-only
4
+ event log over SQLite (tasks, reports, artifacts, incidents, full-text
5
+ search) exposed as an MCP server. Zero dependencies — only Node.js >= 22.5
6
+ with the built-in `node:sqlite`.
7
+
8
+ The journal enforces a simple discipline: `DRAFT → DELEGATED → REPORTED →
9
+ ACCEPTED | REWORK | FAILED`, where *reported* (the worker thinks it is done)
10
+ is never the same as *accepted* (the orchestrator verified it).
11
+
12
+ ## Install
13
+
14
+ The npm package is not published yet — the final name is pending a rebrand.
15
+ Once published, add the server to your `.mcp.json`:
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "workhorse": {
21
+ "command": "npx",
22
+ "args": ["-y", "workhorse-ai-mcp"]
23
+ }
24
+ }
25
+ }
26
+ ```
27
+
28
+ Until then, run it straight from the monorepo:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "workhorse": {
34
+ "command": "node",
35
+ "args": ["apps/workhorse/mcp/server.mjs"]
36
+ }
37
+ }
38
+ }
39
+ ```
40
+
41
+ Data lives in `~/.workhorse/workhorse.db` (override with `WORKHORSE_DB`).
42
+ On first start the server creates the directory and the database itself.
43
+
44
+ ## Connect to the cloud (optional)
45
+
46
+ The journal works fully offline. To sync it with a Planado workspace, issue
47
+ an MCP token on the workspace's MCP page and ask your agent to call the
48
+ `connect` tool:
49
+
50
+ ```json
51
+ connect {
52
+ "url": "https://<your-workspace>/api/mcp/journal-sync",
53
+ "token": "<mcp token>"
54
+ }
55
+ ```
56
+
57
+ `connect` verifies the connection first and only then writes `sync.json`
58
+ next to the database — no manual configuration. The journal id defaults to
59
+ a normalized `<username>-<hostname>`. After that, every journal write is
60
+ auto-pushed; `sync` forces a push, and `inbox`/`take` pull task intents
61
+ from the cloud.
62
+
63
+ ## License
64
+
65
+ MIT