fix(mcp): preserve pagination in fetch-graph-data structuredContent

Keep pagination metadata in the graph view response for paginated callers and e2e tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ishaan Gupta 2026-07-04 20:18:56 +05:30
parent 9d80b75c0d
commit ddfc4cda23
2 changed files with 2 additions and 0 deletions

View file

@ -51,6 +51,7 @@ export function register(deps: ToolDeps) {
containerTag: effectiveTag,
documents: data.documents,
totalCount: data.pagination.totalItems,
pagination: data.pagination,
}
return {

View file

@ -91,6 +91,7 @@ export type ViewMessage =
documents: DocumentWithMemories[]
totalCount: number
containerTag?: string
pagination?: DocumentsApiResponse["pagination"]
}
| {
view: "error"