paperclipai/paperclip · error
Missing value for ${arg}
Error message
Missing value for ${arg} What it means
Error "Missing value for ${arg}" thrown in paperclipai/paperclip.
Source
Thrown at packages/google-sheets-mcp-server/src/config.ts:46
serviceAccountJson?: string | null;
serviceAccountJsonPath?: string | null;
allowedSpreadsheetIds?: string | string[] | null;
}
export interface GoogleSheetsMcpHttpConfigInput extends GoogleSheetsMcpConfigInput {
port?: string | number | null;
host?: string | null;
token?: string | null;
}
function parseArgs(argv: string[]): GoogleSheetsMcpConfigInput {
const input: GoogleSheetsMcpConfigInput = {};
for (let index = 0; index < argv.length; index += 1) {
const arg = argv[index];
const readValue = () => {
const next = argv[index + 1];
if (!next || next.startsWith("--")) {
throw new Error(`Missing value for ${arg}`);
}
index += 1;
return next;
};
if (arg === "--service-account-json") input.serviceAccountJson = readValue();
if (arg === "--service-account-json-path") input.serviceAccountJsonPath = readValue();
if (arg === "--allowed-spreadsheet-ids") input.allowedSpreadsheetIds = readValue();
}
return input;
}
function parseAllowedSpreadsheetIds(raw: string | string[] | null | undefined): string[] {
const values = Array.isArray(raw) ? raw : String(raw ?? "").split(/[\n,]/g);
const ids = values.map((value) => value.trim()).filter(Boolean);
return Array.from(new Set(ids));
}
function parsePort(raw: string | number | null | undefined): number {View on GitHub (pinned to 120ae5428f)
Solutions
- Pass a value after the named CLI argument, e.g. `--port 3000` instead of a bare `--port`.
When it happens
Trigger: Thrown at packages/google-sheets-mcp-server/src/config.ts:46 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of paperclipai/paperclip@120ae5428f (2026-08-18).
Data as JSON: /api/errors/1f4b44674afe3ed4.
Report an issue: GitHub.