MCPcopy Create free account
hub / github.com/cloudflare/agents / gitTools

Function gitTools

packages/shell/src/git/provider.ts:133–142  ·  view source on GitHub ↗
(
  workspace: Workspace,
  options?: GitToolsOptions
)

Source from the content-addressed store, hash-verified

131
132/** Create a git ToolProvider from a Workspace. */
133export function gitTools(
134 workspace: Workspace,
135 options?: GitToolsOptions
136): ToolProvider {
137 const fs = new WorkspaceFileSystem(workspace);
138 return createGitToolProvider(
139 createGit(fs, options?.dir ?? "/"),
140 options?.token
141 );
142}
143
144/** Create a git ToolProvider from a raw FileSystem. */
145export function gitToolsFromFs(

Callers 1

onChatMessageMethod · 0.90

Calls 2

createGitFunction · 0.90
createGitToolProviderFunction · 0.85

Tested by

no test coverage detected