@radicaltools/mcp 0.6.2 → 0.6.3

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 CHANGED
@@ -16,6 +16,8 @@ To do it by hand, run the published server without cloning this repository:
16
16
  npx -y @radicaltools/mcp --folder /absolute/path/to/my-model
17
17
  ```
18
18
 
19
+ The server is also listed in the [MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.radicaltools/mcp`, for clients that install servers from it. They ask for the model's folder.
20
+
19
21
  For reproducible setups, pin a version, for example `@radicaltools/mcp@0.2.0`.
20
22
  To connect a coding agent, use `npx` as the command, with
21
23
  `["-y", "@radicaltools/mcp@0.2.0", "--folder", "/absolute/path/to/my-model"]`
@@ -32,7 +34,7 @@ npm run build -w @radicaltools/mcp
32
34
  node apps/mcp/dist/index.js --folder /absolute/path/to/my-model
33
35
  ```
34
36
 
35
- The last command waits for MCP messages on stdin; it prints no banner to stdout. `--folder` may be relative to the directory the server starts in. A missing or empty folder (dot files such as `.git` don't count) becomes a new, empty model; `--metamodel radical` or `c4` picks its metamodel (default `radical`, the Radical metamodel Studio starts new models with). A folder with other files and no `radical.md` is refused. To connect Codex, run the following with absolute paths (or add the equivalent `command` and `args` in [Codex's MCP configuration](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)):
37
+ The last command waits for MCP messages on stdin; it prints no banner to stdout. `--folder <path>` may also be written `--folder=<path>`, and may be relative to the directory the server starts in. A missing or empty folder (dot files such as `.git` don't count) becomes a new, empty model; `--metamodel radical` or `c4` picks its metamodel (default `radical`, the Radical metamodel Studio starts new models with). A folder with other files and no `radical.md` is refused. To connect Codex, run the following with absolute paths (or add the equivalent `command` and `args` in [Codex's MCP configuration](https://learn.chatgpt.com/docs/extend/mcp?surface=cli)):
36
38
 
37
39
  ```sh
38
40
  codex mcp add radical-folder -- node /absolute/path/to/radical.tools/apps/mcp/dist/index.js --folder /absolute/path/to/my-model
@@ -177,3 +179,19 @@ is left.
177
179
  To check the package without a release, use **Actions → Publish to npm → Run
178
180
  workflow**, select `main`, choose **package: mcp**, and leave **dry-run**
179
181
  enabled. With **dry-run** disabled it publishes, but only from `main`.
182
+
183
+ ### MCP Registry
184
+
185
+ After the packages are on npm, the job *List in the MCP Registry* of the same
186
+ workflow publishes `server.json` to the
187
+ [MCP Registry](https://registry.modelcontextprotocol.io) as
188
+ `io.github.radicaltools/mcp`. It signs in through GitHub OIDC, so it needs no
189
+ secret. A pre-release and a version the registry already has are left out.
190
+
191
+ - The name is in `server.json` and in `mcpName` of `package.json`; the registry
192
+ compares the two. Do not change it: a new name is a new entry.
193
+ - `npm run release` sets the version in both files, and a release tag is refused
194
+ while they differ.
195
+ - A published version cannot be changed. `mcp-publisher status` marks it
196
+ `deprecated` or `deleted`.
197
+ - If only this job fails, rerun it: npm is left as it is.
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  var define_RADICAL_BUILD_default;
32
32
  var init_define_RADICAL_BUILD = __esm({
33
33
  "<define:__RADICAL_BUILD__>"() {
34
- define_RADICAL_BUILD_default = { version: "0.6.2", commit: "35090d3", date: "2026-11-30", release: true };
34
+ define_RADICAL_BUILD_default = { version: "0.6.3", commit: "3dd1f0e", date: "2026-12-02", release: true };
35
35
  }
36
36
  });
37
37
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RADICAL_BUILD
3
- } from "./chunk-U5QA6HBS.js";
3
+ } from "./chunk-BCUSYO3J.js";
4
4
 
5
5
  // ../../packages/layout/src/elkLayout.ts
6
6
  init_define_RADICAL_BUILD();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RADICAL_BUILD
3
- } from "./chunk-U5QA6HBS.js";
3
+ } from "./chunk-BCUSYO3J.js";
4
4
 
5
5
  // ../../packages/assay/node_modules/unpdf/dist/index.mjs
6
6
  init_define_RADICAL_BUILD();
