Skip to content

Feature/mcp single item getters#78

Merged
asiniscalchi merged 2 commits into
mainfrom
feature/mcp-single-item-getters
May 11, 2026
Merged

Feature/mcp single item getters#78
asiniscalchi merged 2 commits into
mainfrom
feature/mcp-single-item-getters

Conversation

@asiniscalchi

Copy link
Copy Markdown
Owner

No description provided.

Extend ReviewReadService with get_daily_review(date) and
get_weekly_review(week_start), and JournalReadService with get_by_id(id).

Each new method returns Option<View>, with reviews filtered to status =
Completed and non-empty review_text to mirror the range-based methods.
These will back the upcoming MCP single-item getter tools.
Add three MCP tools that retrieve a single journal entry by id, a
daily review by date, or a weekly review by week_start. Each returns
the item under a singular field (entry / review) or null when not
found, so callers that already know a date or id no longer need to
wrap the lookup in a range query.

Updates wiring.rs to register the new tools and the existing MCP
integration test to expect the new names.
@asiniscalchi asiniscalchi merged commit 846eab0 into main May 11, 2026
3 checks passed
@asiniscalchi asiniscalchi deleted the feature/mcp-single-item-getters branch May 11, 2026 06:38
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