feat(browser): add sensitive action controls and read-only noise reduction (#22867)

This commit is contained in:
cynthialong0-0
2026-03-20 15:34:04 -07:00
committed by GitHub
parent 11ec4ac2f8
commit e8fe43bd69
11 changed files with 342 additions and 1 deletions
@@ -160,6 +160,11 @@ describe('PolicyEngine', () => {
engine = new PolicyEngine({ rules });
// Match with unqualified name + serverName
expect((await engine.check({ name: 'tool' }, 'my-server')).decision).toBe(
PolicyDecision.ALLOW,
);
// Match with qualified name (standard)
expect(
(await engine.check({ name: 'mcp_my-server_tool' }, 'my-server'))