threadroot 0.1.2 → 0.1.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/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to Threadroot will be documented here.
4
4
 
5
5
  Threadroot follows semantic versioning after the first public release. While `0.x`, minor versions may include breaking changes as the harness format settles.
6
6
 
7
+ ## 0.1.4 - Stable npx MCP config
8
+
9
+ ### Fixed
10
+
11
+ - `bootstrap --mcp` and `setup --global --mcp` now detect npm's `_npx` cache path and write a stable pinned `npx --yes threadroot@<version> mcp` Codex MCP command instead of pointing Codex at a transient npm cache file.
12
+
13
+ ## 0.1.3 - Verified Codex MCP setup
14
+
15
+ ### Added
16
+
17
+ - `threadroot mcp check` to verify Codex MCP config, launch the stdio server, complete a JSON-RPC initialize handshake, and assert required Threadroot tools are available.
18
+ - MCP server initialization instructions that tell agents how to use `context`, `doctor`, skills, tools, and durable memory.
19
+ - Doctor checks for configured-but-broken Codex MCP.
20
+
21
+ ### Changed
22
+
23
+ - `bootstrap --mcp` and `setup --global --mcp` now write a local-aware MCP command. Package-bin symlinks and local dev runs resolve to `node /path/to/dist/index.js mcp`, with `threadroot mcp` as the fallback.
24
+ - Package smoke now verifies MCP from the packed tarball.
25
+
7
26
  ## 0.1.2 - One-command bootstrap and session start
8
27
 
9
28
  ### Added
package/README.md CHANGED
@@ -38,7 +38,9 @@ node dist/index.js --help
38
38
 
39
39
  ```bash
40
40
  tr bootstrap --yes # one-time machine setup + local-only .threadroot/
41
+ tr bootstrap --yes --mcp # also configure and verify global Codex MCP
41
42
  tr start "write tests" # doctor, status, relevant context, and command map
43
+ tr mcp check # verify Codex MCP config and server handshake
42
44
  tr expose codex # optional: write a thin project skill shim for Codex
43
45
  ```
44
46
 
@@ -71,6 +73,7 @@ tr connections list | check
71
73
  tr connections add <name> --provider <p> --command <cmd>
72
74
  tr packs list | inspect <pack> | validate <pack> | install <pack>
73
75
  tr mcp # run the local MCP server (stdio)
76
+ tr mcp check # verify Codex MCP config and required tools
74
77
  tr mcp setup [--write] # wire MCP into agents
75
78
  ```
76
79
 
@@ -100,14 +103,18 @@ vendor file is preserved; Threadroot only owns the block it marks as generated.
100
103
  The simple path is:
101
104
 
102
105
  ```bash
103
- tr bootstrap --yes
106
+ tr bootstrap --yes --mcp
104
107
  tr start "current task"
105
108
  ```
106
109
 
107
110
  Without `--yes`, `tr bootstrap` prints a dry-run plan. With `--yes`, it installs global
108
111
  agent bootstrap skills, initializes `.threadroot/` if needed, runs doctor, and prints
109
- task context. It does not write provider-specific project files unless you pass
110
- `--expose`.
112
+ task context. With `--mcp`, it also writes Codex MCP config using a durable command for
113
+ the current launch path. `npx` runs write a pinned `npx --yes threadroot@<version> mcp`
114
+ command instead of a transient npm cache path; local dev runs use
115
+ `node /path/dist/index.js mcp`; unknown launch paths fall back to `threadroot mcp`. The
116
+ setup verifies the stdio server handshake. It does not write provider-specific project
117
+ files unless you pass `--expose`.
111
118
 
112
119
  Global setup installs a tiny `threadroot` skill into supported agent user-skill
113
120
  directories so agents know to call `threadroot bootstrap --yes` when setup is missing
@@ -237,6 +244,7 @@ Threadroot runs a local MCP server over stdio that exposes the harness to agents
237
244
 
238
245
  ```bash
239
246
  tr mcp
247
+ tr mcp check # verify Codex global MCP config and required tools
240
248
  tr mcp setup # print config snippets and a pasteable agent bootstrap prompt
241
249
  tr mcp setup --write # opt-in: write project-local MCP config for supported agents
242
250
  ```
@@ -249,6 +257,10 @@ Tools: `context`, `skills_list`, `skills_get`, `tools_list`, `tools_check`, `too
249
257
  check availability, run `threadroot bootstrap --yes`, run `threadroot start "<task>"`,
250
258
  and ask before writing project-local MCP config.
251
259
 
260
+ After changing Codex MCP config, reload VS Code/Codex or start a new Codex session. `tr mcp
261
+ check` proves the server works from the terminal; the agent surface still has to load its
262
+ MCP configuration.
263
+
252
264
  ## Profiles
253
265
 
254
266
  `nextjs`, `vite-react`, `fastapi`, `python-cli`, `node-cli`, `dbt`, `empty`.
@@ -287,7 +299,8 @@ THREADROOT_ROOT="$(pwd)"
287
299
  TMP_REPO="$(mktemp -d /tmp/threadroot-smoke.XXXXXX)"
288
300
  rsync -a --exclude .git --exclude node_modules --exclude dist ./ "$TMP_REPO/"
289
301
  cd "$TMP_REPO"
290
- HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" bootstrap --yes --agent codex --no-import
302
+ HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" bootstrap --yes --agent codex --mcp --no-import
303
+ HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" mcp check
291
304
  HOME="$TMP_REPO/home" node "$THREADROOT_ROOT/dist/index.js" start "write tests"
292
305
  node "$THREADROOT_ROOT/dist/index.js" expose codex
293
306
  node "$THREADROOT_ROOT/dist/index.js" status