MCPcopy Index your code
hub / github.com/simstudioai/sim / getTool

Function getTool

apps/sim/executor/handlers/pi/ssh-tools.test.ts:47–52  ·  view source on GitHub ↗
(repoPath: string, files: Record<string, string>, name: string)

Source from the content-addressed store, hash-verified

45}
46
47function getTool(repoPath: string, files: Record<string, string>, name: string) {
48 const tools = buildSshToolSpecs(createSession(files), repoPath)
49 const tool = tools.find((t) => t.name === name)
50 if (!tool) throw new Error(`tool not found: ${name}`)
51 return tool
52}
53
54describe('buildSshToolSpecs', () => {
55 beforeEach(() => {

Callers 1

ssh-tools.test.tsFile · 0.70

Calls 2

buildSshToolSpecsFunction · 0.90
createSessionFunction · 0.70

Tested by

no test coverage detected