MCPcopy Create free account
hub / github.com/Microck/opencode-studio / setConfigPath

Function setConfigPath

client-next/src/lib/api.ts:228–231  ·  view source on GitHub ↗
(configPath: string | null)

Source from the content-addressed store, hash-verified

226}
227
228export async function setConfigPath(configPath: string | null): Promise<{ success: boolean; current: string | null }> {
229 const { data } = await api.post('/paths', { configPath });
230 return data;
231}
232
233export async function getConfig(): Promise<OpencodeConfig> {
234 const { data } = await api.get<OpencodeConfig>('/config');

Callers 2

handleSetPathFunction · 0.90
handleResetPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected