add tabs only in testing

This commit is contained in:
Tommy D. Rossi
2025-11-24 13:49:16 +01:00
parent fb658853b3
commit 8cd2aad719
2 changed files with 8 additions and 11 deletions
+2 -7
View File
@@ -3,13 +3,8 @@
"name": "Playwriter MCP", "name": "Playwriter MCP",
"version": "0.0.48", "version": "0.0.48",
"description": "Playwright MCP. 90% less context window. 10x more capable (full playwright API)", "description": "Playwright MCP. 90% less context window. 10x more capable (full playwright API)",
"permissions": [ "permissions": ["debugger"],
"debugger", "host_permissions": ["<all_urls>"],
"tabs"
],
"host_permissions": [
"<all_urls>"
],
"background": { "background": {
"service_worker": "lib/background.mjs", "service_worker": "lib/background.mjs",
"type": "module" "type": "module"
+6 -4
View File
@@ -25,12 +25,14 @@ export default defineConfig({
dest: '.', dest: '.',
transform: (content) => { transform: (content) => {
const manifest = JSON.parse(content); const manifest = JSON.parse(content);
// Only include tabs permission during testing // Only include tabs permission during testing
if (!process.env.TESTING) { if (process.env.TESTING) {
manifest.permissions = manifest.permissions.filter((p: string) => p !== 'tabs'); if (!manifest.permissions.includes('tabs')) {
manifest.permissions.push('tabs');
}
} }
return JSON.stringify(manifest, null, 2); return JSON.stringify(manifest, null, 2);
} }
}, },