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

Function tools

packages/arctic/src/tool/registry.ts:114–131  ·  view source on GitHub ↗
(providerID: string)

Source from the content-addressed store, hash-verified

112 }
113
114 export async function tools(providerID: string) {
115 const tools = await all()
116 const result = await Promise.all(
117 tools
118 .filter((t) => {
119 // Enable websearch/codesearch for zen users OR via enable flag
120 if (t.id === "codesearch" || t.id === "websearch") {
121 return providerID === "arctic" || Flag.ARCTIC_ENABLE_EXA
122 }
123 return true
124 })
125 .map(async (t) => ({
126 id: t.id,
127 ...(await t.init()),
128 })),
129 )
130 return result
131 }
132
133 export async function enabled(agent: Agent.Info): Promise<Record<string, boolean>> {
134 const result: Record<string, boolean> = {}

Callers

nothing calls this directly

Calls 2

allFunction · 0.70
initMethod · 0.45

Tested by

no test coverage detected