@work-graph/cli 0.2.7 → 0.2.8
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/README.md +5 -5
- package/package.json +1 -1
- package/vendor/packages/workgraph-mcp/README.md +5 -3
- package/vendor/packages/workgraph-mcp/package.json +2 -2
- package/vendor/packages/workgraph-mcp/src/index.mjs +2 -2
- package/vendor/packages/workgraph-mcp/src/prompts.mjs +2 -2
- package/vendor/src/publicSiteServer.mjs +3 -3
- package/vendor/src/workGraphProjectInit.mjs +4 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Use it when you want:
|
|
|
8
8
|
|
|
9
9
|
- a project-local backlog without SaaS lock-in;
|
|
10
10
|
- BVC work contracts that can be reviewed in Git;
|
|
11
|
-
-
|
|
11
|
+
- optional MCP client configuration for the project (Cursor by default);
|
|
12
12
|
- a local UI for task status, evidence and project navigation;
|
|
13
13
|
- repeatable setup through `npx`, not a copied engine repository.
|
|
14
14
|
|
|
@@ -45,8 +45,8 @@ Typical output:
|
|
|
45
45
|
| `.work-graph/config.json` | Project id, label and UI settings |
|
|
46
46
|
| `intent/` | BVC intent tree for work items |
|
|
47
47
|
| `intent/index.bvc` | Index of work item files |
|
|
48
|
-
| `.cursor/mcp.json` |
|
|
49
|
-
| `.cursor/rules/work-graph-project.mdc` |
|
|
48
|
+
| `.cursor/mcp.json` | Optional: MCP server entry when using Cursor |
|
|
49
|
+
| `.cursor/rules/work-graph-project.mdc` | Optional: project rule for agents in Cursor |
|
|
50
50
|
| `package.json` | `workgraph:*` scripts and devDependencies |
|
|
51
51
|
|
|
52
52
|
After `npm install`, the project owns its Work Graph runtime through `node_modules/@work-graph/cli` and `node_modules/@work-graph/mcp`.
|
|
@@ -55,7 +55,7 @@ After `npm install`, the project owns its Work Graph runtime through `node_modul
|
|
|
55
55
|
|
|
56
56
|
| Command | Description |
|
|
57
57
|
|---------|-------------|
|
|
58
|
-
| `init [path]` | Scaffold Work Graph into a project: BVC intent tree, config, npm scripts, MCP
|
|
58
|
+
| `init [path]` | Scaffold Work Graph into a project: BVC intent tree, config, npm scripts, optional MCP/rule files |
|
|
59
59
|
| `ui [path]` | Start the local backlog UI for the project |
|
|
60
60
|
| `doctor [path]` | Verify that project config, package dependencies and runtime resolution are healthy |
|
|
61
61
|
| `register [path]` | Optional: register a project in the shared multiproject host |
|
|
@@ -116,7 +116,7 @@ The CLI installs the runtime and UI. The BVC format itself is published separate
|
|
|
116
116
|
| Symptom | Fix |
|
|
117
117
|
|---|---|
|
|
118
118
|
| `work-graph doctor` says dependencies are missing | Run `npm install` in the target project |
|
|
119
|
-
|
|
|
119
|
+
| Agent does not see Work Graph MCP tools | Re-run `npx @work-graph/cli init .` without `--no-mcp`, then reload MCP servers in your IDE |
|
|
120
120
|
| UI port is already in use | Run `npx @work-graph/cli ui . --port 4178` |
|
|
121
121
|
| Existing package scripts were not updated | Re-run without `--no-package` or add the `workgraph:*` scripts manually |
|
|
122
122
|
| You are hacking Work Graph itself | Use `WORKGRAPH_ENGINE_ROOT=.` or `--engine` from the monorepo, not in normal projects |
|
package/package.json
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
[MCP](https://modelcontextprotocol.io) server for Work Graph — list, create, and update work items in `intent/**/*.work.bvc`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Works with any MCP-capable agent client (Cursor, Claude Desktop, Claude Code, and others).
|
|
6
6
|
|
|
7
|
-
After `
|
|
7
|
+
## After `work-graph init`
|
|
8
|
+
|
|
9
|
+
`npx @work-graph/cli init .` writes `.cursor/mcp.json` when you use Cursor. The entry looks like:
|
|
8
10
|
|
|
9
11
|
```json
|
|
10
12
|
{
|
|
@@ -21,7 +23,7 @@ After `npx @work-graph/cli init .`, `.cursor/mcp.json` includes:
|
|
|
21
23
|
}
|
|
22
24
|
```
|
|
23
25
|
|
|
24
|
-
Reload MCP in
|
|
26
|
+
Reload MCP in your IDE after init. For Claude Desktop / Claude Code and other clients, use the same command and env — see [workgraph-mcp-clients.md](https://github.com/bvc-lang/work-graph/blob/main/docs/workgraph-mcp-clients.md) in the monorepo.
|
|
25
27
|
|
|
26
28
|
## Standalone
|
|
27
29
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@work-graph/mcp",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "MCP server for Work Graph — work items in intent/**/*.work.bvc",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@work-graph/cli": "^0.2.
|
|
19
|
+
"@work-graph/cli": "^0.2.8",
|
|
20
20
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
21
21
|
"zod": "^3.25.76"
|
|
22
22
|
},
|
|
@@ -340,10 +340,10 @@ server.tool(
|
|
|
340
340
|
|
|
341
341
|
server.tool(
|
|
342
342
|
'record_work_item_analysis',
|
|
343
|
-
'Write pre-execution feasibility analysis into WorkItem «Анализ» (стоит ли делать; not post-factum review). Text must come from
|
|
343
|
+
'Write pre-execution feasibility analysis into WorkItem «Анализ» (стоит ли делать; not post-factum review). Text must come from the connected agent LLM — server does not call models.',
|
|
344
344
|
{
|
|
345
345
|
workId: z.string().describe('WorkItem id'),
|
|
346
|
-
analysis: z.string().describe('Full analysis text produced
|
|
346
|
+
analysis: z.string().describe('Full analysis text produced by the connected agent'),
|
|
347
347
|
},
|
|
348
348
|
async (args) => jsonText(await recordWorkItemAnalysisFromMcp(args, rootOptions())),
|
|
349
349
|
);
|
|
@@ -8,7 +8,7 @@ const TOOL_RULES = [
|
|
|
8
8
|
'New WorkItem prose (Базис/Вектор/Цель/Проверки/title): Russian, min lengths per work-item-bvc-quality; forbidden jargon: closing analysis, Canon:, evidence, upstream, Track A, feeds_epics, depends_on=, «Стоит завести «…» в бэклог».',
|
|
9
9
|
'Analysis is pre-execution only: feasibility (стоит ли делать), scope, deps, risks, alternatives — NOT a post-factum report of what was built, tests run, or evidence already in the atom.',
|
|
10
10
|
'Write analysis in present/decision tense («Стоит брать», «Не стоит», «Можно стартовать»), never past retrospective («было оправдано», «можно было») even if work.status is done.',
|
|
11
|
-
'Analysis and decision are written only from
|
|
11
|
+
'Analysis and decision are written only from the connected agent (MCP client LLM): you read the task, reason, then call record_work_item_analysis / record_work_item_decision. WorkGraph server never calls LLM.',
|
|
12
12
|
'Do not mark a WorkItem done without concrete evidence.',
|
|
13
13
|
'Keep dashboard/kanban work in WorkGraph UI; MCP is the agent client bridge.',
|
|
14
14
|
].join('\n');
|
|
@@ -26,7 +26,7 @@ export const workgraphPrompts = {
|
|
|
26
26
|
analyze_work_item: {
|
|
27
27
|
description: 'Pre-execution feasibility analysis for a WorkItem (not post-factum review).',
|
|
28
28
|
argsSchema: { workId: 'WorkItem id to analyze' },
|
|
29
|
-
text: ({ workId }) => `Analyze WorkGraph item ${workId || '<workId>'}
|
|
29
|
+
text: ({ workId }) => `Analyze WorkGraph item ${workId || '<workId>'} — **before execution** (pre-execution feasibility, not a post-mortem).
|
|
30
30
|
|
|
31
31
|
This is a feasibility review (стоит ли делать), NOT a summary of work already done. Do NOT list implemented files, passing tests, or evidence from «Свидетельства» unless you judge future verification risk.
|
|
32
32
|
|
|
@@ -219,12 +219,12 @@ function renderRelatedTemplates(locale, theme) {
|
|
|
219
219
|
? [
|
|
220
220
|
['Контракт задачи', 'BVC-атом с Базисом, Вектором, Целью и проверками.', '/docs/bvc-spec'],
|
|
221
221
|
['Матрица проверок', 'Tier A/B/C readiness для работы агентов.', '/docs/verification-matrix'],
|
|
222
|
-
['MCP-инструменты', 'Контракты tools для Cursor
|
|
222
|
+
['MCP-инструменты', 'Контракты tools для MCP-клиентов (Cursor, Claude Code, …).', '/docs/mcp-tools'],
|
|
223
223
|
]
|
|
224
224
|
: [
|
|
225
225
|
['Work contract', 'BVC atom with Basis, Vector, Goal and checks.', '/docs/bvc-spec'],
|
|
226
226
|
['Verification matrix', 'Tier A/B/C readiness for agent work.', '/docs/verification-matrix'],
|
|
227
|
-
['MCP tools', 'Tool contracts for Cursor
|
|
227
|
+
['MCP tools', 'Tool contracts for MCP clients (Cursor, Claude Code, …).', '/docs/mcp-tools'],
|
|
228
228
|
];
|
|
229
229
|
return `<section class="related-templates">
|
|
230
230
|
<div class="related-inner">
|
|
@@ -390,7 +390,7 @@ function renderInstallInstructions(locale) {
|
|
|
390
390
|
<div>
|
|
391
391
|
<p class="eyebrow">${escapeHtml(locale === 'ru' ? 'Установка' : 'Installation')}</p>
|
|
392
392
|
<h2>${escapeHtml(locale === 'ru' ? 'Как установить Work Graph' : 'How to install Work Graph')}</h2>
|
|
393
|
-
<p>${escapeHtml(locale === 'ru' ? 'Быстрый путь — подключить Work Graph как MCP-сервер к Cursor или
|
|
393
|
+
<p>${escapeHtml(locale === 'ru' ? 'Быстрый путь — подключить Work Graph как MCP-сервер к вашему агенту (Cursor, Claude Code или другой MCP-клиент). Данные остаются локально в git.' : 'The fastest path is to connect Work Graph as an MCP server to your agent IDE (Cursor, Claude Code, or another MCP client). Data stays local in git.')}</p>
|
|
394
394
|
</div>
|
|
395
395
|
<ol>${steps.map(([title, command]) => `<li>
|
|
396
396
|
<strong>${escapeHtml(title)}</strong>
|
|
@@ -20,8 +20,8 @@ export {
|
|
|
20
20
|
|
|
21
21
|
const CONFIG_SCHEMA_V1 = 'workgraph.project.config.v1';
|
|
22
22
|
const CONFIG_SCHEMA_V2 = 'workgraph.project.config.v2';
|
|
23
|
-
const DEFAULT_CLI_VERSION = '0.2.
|
|
24
|
-
const DEFAULT_MCP_VERSION = '0.2.
|
|
23
|
+
const DEFAULT_CLI_VERSION = '0.2.8';
|
|
24
|
+
const DEFAULT_MCP_VERSION = '0.2.5';
|
|
25
25
|
|
|
26
26
|
const INDEX_STUB = `#Index<[
|
|
27
27
|
WorkItems:
|
|
@@ -322,12 +322,12 @@ export async function initWorkGraphProject(options = {}) {
|
|
|
322
322
|
'npm install',
|
|
323
323
|
'npm run workgraph:ui',
|
|
324
324
|
'Открыть http://127.0.0.1:4177/',
|
|
325
|
-
'Перезагрузить MCP в
|
|
325
|
+
'Перезагрузить MCP в IDE (сервер workgraph)',
|
|
326
326
|
]
|
|
327
327
|
: [
|
|
328
328
|
'npm run workgraph:ui',
|
|
329
329
|
'Открыть http://127.0.0.1:4177/',
|
|
330
|
-
'Перезагрузить MCP в
|
|
330
|
+
'Перезагрузить MCP в IDE (сервер workgraph)',
|
|
331
331
|
];
|
|
332
332
|
|
|
333
333
|
return {
|