test ai chat mcp
This commit is contained in:
35
readme.md
35
readme.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user