Integrations
Trae
Integrate memories.sh with Trae by ByteDance.
Trae is ByteDance's coding agent with built-in MCP support. It reads project rules and provides AI-assisted development workflows.
Quick Setup
cd your-project
memories initThis automatically:
- Sets up your local memory store
- Configures MCP for supported tools
- Generates instruction files with your existing memories
Manual Setup
Option 1: Generated File
memories generate agentsThis creates the canonical .agents/ directory that Trae reads for project context.
Option 2: MCP Server
Trae has built-in MCP support. Configure it through the IDE's MCP settings, or add to .trae/mcp.json:
{
"mcpServers": {
"memories": {
"command": "npx",
"args": ["-y", "@memories.sh/cli", "serve"]
}
}
}Recommended: Use Both
- Generated file — Provides instructions Trae always sees
- MCP server — Gives Trae live access to search, recall, and add memories
Syncing Trae Config
To sync your Trae configuration across machines:
# On your main machine
memories files ingest
# On a new machine
memories files apply --global --force