crawlforge-mcp-server 3.0.5 → 3.0.7
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/CLAUDE.md +1 -1
- package/package.json +1 -1
- package/src/core/ActionExecutor.js +7 -2
package/CLAUDE.md
CHANGED
|
@@ -473,7 +473,7 @@ try {
|
|
|
473
473
|
## 🎯 Project Management Rules
|
|
474
474
|
|
|
475
475
|
- always have the project manager work with the appropriate sub agents in parallel
|
|
476
|
-
- i want the project manager to always be in charge and then get the appropriate sub agents to work on the tasks in parallel. each sub agent must work on their strengths. when they are done they let the project manager know and the project manager updates the @PRODUCTION_READINESS.md file.
|
|
476
|
+
- i want the project manager to always be in charge and then get the appropriate sub agents to work on the tasks in parallel. each sub agent must work on their strengths. when they are done they let the project manager know and the project manager updates the @docs/PRODUCTION_READINESS.md file.
|
|
477
477
|
- whenever a phase is completed push all changes to github
|
|
478
478
|
- put all the documentation md files into the docs folders to keep everything organized
|
|
479
479
|
- every time you finish a phase run npm run build and fix all errors. do this before you push to github.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crawlforge-mcp-server",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "CrawlForge MCP Server - Professional Model Context Protocol server with 19 comprehensive web scraping, crawling, and content processing tools.",
|
|
5
5
|
"main": "server.js",
|
|
6
6
|
"bin": {
|
|
@@ -739,12 +739,17 @@ export class ActionExecutor extends EventEmitter {
|
|
|
739
739
|
* @returns {Promise<Object>} Screenshot result
|
|
740
740
|
*/
|
|
741
741
|
async captureScreenshot(page, options = {}) {
|
|
742
|
+
const format = options.format || 'png';
|
|
742
743
|
const screenshotOptions = {
|
|
743
|
-
type:
|
|
744
|
-
quality: options.quality || 80,
|
|
744
|
+
type: format,
|
|
745
745
|
fullPage: options.fullPage || false
|
|
746
746
|
};
|
|
747
747
|
|
|
748
|
+
// Quality option is only supported for JPEG screenshots
|
|
749
|
+
if (format === 'jpeg' || format === 'jpg') {
|
|
750
|
+
screenshotOptions.quality = options.quality || 80;
|
|
751
|
+
}
|
|
752
|
+
|
|
748
753
|
let screenshot;
|
|
749
754
|
if (options.selector) {
|
|
750
755
|
const element = await page.waitForSelector(options.selector);
|