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

Function requestOrgWriteAccess

packages/hosts/mcp/src/tool-server.ts:1012–1013  ·  view source on GitHub ↗
(extra: McpRequestJoinKeys)

Source from the content-addressed store, hash-verified

1010};
1011
1012const requestOrgWriteAccess = (extra: McpRequestJoinKeys): OrgWriteAccess =>
1013 extra.requestInfo?.headers[MCP_ORG_WRITE_ACCESS_HEADER] === "allowed" ? "allowed" : "denied";
1014
1015// `mcp.request.session_id` is emitted unconditionally (empty string when the
1016// transport carries none) to match the worker-side `annotateMcpRequest`

Callers 2

boundaryFunction · 0.85
runToolEffectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected