MCPcopy Create free account
hub / github.com/Noumena-Network/code / constructor

Method constructor

src/tools/WebFetchTool/utils.ts:39–48  ·  view source on GitHub ↗
(public readonly domain: string)

Source from the content-addressed store, hash-verified

37
38class EgressBlockedError extends Error {
39 constructor(public readonly domain: string) {
40 super(
41 JSON.stringify({
42 error_type: 'EGRESS_BLOCKED',
43 domain,
44 message: `Access to ${domain} is blocked by the network egress proxy.`,
45 }),
46 )
47 this.name = 'EgressBlockedError'
48 }
49}
50
51// Cache for storing fetched URL content

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected