Skip to content

docs: update MCP tools reference for #667 additions#738

Closed
jphein wants to merge 4 commits intoMemPalace:developfrom
jphein:docs/update-mcp-tools-reference
Closed

docs: update MCP tools reference for #667 additions#738
jphein wants to merge 4 commits intoMemPalace:developfrom
jphein:docs/update-mcp-tools-reference

Conversation

@jphein
Copy link
Copy Markdown
Collaborator

@jphein jphein commented Apr 12, 2026

Summary

Test plan

  • VitePress site builds without errors
  • New tool entries render correctly with parameter tables

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 12, 2026 22:08
jphein added a commit to jphein/mempalace that referenced this pull request Apr 12, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the VitePress documentation to reflect the expanded MCP tool surface area introduced in #667, and documents new search parameters/response fields.

Changes:

  • Update docs to reflect 24 MCP tools (was 19) and adjust homepage copy accordingly.
  • Extend mempalace_search documentation with max_distance + context parameters and add distance to response examples.
  • Add reference entries for the new drawer/settings tools (get/list/update drawer, hook_settings, memories_filed_away).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
website/reference/mcp-tools.md Adds new tool reference sections and updates mempalace_search parameter/return docs.
website/index.md Updates the homepage feature card text from 19 to 24 tools and expands the feature description.
website/guide/searching.md Updates search behavior description to cosine distance and documents max_distance, distance, and filtering behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 49 to 63
### `mempalace_search`

Semantic search. Returns verbatim drawer content with similarity scores.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | **Yes** | What to search for |
| `limit` | integer | No | Max results (default: 5) |
| `query` | string | **Yes** | Short search query — keywords or a question. Max 200 chars recommended. |
| `limit` | integer | No | Max results (default: 5, max: 100) |
| `wing` | string | No | Filter by wing |
| `room` | string | No | Filter by room |
| `max_distance` | number | No | Max cosine distance threshold (0=identical, 2=opposite). Results further than this are dropped. Default 1.5. Set to 0 to disable. |
| `context` | string | No | Background context for the search. Not used for embedding — only for future re-ranking. |

**Returns:** `{ query, filters, results: [{ text, wing, room, source_file, similarity }] }`
**Returns:** `{ query, filters, results: [{ text, wing, room, source_file, similarity, distance }] }`

Comment on lines +119 to +128
### `mempalace_get_drawer`

Fetch a single drawer by ID — returns full content and metadata.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `drawer_id` | string | **Yes** | ID of the drawer to fetch |

**Returns:** `{ drawer_id, content, wing, room, source_file, metadata }`

Comment on lines +131 to +143
### `mempalace_list_drawers`

List drawers with pagination. Optional wing/room filter. Returns IDs, wings, rooms, and content previews.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `wing` | string | No | Filter by wing |
| `room` | string | No | Filter by room |
| `limit` | integer | No | Max results per page (default: 20, max: 100) |
| `offset` | integer | No | Offset for pagination (default: 0) |

**Returns:** `{ drawers: [{ id, wing, room, preview }], total, offset, limit }`

Comment on lines +146 to +158
### `mempalace_update_drawer`

Update an existing drawer's content and/or metadata (wing, room). Returns error if drawer not found.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `drawer_id` | string | **Yes** | ID of the drawer to update |
| `content` | string | No | New content (omit to keep existing) |
| `wing` | string | No | New wing (omit to keep existing) |
| `room` | string | No | New room (omit to keep existing) |

**Returns:** `{ success, drawer_id, updated_fields }`

Comment on lines +163 to +173
### `mempalace_hook_settings`

Get or set hook behavior. Call with no arguments to view current settings.

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `silent_save` | boolean | No | True = silent direct save, False = legacy blocking MCP calls |
| `desktop_toast` | boolean | No | True = show desktop notification via notify-send |

**Returns:** `{ silent_save, desktop_toast }`

Comment on lines +176 to +183
### `mempalace_memories_filed_away`

Check if a recent palace checkpoint was saved. Returns message count and timestamp.

**Parameters:** None

**Returns:** `{ last_save, message_count, timestamp }`

Comment thread website/index.md
Comment on lines 43 to +47
- icon:
src: /icons/wrench.svg
alt: 19 MCP Tools
title: 19 MCP Tools
details: MCP tools expose search, filing, knowledge graph, graph navigation, and diary operations to compatible clients.
title: 24 MCP Tools
details: MCP tools expose search, filing, knowledge graph, graph navigation, diary, and settings operations to compatible clients.
jphein and others added 3 commits April 13, 2026 07:19
- Add 5 missing tools: get_drawer, list_drawers, update_drawer,
  hook_settings, memories_filed_away (shipped in MemPalace#667)
- Add max_distance and context params to mempalace_search
- Add distance field to search response examples
- Update tool count from 19 to 24

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Update 19 → 24 in four places (intro, heading, file table, tree)
- Add get_drawer, list_drawers, update_drawer to Palace (write) table
- Add Settings section with hook_settings and memories_filed_away

Co-Authored-By: Claude Opus 4.6 <[email protected]>
- search: add keyword_fallback, total_before_filter, sanitizer fields
- get_drawer: source_file is inside metadata, not top-level
- list_drawers: use drawer_id/content_preview/count field names
- update_drawer: returns wing/room, not updated_fields; document noop
- hook_settings: response is { success, settings: {...} }
- memories_filed_away: returns status/message/count/timestamp
- index.md: fix alt text "19 MCP Tools" → "24 MCP Tools"

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jphein jphein force-pushed the docs/update-mcp-tools-reference branch from 2fca765 to 6f2da54 Compare April 13, 2026 14:22
@igorls igorls added area/mcp MCP server and tools documentation Improvements or additions to documentation labels Apr 14, 2026
@jphein
Copy link
Copy Markdown
Collaborator Author

jphein commented Apr 16, 2026

Closing — the README and website docs were fully rewritten for v3.3.0, making this MCP tools reference update stale. The new docs already cover the tools added in #667.

@jphein jphein closed this Apr 16, 2026
jphein added a commit to jphein/mempalace that referenced this pull request Apr 16, 2026
README: replace 460-line upstream-mirroring README with focused fork-only
content — what's different, what's merged, what's superseded, PR status.
Points to upstream README for full feature docs.

CLAUDE.md: bump version 3.2.0 → 3.3.0, test count 715 → 858, remove
fork changes absorbed by upstream, update PR table (close MemPalace#662, MemPalace#738),
simplify hook architecture notes for v3.3.0 alignment.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jphein jphein deleted the docs/update-mcp-tools-reference branch April 19, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/mcp MCP server and tools documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants