Capture note
This skill orchestrates the advanced sample MCP server (defined in .mcp.json)
to store and retrieve notes. It exists to demonstrate a skill that drives MCP
tools — the prose here tells Claude when and how to call them.
The server exposes these MCP components (tool names are prefixed
mcp__advanced__ when the server is connected):
- Tool
create_note(title, body)— store a new note, returns it with anid. - Tool
search_notes(query)— return notes matching a substring. - Resource
notes://all— every stored note (static resource). - Resource
note://{note_id}— one note by id (resource template).
To save a note
- Derive a short
titleand abodyfrom what the user asked you to remember. If they didn't separate the two, use the first line / key phrase as the title and the full text as the body. - Call
create_notewith them. - Confirm back to the user with the returned note
idand title.
To find a note
- Call
search_noteswith the user's keywords. If they ask for "all notes", read thenotes://allresource instead. - Summarize the matches (id + title). If nothing matches, say so.
Note: the sample server keeps notes in memory and resets when it restarts, so treat stored notes as ephemeral.