Skip to content

feat(mcp): add pin/unpin tools for memory persistence (#588) - #595

Merged
ajianaz merged 1 commit into
developfrom
feat/mcp-pin-unpin
Jul 6, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/mcp-pin-unpin

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add uteke_pin and uteke_unpin MCP tools to uteke-mcp.

Changes (76 lines added to crates/uteke-mcp/src/lib.rs)

2 MCP tools:

  1. uteke_pin — pin a memory by ID (prevents decay/pruning)
  2. uteke_unpin — unpin a memory, restore normal decay

Implementation

  • Uses existing core methods: uteke.pin(id) / uteke.unpin(id) → Result<bool, Error>
  • Follows existing ToolResult pattern (is_error for not-found)
  • Zero new dependencies or core changes
  • Matches existing HTTP endpoints (POST /pin, POST /unpin) and CLI commands

Closes #588

Add uteke_pin and uteke_unpin MCP tools, matching existing
POST /pin and POST /unpin HTTP endpoints.

- tool_pin(): pin memory by ID, immune to decay/pruning
- tool_unpin(): unpin memory, restore normal decay
- Follows existing ToolResult pattern (is_error for not-found)
- Uses uteke.pin()/unpin() from uteke-core

Closes #588
@ajianaz
ajianaz merged commit fa1e079 into develop Jul 6, 2026
7 of 8 checks passed
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)


Review powered by cora-cli · BYOK · MIT

@ajianaz
ajianaz deleted the feat/mcp-pin-unpin branch July 7, 2026 00:37
ajianaz added a commit that referenced this pull request Aug 13, 2026
feat(mcp): add pin/unpin tools for memory persistence (#588)
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.

MCP: add pin/unpin tools for memory persistence

1 participant