Add status parameter to search_notes tool #21
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/pal-e-mcp!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "20-add-status-param-search-notes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds the missing
statusparameter to thesearch_notesMCP tool, matching the existing pattern inlist_notes. This allows callers to filter full-text search results by note status (e.g. 'active', 'in-progress').Changes
src/pal_e_docs_mcp/tools/notes.py: Addedstatusparameter tosearch_notes()function signature and query param forwarding, identical to the pattern used inlist_notes()Test Plan
ruff checkpassesruff format --checkpassessearch_notes(query="...", status="active")to confirm the parameter is forwarded to the APIReview Checklist
Related Notes
plan-2026-02-26-tf-modularize-postgres— Phase 5 follow-upPR #21 Review
BLOCKERS
None.
NITS
search_notesis still missingparent_slugcompared tolist_notes. Not in scope for this issue, but worth a follow-up issue if callers need to search within a parent's children.CODE REVIEW
statusparameter definition at lines 68-71 (post-merge) uses the identicalAnnotated[str | None, Field(...)]pattern and the exact same description string aslist_notesline 23-25. Pattern match confirmed.if status: params["status"] = statusat lines 87-88 follows the same guard pattern asnote_type,project, andtags. Correct.src/pal_e_docs_mcp/tools/notes.py), +6/-0. No unrelated changes. No scope creep..envfiles, no credentials in diff.SOP COMPLIANCE
20-add-status-param-search-notesreferences issue #20plan-2026-02-26-tf-modularize-postgres)VERDICT: APPROVED