Versions 12 to 318
Lines 2–16 at 318 (were 2–15 at 12)
5−// as for the CLI: .avcs/config.json, and AVCS_TOKEN or ~/.avcs/token.
7−// claude mcp add avcs -- node <repo>/client/avcs.ts mcp
1111
12−import { resolve } from "node:path";
1516
Lines 35–42 at 318 (were 34–41 at 12)
37− "sync",
38− "publish",
Lines 48–65 at 318 (were 47–55 at 12)
5464
Lines 78–96 at 318 (were 68–82 at 12)
71− Object.entries(def.flags).map(([flag, kind]) => [
72− flag,
73− kind === "boolean"
74− ? { type: "boolean", description: `--${flag}` }
75− : {
76− type: "string",
77− description: kind === "optional" ? `--${flag} "<value>"; "" gives --${flag} alone` : `--${flag} <value>`,
78− },
79− ]),
Lines 105–112 at 318 (were 91–97 at 12)
94− description: "The abso folder to run in (default: the folder this server started in).",
109+ "The abso folder to run in: the folder this server started in (the default), or one inside it.",
96111 json: { type: "boolean", description: "Answer with the command's JSON (as --json) instead of its text." },
Lines 117–172 at 318 (were 102–107 at 12)
104119
128+
134+
135+/** The tool inputs that name files or folders on this machine to read or write, comma-separated: each is confined like the folder. */
137+
149+ const named = typeof input.folder === "string" && input.folder !== "" ? input.folder : undefined;
153+ refused: `folder ${JSON.stringify(named)} is outside ${start}, the folder this server started in; tools run there or below`,
164+ refused: `--${flag} ${p} is outside ${start}, the folder this server started in; a tool reads and writes files only there or below`,
169+
105170/** The command line a tool call stands for: flags as --name=value, then the words after --. */
106171export function argvFor(command: string, input: Readonly<Record<string, unknown>>): string[] {
Lines 208–216 at 318 (were 143–151 at 12)
146− serverInfo: { name: "avcs", version: clientVersion() },
148− "avcs, the agent-first version control client. Each tool is the abso command of the same name and answers with the command line's text. Box runs (abso run, shot, bisect) stay in the shell.",
213+ "abso, the agent-first version control client. Each tool is the abso command of the same name and answers with the command line's text. Box runs (abso run, shot, bisect) stay in the shell.",
Lines 222–230 at 318 (were 157–163 at 12)
158223 if (command === undefined) return fail(id, -32602, `no tool ${JSON.stringify(name)}; tools/list names them`);
160− const folder = typeof args.folder === "string" && args.folder !== "" ? resolve(cwd, args.folder) : cwd;
226+ if ("refused" in where) return reply(id, { content: [{ type: "text", text: where.refused }], isError: true });
- MCP
- compare on this site's /mcp
- CLI
- abso diff 12 318 client/src/mcp.ts --json
- JSON
- /christopher/abso-core/compare/12..318?file=client%2Fsrc%2Fmcp.ts&format=json