io.github.CloudCorpRecords/headlessstage
Browser automation: navigate, click, fill, screenshot and evaluate in a headless browser.
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@reneturcios/headlessstageclaude mcp add headlessstage -- npx -y @reneturcios/headlessstage@0.1.0 mcp
{
"mcpServers": {
"headlessstage": {
"command": "npx",
"args": [
"-y",
"@reneturcios/headlessstage@0.1.0",
"mcp"
]
}
}
}
ghcr.io/cloudcorprecords/headlessstage:0.1.0claude mcp add headlessstage -- docker run -i --rm ghcr.io/cloudcorprecords/headlessstage:0.1.0 mcp
{
"mcpServers": {
"headlessstage": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/cloudcorprecords/headlessstage:0.1.0",
"mcp"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
headlessstage
Browser automation through a headless browser page, as a CLI and a stdio MCP server in one bin. Navigate to a URL, click, hover, fill and select form elements, take named screenshots and evaluate JavaScript in the page.
The browser itself sits behind an injectable executor interface
(BrowserExecutor in src/types.ts). This package bundles no
browser and downloads none: with no executor configured, browser
commands fail with a clear "Browser unavailable" error. Deployments
inject a Puppeteer-compatible executor to drive a real browser.
Launch options that weaken browser security (--no-sandbox,
--disable-web-security, --allow-insecure-localhost) are
rejected unless a call explicitly passes allowDangerous: true.
Install
npx -y @reneturcios/headlessstage mcp
CLI
headlessstage mcp # stdio MCP server
headlessstage navigate <url>
headlessstage screenshot <name> [selector]
headlessstage click <selector>
headlessstage fill <selector> <value>
headlessstage evaluate <script>
headlessstage --version
Exit codes: 0 success, 1 browser error, 2 usage error.
MCP tools
| Tool | Purpose |
|---|---|
puppeteer_navigate | Navigate to any URL in the browser |
puppeteer_screenshot | Capture screenshots of the entire page or specific elements |
puppeteer_click | Click elements on the page |
puppeteer_hover | Hover elements on the page |
puppeteer_fill | Fill out input fields |
puppeteer_select | Select an element with a SELECT tag |
puppeteer_evaluate | Execute JavaScript in the browser console |
MCP client config:
{
"mcpServers": {
"headlessstage": {
"command": "npx",
"args": ["-y", "@reneturcios/headlessstage", "mcp"]
}
}
}
Docker
docker run -i ghcr.io/cloudcorprecords/headlessstage # MCP server
docker run --rm ghcr.io/cloudcorprecords/headlessstage --version
Development
npm install
npm run build
npm test
MIT license.
الأسئلة الشائعة
ما هو io.github.CloudCorpRecords/headlessstage؟
Browser automation: navigate, click, fill, screenshot and evaluate in a headless browser.
كيف أثبّت io.github.CloudCorpRecords/headlessstage؟
يعمل على جهازك. في Claude Code: claude mcp add headlessstage -- npx -y @reneturcios/headlessstage@0.1.0 mcp. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.CloudCorpRecords/headlessstage إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.CloudCorpRecords/headlessstage مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون io.github.CloudCorpRecords/headlessstage؟
ينشره CloudCorpRecords. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.