@@ -41,7 +41,7 @@ async function resolvePDFJSImports(pdfjsResolver, { force = false } = {}) {
41
41
  }
42
42
  }
43
43
  try {
44
- const { resolvePDFJS } = await import("./pdfjs-PK44HJZP.js");
44
+ const { resolvePDFJS } = await import("./pdfjs-SO5KNPYY.js");
45
45
  resolvedModule = await resolvePDFJS();
46
46
  } catch (error) {
47
47
  console.error(error);
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  applyElkLayout,
3
3
  applyTreeLayout
4
- } from "./chunk-DQYB4GAU.js";
5
- import "./chunk-U5QA6HBS.js";
4
+ } from "./chunk-LENKHMHC.js";
5
+ import "./chunk-BCUSYO3J.js";
6
6
  export {
7
7
  applyElkLayout,
8
8
  applyTreeLayout
package/dist/index.js CHANGED
@@ -83,13 +83,13 @@ import {
83
83
  viewShowsEveryNode,
84
84
  wikiDepthOf,
85
85
  withCanvasPositions
86
- } from "./chunk-DQYB4GAU.js";
86
+ } from "./chunk-LENKHMHC.js";
87
87
  import {
88
88
  __commonJS,
89
89
  __toESM,
90
90
  define_RADICAL_BUILD_default,
91
91
  init_define_RADICAL_BUILD
92
- } from "./chunk-U5QA6HBS.js";
92
+ } from "./chunk-BCUSYO3J.js";
93
93
 
94
94
  // ../../node_modules/webcola/dist/src/powergraph.js
95
95
  var require_powergraph = __commonJS({
@@ -23059,7 +23059,7 @@ function unchangedResult(nodes, relations, style = "curved") {
23059
23059
  }
23060
23060
  async function runSmartLayoutELKPhase(inputNodes, inputRelations, metamodel, onProgress) {
23061
23061
  const { nodes, relations } = projectToVisibleGraph(inputNodes, inputRelations);
23062
- const { applyElkLayout } = await import("./elkLayout-SUGCAZZ5.js");
23062
+ const { applyElkLayout } = await import("./elkLayout-3ESOJH2P.js");
23063
23063
  const depth2 = maxContainmentDepth(metamodel);
23064
23064
  const mmDirection = depth2 >= 2 ? "RIGHT" : "DOWN";
23065
23065
  const engines = [
@@ -31440,7 +31440,7 @@ function htmlToMarkdown(html) {
31440
31440
  `;
31441
31441
  }
31442
31442
  async function pdfText(bytes) {
31443
- const { extractText, getDocumentProxy } = await import("./dist-MPDDP2CV.js");
31443
+ const { extractText, getDocumentProxy } = await import("./dist-R4LVSFSS.js");
31444
31444
  let timer2;
31445
31445
  const late = new Promise((_, fail3) => {
31446
31446
  timer2 = setTimeout(() => fail3(new Error(`not read within ${PDF_TIMEOUT / 1e3} s`)), PDF_TIMEOUT);
@@ -43610,6 +43610,10 @@ var USAGE = `Usage: radical-mcp [--folder <model-folder>] [--metamodel ${Object.
43610
43610
  --version print the version`;
43611
43611
  function parseArgs(args) {
43612
43612
  const values = /* @__PURE__ */ new Map();
43613
+ args = args.flatMap((arg) => {
43614
+ const [, flag, value] = /^(--(?:folder|metamodel))=(.*)$/s.exec(arg) ?? [];
43615
+ return flag ? [flag, value] : [arg];
43616
+ });
43613
43617
  for (let i = 0; i < args.length; i += 2) {
43614
43618
  const [flag, value] = [args[i], args[i + 1]];
43615
43619
  if (flag !== "--folder" && flag !== "--metamodel" || !value || values.has(flag)) throw new Error(USAGE);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_define_RADICAL_BUILD
3
- } from "./chunk-U5QA6HBS.js";
3
+ } from "./chunk-BCUSYO3J.js";
4
4
 
5
5
  // ../../packages/assay/node_modules/unpdf/dist/pdfjs.mjs
6
6
  init_define_RADICAL_BUILD();
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@radicaltools/mcp",
3
- "version": "0.6.2",
3
+ "mcpName": "io.github.radicaltools/mcp",
4
+ "version": "0.6.3",
4
5
  "description": "Local MCP server for Radical Markdown model folders.",
5
6
  "license": "MIT",
6
7
  "homepage": "https://radical.tools",