Skip to content

cli: unwrap ExceptionGroup in MCP transport errors; status reports total_documents 0 #254

Description

@RichardHightower

Summary

Two small CLI defects from the v10.7.0 integration test on 2026-09-19.

1. MCP transport errors hide the cause

Any MCP-side error reaches the user as the asyncio wrapper text, not the server's message:

$ agent-brain --transport mcp prompt explain-architecture
Error invoking prompt 'explain-architecture': unhandled errors in a TaskGroup (1 sub-exception)

$ agent-brain --transport mcp resources read "graph-entity://Symbol/OutOfStock"
Error reading graph-entity://Symbol/OutOfStock: unhandled errors in a TaskGroup (1 sub-exception)

The first is a missing required argument (--arg folder=...). The second is an invalid entity type. Both messages exist on the server side. The CLI should unwrap ExceptionGroup and print the innermost exception message (and, for a missing prompt argument, list the required arguments).

2. agent-brain status reports total_documents: 0 after a successful index

"indexing": {"total_documents": 0, "total_chunks": 13, ...}

The job log says 11 docs, 13 chunks. Either wire total_documents to the manifest file count or drop the field.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions