chore: generate config section from config.d.ts (#1224)

This commit is contained in:
Simon Knott
2025-11-29 00:38:42 +01:00
committed by GitHub
parent 64f65ccd10
commit f4df37ca71
2 changed files with 45 additions and 2 deletions

View File

@@ -451,6 +451,8 @@ npx @playwright/mcp@latest --config path/to/config.json
<details>
<summary>Configuration file schema</summary>
<!--- Config generated by update-readme.js -->
```typescript
{
/**
@@ -576,6 +578,18 @@ npx @playwright/mcp@latest --config path/to/config.json
*/
outputDir?: string;
network?: {
/**
* List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
*/
allowedOrigins?: string[];
/**
* List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
*/
blockedOrigins?: string[];
};
/**
* Specify the attribute to use for test ids, defaults to "data-testid".
*/
@@ -597,8 +611,11 @@ npx @playwright/mcp@latest --config path/to/config.json
* Whether to send image responses to the client. Can be "allow", "omit", or "auto". Defaults to "auto", which sends images if the client can display them.
*/
imageResponses?: 'allow' | 'omit';
};
}
```
<!--- End of config generated section -->
</details>
### Standalone MCP server