Files
linear-coding-agent/memory/mcp/__init__.py
David Blanc Brioir 4400d25a58 fix: MCP tools migrated from StateVector V1 to StateTensor V2
- identity_tools.py: rewritten to read StateTensor (8x1024 named vectors)
  instead of StateVector (single 1024-dim). Uses CATEGORY_TO_DIMENSION mapping.
- mcp_server.py: get_state_vector renamed to get_state_tensor
- __init__.py: updated exports

Now returns S(30) with architecture v2_tensor instead of S(2) from V1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 19:42:04 +01:00

99 lines
2.4 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,
)
from memory.mcp.unified_tools import (
SearchMemoriesInput,
TraceConceptEvolutionInput,
CheckConsistencyInput,
UpdateThoughtEvolutionStageInput,
search_memories_handler,
trace_concept_evolution_handler,
check_consistency_handler,
update_thought_evolution_stage_handler,
)
from memory.mcp.identity_tools import (
GetStateProfileInput,
GetDavidProfileInput,
CompareProfilesInput,
GetStateTensorInput,
get_state_profile_handler,
get_david_profile_handler,
compare_profiles_handler,
get_state_tensor_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",
# Unified tools (cross-collection)
"SearchMemoriesInput",
"TraceConceptEvolutionInput",
"CheckConsistencyInput",
"UpdateThoughtEvolutionStageInput",
"search_memories_handler",
"trace_concept_evolution_handler",
"check_consistency_handler",
"update_thought_evolution_stage_handler",
# Identity tools (state tensors and profiles)
"GetStateProfileInput",
"GetDavidProfileInput",
"CompareProfilesInput",
"GetStateTensorInput",
"get_state_profile_handler",
"get_david_profile_handler",
"compare_profiles_handler",
"get_state_tensor_handler",
]