Files
linear-coding-agent/memory/mcp/__init__.py
David Blanc Brioir 2f34125ef6 feat: Add Memory system with Weaviate integration and MCP tools
MEMORY SYSTEM ARCHITECTURE:
- Weaviate-based memory storage (Thought, Message, Conversation collections)
- GPU embeddings with BAAI/bge-m3 (1024-dim, RTX 4070)
- 9 MCP tools for Claude Desktop integration

CORE MODULES (memory/):
- core/embedding_service.py: GPU embedder singleton with PyTorch
- schemas/memory_schemas.py: Weaviate schema definitions
- mcp/thought_tools.py: add_thought, search_thoughts, get_thought
- mcp/message_tools.py: add_message, get_messages, search_messages
- mcp/conversation_tools.py: get_conversation, search_conversations, list_conversations

FLASK TEMPLATES:
- conversation_view.html: Display single conversation with messages
- conversations.html: List all conversations with search
- memories.html: Browse and search thoughts

FEATURES:
- Semantic search across thoughts, messages, conversations
- Privacy levels (private, shared, public)
- Thought types (reflection, question, intuition, observation)
- Conversation categories with filtering
- Message ordering and role-based display

DATA (as of 2026-01-08):
- 102 Thoughts
- 377 Messages
- 12 Conversations

DOCUMENTATION:
- memory/README_MCP_TOOLS.md: Complete API reference and usage examples

All MCP tools tested and validated (see test_memory_mcp_tools.py in archive).

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-08 18:08:13 +01:00

57 lines
1.2 KiB
Python

"""
Memory MCP Tools Package.
Provides MCP tools for Memory system (Thoughts, Messages, Conversations).
"""
from memory.mcp.thought_tools import (
AddThoughtInput,
SearchThoughtsInput,
add_thought_handler,
search_thoughts_handler,
get_thought_handler,
)
from memory.mcp.message_tools import (
AddMessageInput,
GetMessagesInput,
SearchMessagesInput,
add_message_handler,
get_messages_handler,
search_messages_handler,
)
from memory.mcp.conversation_tools import (
GetConversationInput,
SearchConversationsInput,
ListConversationsInput,
get_conversation_handler,
search_conversations_handler,
list_conversations_handler,
)
__all__ = [
# Thought tools
"AddThoughtInput",
"SearchThoughtsInput",
"add_thought_handler",
"search_thoughts_handler",
"get_thought_handler",
# Message tools
"AddMessageInput",
"GetMessagesInput",
"SearchMessagesInput",
"add_message_handler",
"get_messages_handler",
"search_messages_handler",
# Conversation tools
"GetConversationInput",
"SearchConversationsInput",
"ListConversationsInput",
"get_conversation_handler",
"search_conversations_handler",
"list_conversations_handler",
]