Commit graph

3 commits

Author SHA1 Message Date
Lars Varming
8dd7a87623 Improve MCP tool descriptions for better LLM tool selection
Updated all 12 MCP tool docstrings with:
- LLM-visible priority markers in docstrings (was hidden in meta)
- Decision trees to disambiguate overlapping tools
- Standard Python docstring format with Examples sections
- Enhanced safety protocols for destructive operations
- Increased priority for search_memory_facts (0.85) and get_entities_by_type (0.75)

Changes are docstring-only with no breaking changes to functionality.
Validated with ruff format, ruff check, and py_compile.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-09 15:05:54 +01:00
Lars Varming
72933f1d5d Fix MCP server compatibility and upgrade to SDK 1.21.0
- Upgrade MCP SDK from 1.6.0 to 1.21.0 (latest)
- Add backward compatible tool wrappers (search_memory_nodes, etc.)
- Fix parameter compatibility (group_id/group_ids, last_n/max_episodes)
- Fix HTTP transport fallback to SSE (no more crashes)
- Update default transport to stdio for broader compatibility
- Add test import fallback for streamable_http
- Update documentation with compatibility notes

Fixes all issues identified in external code review:
 HTTP transport broken → graceful SSE fallback
 Tool name mismatches → compatibility wrappers added
 Parameter mismatches → dual parameter support
 Test imports fail → SSE fallback added
⚠️ Protocol version drift → SDK 1.21.0 installed (2024-11-05)

All changes in mcp_server/ only - zero modifications to graphiti_core/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-09 10:05:26 +01:00
Lars Varming
aab233496c Use official Dockerfile.standalone for custom MCP server build 2025-11-08 21:07:28 +01:00