Skip to content

refactor: MCP list follows the HTTP rules and the CLI no longer drops list filters via a server (#1439, part D2) - #1579

Merged
ajianaz merged 1 commit into
developfrom
refactor/unify-list-1439-d2
Oct 29, 2026
Merged

ajianaz merged 1 commit into
developfrom
refactor/unify-list-1439-d2

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

What

Second part of PR D (list).

  • New uteke_core::list_exec: Uteke::run_list(&ListRequest) -> ListOutput (a plain page, a point-in-time page, or the page with its pagination metadata). It is the HTTP handler's logic, moved unchanged; POST /list now calls it and renders. HTTP behaviour is unchanged.
  • MCP uteke_list calls it. It now accepts at (RFC3339) and include_meta (appends -- total N, has_more B, next_offset N), a field of the wrong type is an error instead of a silent default, and an argument the tool does not declare is an error that lists the supported ones (built from the tool's own schema).
  • uteke list --entity/--category with a running server was sent without the filter (/list has none) and returned unfiltered rows. It now falls back to the local store, which applies them, the same way other flags the server does not support already do.
  • The cross-surface tests flip: at and include_meta are honoured on both, a wrong-typed field is an error on both.

Why

#1439 PR D, owner decisions of 2026-10-13 (cloud contract uteke-cloud#173). Part 1 (default limit 10, cap 1000) is merged. /list gets no new parameters, so no CORE endpoint changes shape.

Testing

  • New core tests for the three outputs (bare page, envelope with the next offset, include_meta ignored with at); MCP tests for at, include_meta, wrong types and unknown arguments; server cross-surface tests flipped; the existing HTTP list tests (envelope and bare default) pass unchanged.
  • cargo test --workspace --locked, clippy -D warnings, fmt, docgen (no diff). Cora MCP review before committing: no findings. List is not on the benchmark path, so no LongMemEval run.

@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit bd1f119 into develop Oct 29, 2026
14 checks passed
@ajianaz
ajianaz deleted the refactor/unify-list-1439-d2 branch October 29, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant