MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / execute

Method execute

src/tools/project/project-tools.ts:27–35  ·  view source on GitHub ↗
(a: z.infer<typeof LogArgs>, ctx: ToolContext)

Source from the content-addressed store, hash-verified

25 argsSchema = LogArgs;
26
27 async execute(a: z.infer<typeof LogArgs>, ctx: ToolContext): Promise<ToolResult> {
28 const kind = (a.kind ?? 'work') as WorklogKind;
29 try {
30 getSessionStore().addWorklogEntry(ctx.cwd, ctx.sessionId ?? null, a.entry, kind);
31 } catch (e: any) {
32 return { content: `Could not write to project memory: ${e?.message ?? e}`, isError: true };
33 }
34 return { content: `Logged to project memory (${kind}): ${a.entry}` };
35 }
36}
37
38const RecallArgs = z.object({

Callers

nothing calls this directly

Calls 2

getSessionStoreFunction · 0.85
addWorklogEntryMethod · 0.80

Tested by

no test coverage detected