Skip to content

feat(static): add React Expo CSP parity#3

Merged
vatsalyagoel merged 10 commits into
mainfrom
feature/mcp-static-profile-parity
May 18, 2026
Merged

feat(static): add React Expo CSP parity#3
vatsalyagoel merged 10 commits into
mainfrom
feature/mcp-static-profile-parity

Conversation

@vatsalyagoel
Copy link
Copy Markdown
Collaborator

Adds React/Expo static-site CSP support across policy generation, CLI workflows, and MCP tools, including scoped style-src-attr fallback behavior without broad script/style unsafe-inline allowances.

  • Add React/Expo static profile detection and static hash policy generation behavior
  • Update policy optimization and scoring for scoped style attribute fallback tradeoffs
  • Expose static profile controls through CLI commands and documentation
  • Add MCP parity for cookies, nonce/strict-dynamic controls, hash_static, scoped session comparison, and updated MCP docs
  • Add focused unit and integration coverage for static, CLI, policy, and MCP behavior

Validation:

  • npx prettier --check ...
  • git diff --check
  • LSP diagnostics on changed MCP TypeScript files
  • npm run typecheck
  • npm run build
  • npm run lint
  • npm run test (41 files, 1153 tests)

Notes:

  • No PR template was found.
  • Excluded from this PR: package-lock.json and internal-docs/csp-is-dead.md.

vatsalyagoel and others added 10 commits May 16, 2026 21:41
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@vatsalyagoel vatsalyagoel merged commit e5224a2 into main May 18, 2026
1 check passed
@vatsalyagoel vatsalyagoel deleted the feature/mcp-static-profile-parity branch May 18, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant