Skip to content

docs(skill): inline recall mcp signatures and 8.8 kb budgets - #363

Merged
samzong merged 1 commit into
mainfrom
docs/recall-skill-mcp-signatures
Nov 23, 2026
Merged

samzong merged 1 commit into
mainfrom
docs/recall-skill-mcp-signatures

Conversation

@samzong

@samzong samzong commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What's changed?

  • Add ## MCP Tool Calls to skills/recall/SKILL.md with direct call_mcp_tool rules for ServerName: "recall" and fallback rules for broken nested arguments.
  • Document compact parameter signatures and mutual-exclusion rules for search_messages, search_sessions, list_recent_sessions, get_session, and file_history.
  • Update Find Sessions and Find File History in skills/recall/SKILL.md to use the 8,800-byte response budget and remove "limit":20 from the starter query.
  • Add embedded_recall_skill_documents_mcp_signatures_and_inline_budgets in src/cli/tests.rs and update url to 2.5.9 in Cargo.lock for RUSTSEC-2026-0592.

Why

  • Hosts that mount recall MCP as lazy previously spent an extra turn reading mcp/recall/*.json before calling Recall tools.
  • Inlining the five tool signatures and 8,800-byte defaults in the embedded skill removes extra schema reads and prevents bundle drift.

Test evidence

  • Tool and OS: recall 0.7.0 (target/debug/recall built from this worktree) on macOS 27.2 (26B123, Darwin 27.2.0 arm64).
  • Fault-injection and repository gate checks:
    • Ran cargo test --lib cli::tests::embedded_recall_skill_documents_mcp_signatures_and_inline_budgets against pre-change SKILL.md and observed exit 101 (missing call_mcp_tool).
    • Injected defaults to 16,384 into skills/recall/SKILL.md, reran the unit test, and observed exit 101 (still contains stale defaults to 16,384).
    • Restored 8,800, ran make build and make check, and observed exit 0 across audit, format, Clippy, and workspace tests.
  • Isolated skill installation run (TMP_HOME=/Volumes/git/scratch/recall-skill-BqlcSu, deleted after readback):
    • Ran HOME="$TMP_HOME" target/debug/recall skill install --yes --scope user --dry-run and HOME="$TMP_HOME" target/debug/recall skill install --yes --scope user.
    • Observed output lines - recall -> .../recall (codex) and - recall -> .../recall (claude-code).
    • Compared shasum -a 256 across both installed SKILL.md files and skills/recall/SKILL.md, observing digest 2d6c4784eaf58cd21b7df4505a3195e2c3d539421566c07acb1265ac68d25d30 on all three files.
  • Unverified:
    • Runtime 8,800-byte MCP capping in src/mcp.rs ships in the companion core PR and will be integrated from main before marking this PR ready.

Add direct lazy-MCP call rules and compact signatures for all five Recall tools to the bundled skill. Align message, file-history, and event-evidence defaults with the 8,800-byte inline response budget. Guard the embedded skill bundle in CLI unit tests and update locked url to 2.5.9 for RUSTSEC-2026-0592.

Signed-off-by: samzong <samzong.lu@gmail.com>
@samzong
samzong marked this pull request as ready for review November 23, 2026 01:02
@samzong
samzong merged commit c3acbfa into main Nov 23, 2026
3 checks passed
@samzong
samzong deleted the docs/recall-skill-mcp-signatures branch November 23, 2026 01:03
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