MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / writeCliFile

Function writeCliFile

src/ui/src/lib/api/cli.ts:109–112  ·  view source on GitHub ↗
(projectId: string, serverId: string, payload: { path: string; content?: string; encoding?: string; operation?: string })

Source from the content-addressed store, hash-verified

107}
108
109export async function writeCliFile(projectId: string, serverId: string, payload: { path: string; content?: string; encoding?: string; operation?: string }) {
110 const response = await apiClient.post(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, payload)
111 return response.data as { success: boolean }
112}
113
114export async function deleteCliFile(projectId: string, serverId: string, path: string, recursive = false) {
115 const response = await apiClient.delete(`/api/v1/projects/${projectId}/cli/servers/${serverId}/file`, {

Callers 3

updateFileContentFunction · 0.90
useFileBrowserFunction · 0.90

Calls 1

postMethod · 0.45

Tested by

no test coverage detected