affaan-m/ECC · error · JsonRpcError
-32001
-32001
Error message
Memory tool response exceeds the bounded output limit.
What it means
textResult enforces a bounded output size: the JSON-serialized tool payload exceeds MAX_RESPONSE_BYTES, so the MCP response is refused (as a -32001 JSON-RPC error) rather than flooding the harness with an oversized message.
Source
Thrown at scripts/memory-mcp.mjs:193
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,
}],
};
}
function toolFailure(code, error) {
const suspectedSecret = error instanceof Error
&& error.message.toLowerCase().includes('suspected secret');
const message = suspectedSecret
? 'Memory operation rejected a suspected secret.'
: {
MEMORY_WRITE_REJECTED: 'Memory write was rejected by validation.',
MEMORY_SEARCH_FAILED: 'Memory search failed validation.',
MEMORY_READ_FAILED: 'Memory was not found or is not visible to this harness.',View on GitHub (pinned to 06c5e118c4)
Solutions
- Adjust the input so it falls within the allowed size/range/non-empty constraint in the message.
Defensive patterns
Strategy: validation
When it happens
Trigger: Triggered when memory-mcp.mjs rejects the current invocation: Memory tool response exceeds the bounded output limit.
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:193 aborts the command with this message.
AI-assisted analysis of affaan-m/ECC@06c5e118c4 (2026-08-18).
Data as JSON: /api/errors/72b4b1aa689b8172.
Report an issue: GitHub.