test ai chat mcp

This commit is contained in:
2026-01-20 17:49:16 +09:00
parent 1d3aa51fb6
commit c8a71577d9
7 changed files with 554 additions and 1 deletions

View File

@@ -345,3 +345,38 @@ View chat threads at `/@{handle}/at/chat`:
- `root`: First message URI in the thread (empty for conversation start)
- `parent`: Previous message URI in the thread
### Claude Code Integration (MCP)
Use Claude Code to chat and automatically save conversations.
**1. Setup MCP server:**
```json
// ~/.claude.json
{
"mcpServers": {
"ailog": {
"command": "/path/to/ailog",
"args": ["mcp-serve"]
}
}
}
```
**2. Chat with Claude:**
```sh
$ cd ~/ai/log
$ claude
> こんにちは、今日の調子はどう?
# Claude responds and automatically saves to:
# - ./public/content/{user-did}/ai.syui.log.chat/
# - ./public/content/{bot-did}/ai.syui.log.chat/
```
**MCP Tools:**
- `chat_save` - Save conversation exchange
- `chat_list` - List recent messages
- `chat_new` - Start new thread