affaan-m/ECC · error · JsonRpcError
-32602
-32602
Error message
The user memory scope is disabled for this MCP server.
What it means
assertScopesAuthorized rejects requests that include the 'user' memory scope when the server was not started with allow-user-scopes (ECC_MEMORY_ALLOW_USER_SCOPE=1). It is a permission boundary, returned as a JSON-RPC invalid-params error.
Source
Thrown at scripts/memory-mcp.mjs:182
function resolveServiceSecurity(options = {}) {
const env = isRecord(options.env) ? options.env : process.env;
const harness = options.harness ?? env.ECC_MEMORY_HARNESS;
if (typeof harness !== 'string' || !SLUG_REGEXP.test(harness)) {
throw new Error(
'ECC_MEMORY_HARNESS must identify this MCP server with a lowercase harness slug.'
);
}
return Object.freeze({
harness,
allowUserScope: options.allowUserScope ?? env.ECC_MEMORY_ALLOW_USER_SCOPE === '1',
});
}
function assertScopesAuthorized(scopes, security) {
const requestedScopes = scopes || DEFAULT_RECALL_SCOPES;
if (!security.allowUserScope && requestedScopes.includes('user')) {
throw new JsonRpcError(
-32602,
'The user memory scope is disabled for this MCP server.'
);
}
return requestedScopes;
}
function textResult(payload) {
const text = JSON.stringify(payload, null, 2);
if (Buffer.byteLength(text, 'utf8') > MAX_RESPONSE_BYTES) {
throw new JsonRpcError(-32001, 'Memory tool response exceeds the bounded output limit.');
}
return {
content: [{
type: 'text',
text,
}],
};View on GitHub (pinned to 06c5e118c4)
Solutions
- Re-run without dry-run/disabled mode, or enable the feature required by this operation.
Defensive patterns
Strategy: validation
When it happens
Trigger: Triggered when memory-mcp.mjs rejects the current invocation: The user memory scope is disabled for this MCP server.
Common situations: Occurs while running scripts/memory-mcp.mjs with invalid arguments, missing flags, or a failing external dependency; the guard at scripts/memory-mcp.mjs:182 aborts the command with this message.
AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18).
Data as JSON: /api/errors/35b4728cf7cb6f02.
Report an issue: GitHub.