@opencraw/mcp 0.1.9 → 0.1.10
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 +13 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/russoedu/open.craw/main/docs/assets/opencraw-logo.svg" alt="OpenCraw" width="360">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# @opencraw/mcp
|
|
2
6
|
|
|
3
|
-
An MCP (Model Context Protocol) server exposing [`@opencraw/core`](
|
|
4
|
-
directly: probe a page, validate recipes, run a crawl, list what's already authored. Local transport only
|
|
5
|
-
(stdio) — the host launches it as a subprocess, the same shape as the [`opencraw` cli](
|
|
7
|
+
An MCP (Model Context Protocol) server exposing [`@opencraw/core`](https://github.com/russoedu/open.craw/blob/main/packages/core) as tools an agent can call
|
|
8
|
+
directly: probe a page, validate recipes, run a crawl, list what's already authored, compare two runs. Local transport only
|
|
9
|
+
(stdio) — the host launches it as a subprocess, the same shape as the [`opencraw` cli](https://github.com/russoedu/open.craw/blob/main/packages/cli).
|
|
6
10
|
|
|
7
11
|
For a shared, remote endpoint that authors recipes where they will run (and publishes them to a crawl host), see
|
|
8
|
-
[`@opencraw/azure-durable`](
|
|
12
|
+
[`@opencraw/azure-durable`](https://github.com/russoedu/open.craw/blob/main/packages/azure-durable/README.md#write-recipes-over-mcp)'s `/mcp`.
|
|
9
13
|
|
|
10
|
-
This does **not** auto-author recipes from a sentence. The
|
|
11
|
-
`opencraw` cli gives a terminal; the calling agent still writes the JSON recipes, using `probe` and
|
|
14
|
+
This does **not** auto-author recipes from a sentence. The five tools are, `list_recipes` aside, the same
|
|
15
|
+
primitives the `opencraw` cli gives a terminal; the calling agent still writes the JSON recipes, using `probe` and
|
|
12
16
|
`validate` to iterate, the same way this project's own example recipes were built by hand. An agent that
|
|
13
17
|
can write files passes their `paths`; one that can't (a chat-only host) passes the `recipes` inline.
|
|
14
18
|
|
|
@@ -36,7 +40,7 @@ a module whose default export is `{ name: function }` is read as hooks alone. On
|
|
|
36
40
|
names it, never a tool call, so an agent can run recipes that use your plugins but can't make the server load
|
|
37
41
|
a module of its choosing.
|
|
38
42
|
|
|
39
|
-
`OPENCRAW_ACCESS` points at an access config ([access.md](
|
|
43
|
+
`OPENCRAW_ACCESS` points at an access config ([access.md](https://github.com/russoedu/open.craw/blob/main/docs/recipes/access.md)): proxy profiles, with
|
|
40
44
|
credentials as `{{env.NAME}}` read from the server's environment. The `probe` and `run` tools then take an
|
|
41
45
|
`access` argument naming a profile. The file and the credentials never pass through a tool call.
|
|
42
46
|
|
|
@@ -66,8 +70,8 @@ spreadsheet type or `text/csv`, or a local `.xlsx`, `.csv` or `.tsv` path) it ad
|
|
|
66
70
|
`workbook: { csv?: { encoding, delimiter }, sheets, rows, headers }`. For a presentation it adds
|
|
67
71
|
`deck: { width, height, slides, headers, charts, grids }`, and for JSON, JSON Lines or YAML
|
|
68
72
|
`json: { format, type, tree, lists }`: the structure, and every list of records with its path. An HTML page
|
|
69
|
-
adds `html: { tables, outline?, frontMatter? }`: its tables' header rows, and for Markdown
|
|
70
|
-
front matter keys.
|
|
73
|
+
adds `html: { tables, outline?, frontMatter? }`: its tables' header rows, and for Markdown or a Word document its
|
|
74
|
+
sections and front matter keys. XML (a feed, a sitemap) adds `xml: { root, namespaces, lists, tree, sitemap? }`.
|
|
71
75
|
|
|
72
76
|
### `validate`
|
|
73
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencraw/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.esm.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"!**/*.js.map"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@opencraw/core": "^0.1.
|
|
28
|
-
"@opencraw/cli": "^0.1.
|
|
27
|
+
"@opencraw/core": "^0.1.10",
|
|
28
|
+
"@opencraw/cli": "^0.1.10",
|
|
29
29
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
30
30
|
"playwright": "^1.63.0",
|
|
31
31
|
"zod": "^4.6.5"
|