devworkspace 0.4.2 → 0.4.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 +51 -0
- package/README.md +299 -27
- package/dist/cli/args.d.ts +9 -0
- package/dist/cli/args.js +3 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/help.js +8 -4
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/render.js +53 -4
- package/dist/cli/render.js.map +1 -1
- package/dist/cli/run.js +42 -17
- package/dist/cli/run.js.map +1 -1
- package/dist/core/artifacts.d.ts +32 -0
- package/dist/core/artifacts.js +46 -0
- package/dist/core/artifacts.js.map +1 -0
- package/dist/core/version.js +3 -0
- package/dist/core/version.js.map +1 -1
- package/dist/core/workspace.js +1 -0
- package/dist/core/workspace.js.map +1 -1
- package/dist/integrations/adapters/graphify.js +2 -1
- package/dist/integrations/adapters/graphify.js.map +1 -1
- package/dist/mcp/setup.d.ts +97 -2
- package/dist/mcp/setup.js +280 -67
- package/dist/mcp/setup.js.map +1 -1
- package/dist/mcp/tools.d.ts +6 -0
- package/dist/mcp/tools.js +140 -18
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/verify.d.ts +41 -0
- package/dist/mcp/verify.js +229 -0
- package/dist/mcp/verify.js.map +1 -0
- package/dist/services/doctor.js +139 -0
- package/dist/services/doctor.js.map +1 -1
- package/dist/services/graph.d.ts +77 -3
- package/dist/services/graph.js +336 -185
- package/dist/services/graph.js.map +1 -1
- package/dist/services/init.js +5 -1
- package/dist/services/init.js.map +1 -1
- package/dist/services/setup.js +4 -0
- package/dist/services/setup.js.map +1 -1
- package/dist/services/taskContext.d.ts +24 -2
- package/dist/services/taskContext.js +72 -26
- package/dist/services/taskContext.js.map +1 -1
- package/dist/tasks/routing.js +4 -1
- package/dist/tasks/routing.js.map +1 -1
- package/docs/agents.md +18 -4
- package/docs/claude.md +13 -0
- package/docs/getting-started.md +40 -1
- package/docs/integrations.md +16 -1
- package/docs/mcp.md +46 -14
- package/docs/troubleshooting.md +5 -0
- package/package.json +1 -1
package/docs/mcp.md
CHANGED
|
@@ -78,17 +78,18 @@ npx devworkspace setup --agent claude-code
|
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
**What this configures:**
|
|
81
|
-
- Creates or updates `.mcp.json` at the project root:
|
|
81
|
+
- Creates or updates `.mcp.json` at the project root with the appropriate launcher (automatically uses `npx` when run via npx or when no global binary exists, or `devworkspace` when installed globally):
|
|
82
82
|
```json
|
|
83
83
|
{
|
|
84
84
|
"mcpServers": {
|
|
85
85
|
"devworkspace": {
|
|
86
|
-
"command": "
|
|
87
|
-
"args": ["mcp", "serve"]
|
|
86
|
+
"command": "npx",
|
|
87
|
+
"args": ["-y", "devworkspace", "mcp", "serve"]
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
```
|
|
92
|
+
*(Pass `--launcher direct` to force the global binary, or `--launcher npx` to force npx).*
|
|
92
93
|
- Appends or updates instructions in `CLAUDE.md` directing Claude Code to invoke `get_project_overview` when starting work and `get_task_context` when addressing issues.
|
|
93
94
|
|
|
94
95
|
### OpenAI Codex
|
|
@@ -104,24 +105,24 @@ npx devworkspace setup --agent codex
|
|
|
104
105
|
```
|
|
105
106
|
|
|
106
107
|
**What this configures:**
|
|
107
|
-
- Creates or updates `
|
|
108
|
+
- Creates or updates `.codex/config.toml` with a managed `[mcp_servers.devworkspace]` block (your other TOML is never rewritten; a hand-written `devworkspace` table is reported as a conflict, not overwritten). `startup_timeout_sec = 60` covers a cold `npx` download (Codex defaults to 10 s).
|
|
108
109
|
- Updates `AGENTS.md` with instructions on invoking DevWorkspace tools.
|
|
110
|
+
- Codex reads project-scoped `.codex/config.toml` only in **trusted projects**: trust the project, restart Codex and check `/mcp`. No Codex CLI was exercised by DevWorkspace's tests; verify with the steps in [Verifying MCP](#verifying-mcp-after-setup).
|
|
111
|
+
- Earlier DevWorkspace versions wrote a root `mcp.json`. Codex does not read it; `devworkspace doctor` flags it and you can delete it.
|
|
109
112
|
|
|
110
113
|
### Google Antigravity
|
|
111
114
|
|
|
112
115
|
To configure Google Antigravity:
|
|
113
116
|
|
|
114
117
|
```bash
|
|
115
|
-
#
|
|
116
|
-
npx devworkspace setup --agent antigravity --check
|
|
117
|
-
|
|
118
|
-
# Apply configuration:
|
|
118
|
+
# Verify the server starts and print the exact entry to add (nothing is written):
|
|
119
119
|
npx devworkspace setup --agent antigravity
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
**What this
|
|
123
|
-
-
|
|
124
|
-
-
|
|
122
|
+
**What this does:**
|
|
123
|
+
- Antigravity's MCP servers live in a **user-level** `mcp_config.json` (`~/.gemini/config/mcp_config.json` on current builds; some builds use `~/.gemini/antigravity/mcp_config.json`). No project-level file is documented, so DevWorkspace does not create `.antigravity/mcp.json` and never edits your user-level file for you.
|
|
124
|
+
- Setup prints the `mcpServers.devworkspace` entry to add. If the tools report no workspace, append `"--cwd", "<absolute project path>"` to `args`.
|
|
125
|
+
- Earlier versions wrote `.antigravity/mcp.json` and `.antigravity/rules`; nothing is known to read them. Existing copies are left alone and flagged by `doctor`.
|
|
125
126
|
|
|
126
127
|
### Configure All Agents at Once
|
|
127
128
|
|
|
@@ -317,10 +318,41 @@ To remove DevWorkspace MCP configuration:
|
|
|
317
318
|
|
|
318
319
|
---
|
|
319
320
|
|
|
320
|
-
##
|
|
321
|
+
## Verifying MCP after setup
|
|
322
|
+
|
|
323
|
+
`setup --agent` already runs the server and calls `check_mcp_health`, `get_project_overview` and `get_task_context` (skip with `--no-verify`). To check again later, and to check what the agent itself sees:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
npx devworkspace doctor # config + launcher + graph layout
|
|
327
|
+
claude mcp get devworkspace # Claude Code: scope, "Pending approval" / Connected
|
|
328
|
+
claude mcp list # Claude Code: health of every server
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
Inside the agent: run `/mcp` (Claude Code, Codex), then ask *"Use get_project_overview to inspect this project"* or *"Call get_task_context for: describe this project"*. A read-only test call that needs no agent: pipe JSON-RPC to `npx devworkspace mcp serve` (see section 15).
|
|
332
|
+
|
|
333
|
+
| Status | Who can confirm it |
|
|
334
|
+
| --- | --- |
|
|
335
|
+
| Config generated and valid | DevWorkspace (`setup`, `doctor`) |
|
|
336
|
+
| Server starts, handshake, `tools/list`, real tool calls | DevWorkspace (`setup` live check; the server on its own) |
|
|
337
|
+
| Agent registered the server / approval pending / connected | Claude Code CLI (`claude mcp get devworkspace`), which `setup` consults when installed. Codex and Antigravity: not observable from outside. |
|
|
338
|
+
| Open agent session has loaded the tools | Only you (reload the session and run `/mcp`) |
|
|
339
|
+
|
|
340
|
+
**Environment of the live check.** The server started by `setup` does not inherit your whole environment. It receives an explicit allowlist: process and platform basics (`PATH`, `HOME`/`USERPROFILE`, temp dirs, `SystemRoot`, `APPDATA`, locale), network settings `npx` needs (`HTTP(S)_PROXY`, `NO_PROXY`, CA file variables, and `npm_config_` cache/registry/scoped-registry/TLS options) and the standard npm auth names `NPM_TOKEN` and `NODE_AUTH_TOKEN`. Everything else, including cloud keys, CI secrets and `DATABASE_URL`, is not passed. Proxy and registry URLs are passed as you set them, so credentials you embed there reach the child. If a private registry needs another variable, name it: `DEVWORKSPACE_VERIFY_ENV=MY_REGISTRY_KEY npx devworkspace setup ...`. Your agent starts the server with its own environment, not this one; the allowlist only limits the check. Values are never printed.
|
|
341
|
+
|
|
342
|
+
**Same version string is not the same code.** The launcher pins `devworkspace@<version>`. Before that version is published with these changes, `npx` fetches the *published* package for the server, even if the CLI that ran `setup` came from a newer tarball or checkout. The check proves the pinned package works, not your local build.
|
|
343
|
+
|
|
344
|
+
Testing a build: a **source checkout** (`node dist/cli/main.js setup …`) leaves the launcher unpinned; a **packed tarball** run with `npx --package=./devworkspace-<v>.tgz devworkspace setup …` pins `devworkspace@<v>`, so the agent starts the *published* `<v>` and not your tarball unless that exact version is installed in the project; the **published** release is `npx devworkspace setup …`. To test unreleased code end to end, install the tarball in the project (`npm i -D ./devworkspace-<v>.tgz`) and use `--launcher npx`; npx then resolves the local copy.
|
|
345
|
+
|
|
346
|
+
## 14. Known Client Limitations & Launcher Configuration
|
|
321
347
|
|
|
322
|
-
- **
|
|
323
|
-
|
|
348
|
+
- **Automatic Launcher Selection:** Running `devworkspace setup --agent <name>` automatically inspects the execution environment and generates the appropriate launcher command (global executable, local project package, or `npx` fallback). Users should not need to edit `.mcp.json` manually for standard setups.
|
|
349
|
+
- **Version policy:** `--launcher auto` uses the `devworkspace` on `PATH` only when it reports the same version as the CLI running setup and is not just this project's `node_modules/.bin` (an agent started outside npm would not find it); otherwise it uses `npx`. A published copy (installed or run through `npx`) pins the launcher to its own version, `devworkspace@<version>`, so the agent starts what setup verified; a source checkout has no published version and is left unpinned unless you pass `--package-version <v>` (letters, digits, `.`, `_`, `+`, `-` only). On Windows, `npx` is written as `cmd /c npx ...`. Re-running setup after an upgrade updates the pin.
|
|
350
|
+
- **Setup verification scope:** `setup --agent` starts the configured server and checks `initialize`, `tools/list` and real `get_project_overview` / `get_task_context` calls (skip with `--no-verify`). This proves the server, not the agent connection: registration, approval (Claude Code prompts for project-scoped servers; see `/mcp`) and reload/restart happen inside the agent and are reported as steps for you.
|
|
351
|
+
- **Shared `.mcp.json` on Windows:** a Windows run writes `cmd /c npx …`, which macOS/Linux teammates cannot run. Setup warns when it writes this; teammates re-run `devworkspace setup --agent <name>` on their machine (it rewrites only the `devworkspace` entry), or the team keeps the entry in user scope instead.
|
|
352
|
+
- **Wrong version started:** after the live check, setup compares the version the server reports with the CLI that ran setup and tells you if they differ (for example an unpinned source-checkout launcher fetching an older published release).
|
|
353
|
+
- **Invalid existing config:** a `.mcp.json` that is not valid JSON is never overwritten; setup names the file and stops so you can repair it and re-run.
|
|
354
|
+
- **Manual Launcher Fallback (if required):**
|
|
355
|
+
- If customizing the launcher manually, you can configure `npx`:
|
|
324
356
|
```json
|
|
325
357
|
{
|
|
326
358
|
"mcpServers": {
|
package/docs/troubleshooting.md
CHANGED
|
@@ -13,6 +13,11 @@ Start with `devworkspace doctor`. Every warning/failure includes a remediation l
|
|
|
13
13
|
| **Graphify `RESTART_REQUIRED`: "on your user PATH ... started before that was set"** (Windows) | The folder is already on your persistent PATH; this terminal/VS Code started earlier and still has the old one. Close and reopen the terminal, or restart VS Code (and Claude Code). Do not add it again. |
|
|
14
14
|
| **Graphify `DEGRADED`: not on PATH** | Its Claude Code hooks call `graphify` by name and it is on no PATH (on Windows: not in this terminal and not in your persistent user/machine PATH). Add the folder shown in the next step to PATH (or run `uv tool update-shell` / `pipx ensurepath`) and open a new terminal. |
|
|
15
15
|
| **`RESTART_REQUIRED`** | Restart Claude Code (or run `/reload-plugins`), then `devworkspace integrations status --restarted`. |
|
|
16
|
+
| **`setup --agent` reports a failed server check** | The report names the stage: *launch* (launcher not found: install Node.js 20.11+, or use `--launcher npx`; for `--launcher direct` run `npm i -g devworkspace`), *initialize*/*tools list* (CLI and launcher versions differ: align them or pin `--package-version`), *tool call*/*context* (run `devworkspace doctor` then `devworkspace refresh`). Network or registry failures show up as a launch timeout when `npx` must download the package. Setup is idempotent; re-run after fixing. |
|
|
17
|
+
| **Setup says the launcher started a different devworkspace version** | The server that answered is not the CLI that ran setup (typically an unpinned source-checkout launcher fetching the latest *published* release, or a stale global install). Publish/install the intended version, then re-run with `--package-version <v>` or `--launcher direct`. |
|
|
18
|
+
| **`.mcp.json` reported as invalid JSON / conflict** | Setup never overwrites it. Repair or move the named file aside, then re-run `devworkspace setup --agent <name>`. |
|
|
19
|
+
| **Server check passes but the agent shows no DevWorkspace tools** | The check covers the server only. Reload the agent, approve the project-scoped `devworkspace` server when prompted (Claude Code: `/mcp`), and for Codex/Antigravity restart the agent. |
|
|
20
|
+
| **Claude Code says `"/graphify" isn't installed in this session`** | 1. If `doctor` shows `Claude skill: missing` or `DEGRADED (cli without project skill)`, run `npx devworkspace setup --integrations --yes` (runs `graphify install --project`) to install `.claude/skills/graphify/SKILL.md`.<br>2. Claude Code caches skills at startup. If Claude Code was already open when the skill was installed, run `/reload-plugins` in Claude Code or restart the session before typing `/graphify .`. |
|
|
16
21
|
| **Plugin install fails with "Host key verification failed" / "Could not read from remote repository"** | Claude Code cloned the plugin over SSH and you have no GitHub SSH key. Run the documented fix yourself (it edits your global Git config): `git config --global url."https://github.com/".insteadOf git@github.com:`, then re-run setup. |
|
|
17
22
|
| **Plugin or marketplace clone times out** | Slow or blocked access to github.com. Retry later; Claude Code's own timeout can be raised with `CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS`. Setup resumes from what is already done. |
|
|
18
23
|
| **Agent Skills / Ponytail `DEGRADED` (portable skills)** | The Claude Code CLI was not found, so only portable skills were installed (no slash commands/hooks). Install the native plugin: `claude plugin marketplace add <url> --scope project` then `claude plugin install <plugin>@<marketplace> --scope project`, or put `claude` on PATH and run `devworkspace integrations repair --yes`. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devworkspace",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Project-local AI engineering workspace: deterministic repository discovery, portable project knowledge, tasks, decisions and verification gates for AI coding agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|