MindNote

Save content and view it as markdown or mindmap.

REST API

Create a note

curl -X POST https://piece.shonenada.com/api/notes \
  -H "Content-Type: application/json" \
  -d '{
    "title": "My Note",
    "content": "# Hello\n\nThis is **markdown** content.",
    "content_type": "markdown"
  }'

Response includes view URLs:

{
  "id": "...",
  "title": "My Note",
  "slug": "abc123",
  "url_raw": "https://piece.shonenada.com/r/abc123",
  "url_markdown": "https://piece.shonenada.com/md/abc123",
  "url_mindmap": "https://piece.shonenada.com/mm/abc123",
  ...
}

List, update, and delete operations require admin authentication via Authorization: Bearer {secret} header.


Rendered Views

RouteDescription
/r/{slug}Raw plain text content
/md/{slug}Styled markdown page
/mm/{slug}Interactive mindmap visualization

MCP (Model Context Protocol)

MindNote exposes an MCP server at https://piece.shonenada.com/mcp with the following tools:

ToolDescription
piece_createCreate a note with title, content, and content type
piece_getRetrieve a note by slug

Configure your MCP client with:

{
  "mcpServers": {
    "mindnote": {
      "url": "https://piece.shonenada.com/mcp"
    }
  }
}