Reads and writes Model Context Protocol server definitions for Trae IDE across Windows, macOS, and Linux. Reuse when integrating MCP tools into Trae.
// Source: https://github.com/AVIDS2/memorix | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { MCPConfigAdapter, MCPServerEntry } from '../../types.js';
import { join } from 'node:path';
import { homedir } from 'node:os';
/**
* Trae IDE MCP Configuration Adapter.
*
* Trae stores MCP config at the user level:
* %APPDATA%/Trae/User/mcp.json (Windows)
* ~/Library/Application Support/Trae/User/mcp.json (macOS)
* ~/.config/Trae/User/mcp.json (Linux)
*
* Format (OBJECT-keyed, same as Cursor):
* {
* "mcpServers": {
* "memorix": {
* "command": "memorix",
* "args": ["serve"],
* "env": { "KEY": "value" }
* }
*
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key