Save content and view it as markdown or mindmap.
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.
| Route | Description |
|---|---|
/r/{slug} | Raw plain text content |
/md/{slug} | Styled markdown page |
/mm/{slug} | Interactive mindmap visualization |
MindNote exposes an MCP server at https://piece.shonenada.com/mcp with the following tools:
| Tool | Description |
|---|---|
piece_create | Create a note with title, content, and content type |
piece_get | Retrieve a note by slug |
Configure your MCP client with:
{
"mcpServers": {
"mindnote": {
"url": "https://piece.shonenada.com/mcp"
}
}
}