@mcpbox/mcpbox-claude 0.1.4 → 0.1.5

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.
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "mcpbox",
3
+ "owner": {
4
+ "name": "tupical"
5
+ },
6
+ "plugins": [
7
+ {
8
+ "name": "mcpbox-claude",
9
+ "source": "./",
10
+ "description": "MCPBox agent stack for Claude Code. One MCP server (https://mcpbox.ru/v1/mcp) exposing the daruma tracker tools plus the platform pipeline (torii→satori→enma→yatagarasu→fujin→daruma). Ships /mcpbox:{tasks,plan,next,mine,status,close,sync,capture,doctor,mode} + pipeline commands, SessionStart/Stop/UserPromptSubmit hooks, and a managed CLAUDE.md policy covering the full maturity stack."
11
+ }
12
+ ]
13
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mcpbox-claude",
3
- "description": "MCPBox × Claude Code glue. Drives the mcpbox MCP server (daruma tracker + full MeiSei pipeline torii→…→fujin→daruma). Ships /mcpbox:{tasks,plan,next,mine,status,close,sync,capture,doctor} and pipeline commands, SessionStart/Stop/UserPromptSubmit hooks, and a managed CLAUDE.md policy that makes mcpbox the default tracker AND pipeline substrate.",
4
- "version": "0.1.4",
3
+ "description": "MCPBox × Claude Code glue. Drives the mcpbox MCP server (daruma tracker + full MeiSei pipeline torii→…→fujin→daruma). Ships /mcpbox:{tasks,plan,next,mine,status,close,sync,capture,doctor,mode} and pipeline commands, SessionStart/Stop/UserPromptSubmit hooks, and a managed CLAUDE.md policy that makes mcpbox the default tracker AND pipeline substrate.",
4
+ "version": "0.1.5",
5
5
  "author": {
6
6
  "name": "tupical"
7
7
  },
package/README.md CHANGED
@@ -7,7 +7,7 @@ and drops a managed policy into each agent's native config file.
7
7
 
8
8
  Normally installed for you by `npx @mcpbox/mcpbox setup` (or
9
9
  `curl -fsSL https://mcpbox.ru/install.sh | sh`), which also registers the MCP
10
- server and picks Global vs Repository scope. Use this CLI directly to manage
10
+ server and picks Repository, Repository (user scope), or Global. Use this CLI directly to manage
11
11
  just the policy.
12
12
 
13
13
  ## What it manages
@@ -13,8 +13,9 @@
13
13
  // mcpbox server already exposes the pipeline tools; add an omc-team driver only
14
14
  // if a CLI-driven execution loop is actually requested.
15
15
 
16
- import { readFileSync } from "node:fs";
16
+ import { existsSync, readFileSync } from "node:fs";
17
17
  import { promises as fs } from "node:fs";
18
+ import { homedir } from "node:os";
18
19
  import { fileURLToPath } from "node:url";
19
20
  import { dirname, join, resolve } from "node:path";
20
21
  import { spawnSync } from "node:child_process";
@@ -50,6 +51,10 @@ Usage:
50
51
  mcpbox-claude kimi-uninit [--dir DIR]
51
52
  mcpbox-claude doctor [--json] Check the mcpbox MCP server + policy are wired.
52
53
  mcpbox-claude mode [off|lite|full] Get/set pipeline strictness (how raw ideas route).
54
+ mcpbox-claude export-marketplace [--dir DIR]
55
+ Mirror this package to a stable directory usable as
56
+ a Claude Code marketplace; prints the path.
57
+ Default: ~/.agents/mcpbox/marketplace
53
58
  mcpbox-claude --version | -v
54
59
  mcpbox-claude --help | -h
55
60
  `;
@@ -203,6 +208,25 @@ async function cmdDoctor(rest) {
203
208
  process.exit(ready ? 0 : 1);
204
209
  }
205
210
 
211
+ // The marketplace repo is private, so `claude plugin marketplace add
212
+ // tupical/mcpbox.ru` only resolves for users with access to it. This package is
213
+ // public and carries .claude-plugin/marketplace.json, so it can be the
214
+ // marketplace itself — but Claude Code reads a directory marketplace in place
215
+ // rather than copying it, and npx unpacks us into a disposable cache. Mirror
216
+ // the package to a stable path first.
217
+ async function cmdExportMarketplace(rest) {
218
+ const { projectDir } = parseDirFlag(rest);
219
+ const source = resolve(__dirname, "..");
220
+ const target = resolve(projectDir ?? join(homedir(), ".agents", "mcpbox", "marketplace"));
221
+ if (existsSync(target) && !existsSync(join(target, ".claude-plugin", "marketplace.json"))) {
222
+ throw new Error(`${target} exists and is not an mcpbox marketplace — refusing to overwrite it`);
223
+ }
224
+ await fs.rm(target, { recursive: true, force: true });
225
+ await fs.mkdir(dirname(target), { recursive: true });
226
+ await fs.cp(source, target, { recursive: true });
227
+ process.stdout.write(`${target}\n`);
228
+ }
229
+
206
230
  async function main(argv) {
207
231
  const [, , cmd, ...rest] = argv;
208
232
  switch (cmd) {
@@ -240,6 +264,8 @@ async function main(argv) {
240
264
  return cmdDoctor(rest);
241
265
  case "mode":
242
266
  return cmdMode(rest);
267
+ case "export-marketplace":
268
+ return cmdExportMarketplace(rest);
243
269
  default:
244
270
  process.stderr.write(`Unknown command: ${cmd}\n\n${HELP}`);
245
271
  process.exit(2);
package/lib/policy.mjs CHANGED
@@ -237,7 +237,7 @@ daruma execution задача/план (терминальный слой
237
237
  - \`/mcpbox:next\` — claim the next ready task.
238
238
  - \`/mcpbox:mine\` — tasks claimed by this session.
239
239
  - \`/mcpbox:status\` — server + pipeline health (\`daruma_healthz\`, recent runs).
240
- - \`mcpbox mode [off|lite|full]\` — show or set the shared pipeline mode.
240
+ - \`/mcpbox:mode [off|lite|full]\` — show or set the shared pipeline mode.
241
241
  - \`/mcpbox:pipeline-run "<idea>"\` — open a maturity run from raw input.
242
242
  - \`/mcpbox:trace <run_id>\` — trace a run's lineage and per-hop status.
243
243
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpbox/mcpbox-claude",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "MCPBox agent harness for Claude Code: managed policy (daruma tracker + full pipeline), hooks, and slash commands over the single mcpbox MCP server.",
5
5
  "type": "module",
6
6
  "publishConfig": {