@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 +19 -1
- package/dist/{chunk-U5QA6HBS.js → chunk-BCUSYO3J.js} +1 -1
- package/dist/{chunk-DQYB4GAU.js → chunk-LENKHMHC.js} +1 -1
- package/dist/{dist-MPDDP2CV.js → dist-R4LVSFSS.js} +2 -2
- package/dist/{elkLayout-SUGCAZZ5.js → elkLayout-3ESOJH2P.js} +2 -2
- package/dist/index.js +8 -4
- package/dist/{pdfjs-PK44HJZP.js → pdfjs-SO5KNPYY.js} +1 -1
- package/package.json +2 -1
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
|
|
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.
|
|
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-
|
|
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-
|
|
44
|
+
const { resolvePDFJS } = await import("./pdfjs-SO5KNPYY.js");
|
|
45
45
|
resolvedModule = await resolvePDFJS();
|
|
46
46
|
} catch (error) {
|
|
47
47
|
console.error(error);
|
package/dist/index.js
CHANGED
|
@@ -83,13 +83,13 @@ import {
|
|
|
83
83
|
viewShowsEveryNode,
|
|
84
84
|
wikiDepthOf,
|
|
85
85
|
withCanvasPositions
|
|
86
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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);
|
package/package.json
CHANGED