MCPcopy Create free account
hub / github.com/arctic-cli/interface / enabled

Function enabled

packages/arctic/src/tool/registry.ts:133–150  ·  view source on GitHub ↗
(agent: Agent.Info)

Source from the content-addressed store, hash-verified

131 }
132
133 export async function enabled(agent: Agent.Info): Promise<Record<string, boolean>> {
134 const result: Record<string, boolean> = {}
135
136 if (agent.permission.edit === "deny") {
137 result["edit"] = false
138 result["write"] = false
139 }
140 if (agent.permission.bash["*"] === "deny" && Object.keys(agent.permission.bash).length === 1) {
141 result["bash"] = false
142 }
143 if (agent.permission.webfetch === "deny") {
144 result["webfetch"] = false
145 result["codesearch"] = false
146 result["websearch"] = false
147 }
148
149 return result
150 }
151}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected