本システムは Model Context Protocol (MCP) に準拠し、外部エージェントに対してデータベース操作インターフェースを公開します。
GET /ssePOST /messagesadd_item_text (登録)文章を自動ベクトル化して登録します。
content (string): 本文 (必須)path (string): メタデータ (任意)search_text (意味検索)自然言語による検索を実行します。
content (string): 検索クエリ (必須)limit (number): 取得件数 (デフォルト: 10)id, content, distance 等)update_item (更新)既存のアイテムとベクトルを最新の内容で書き換えます。
id (number): 対象 ID (必須)content (string): 新しい本文 (必須)path (string): 新しいメタデータ (任意)delete_item (削除)指定 ID のデータを物理削除します。
id (number): 対象 ID (必須)llm_generate (生成)内蔵 LLM を使用したテキスト生成。
prompt (string): プロンプト (必須)n_predict (number): 最大トークン数 (任意)すべてのレスポンスは以下の形式に準拠します。
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "..."
}
]
},
"id": "..."
}
| コード | 分類 | 原因例 |
|---|---|---|
-32700 |
Parse error | 不正な JSON フォーマット |
-32601 |
Method not found | 未定義ツールの呼び出し |
-32000 |
Internal error | Sidecar 不通, DB 権限エラー等 |