@quantod/qq 1.0.4 → 1.0.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.
- package/package.json +1 -1
- package/src/mcp.ts +1 -1
- package/src/resources/chrome.md +1 -1
- package/src/resources/guide.md +6 -0
package/package.json
CHANGED
package/src/mcp.ts
CHANGED
|
@@ -212,7 +212,7 @@ export async function startMcp(fixedPort?: number): Promise<void> {
|
|
|
212
212
|
Available resources:
|
|
213
213
|
- guide — Complete reference: mental model, all MCP tools with parameters/returns/errors, SDK usage examples. Read this before using any QQ tool.
|
|
214
214
|
- pipeline_design — Step-by-step pipeline design guide: how to design stages, write PIPELINES.md, and run the pre-implementation checklist.
|
|
215
|
-
- chrome — Chrome browser automation patterns for QQ pipelines:
|
|
215
|
+
- chrome — Chrome browser automation patterns for QQ pipelines: read before using Chrome with pipelines.`,
|
|
216
216
|
inputSchema: { resource: z.enum(RESOURCES) },
|
|
217
217
|
}, ({ resource }) => {
|
|
218
218
|
try { return ok(loadResource(resource)); }
|
package/src/resources/chrome.md
CHANGED
|
@@ -6,7 +6,7 @@ Read the `guide` resource first — this document covers Chrome-specific pattern
|
|
|
6
6
|
|
|
7
7
|
## How to get data out of Chrome
|
|
8
8
|
|
|
9
|
-
Chrome devtools and connectors usually struggle to get large data packages from web pages in Chrome. Solution: download + load_file. The browser's download API has no mixed content restrictions. Trigger a download from the HTTPS page, then call the `load_file` MCP tool to ingest the file.
|
|
9
|
+
Chrome devtools and connectors usually struggle to get large data packages from web pages in Chrome. Solution: download + load_file. The browser's download API has no mixed content restrictions. Trigger a download from the HTTPS page, then call the `load_file` MCP tool to ingest the file. Don't route large data through the context.
|
|
10
10
|
|
|
11
11
|
**In the injected script (HTTPS page):**
|
|
12
12
|
```javascript
|
package/src/resources/guide.md
CHANGED
|
@@ -511,3 +511,9 @@ Use `replace: true` only when you own the payload as a structured object (e.g.,
|
|
|
511
511
|
Before creating a new pipeline, read the `pipeline_design` resource. It walks through the design process, the PIPELINES.md template, a filled example, and a pre-implementation checklist.
|
|
512
512
|
|
|
513
513
|
Document every pipeline in `PIPELINES.md` before pushing a single item.
|
|
514
|
+
|
|
515
|
+
---
|
|
516
|
+
|
|
517
|
+
## Chrome Browser Pipelines
|
|
518
|
+
|
|
519
|
+
For pipelines that involve Chrome browser automation (scraping, navigation, form submission), read the `chrome` resource.
|