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",
"version": "0.0.48",
"description": "Playwright MCP. 90% less context window. 10x more capable (full playwright API)",
"permissions": [
"debugger",
"tabs"
],
"host_permissions": [
"<all_urls>"
],
"permissions": ["debugger"],
"host_permissions": ["<all_urls>"],
"background": {
"service_worker": "lib/background.mjs",
"type": "module"
+6 -4
View File
@@ -25,12 +25,14 @@ export default defineConfig({
dest: '.',
transform: (content) => {
const manifest = JSON.parse(content);
// Only include tabs permission during testing
if (!process.env.TESTING) {
manifest.permissions = manifest.permissions.filter((p: string) => p !== 'tabs');
if (process.env.TESTING) {
if (!manifest.permissions.includes('tabs')) {
manifest.permissions.push('tabs');
}
}
return JSON.stringify(manifest, null, 2);
}
},