MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / approve

Function approve

packages/hosts/mcp-apps-shell/src/shell/shell-app.tsx:995–1000  ·  view source on GitHub ↗
(remember: boolean)

Source from the content-addressed store, hash-verified

993 const approval = useElicitationApproval(interaction.requestedSchema);
994
995 const approve = (remember: boolean) => {
996 const content = approval.content();
997 if (content === null) return;
998 if (remember && pending.grantKey !== null) rememberApprovalGrant(pending.grantKey);
999 onComplete({ action: "accept", content });
1000 };
1001
1002 const openUrl = () => {
1003 if (!url) return;

Callers 1

TrustedInteractionModalFunction · 0.85

Calls 1

rememberApprovalGrantFunction · 0.85

Tested by

no test coverage detected