Skip to main content
Glama

myAI Memory Sync

by Jktfe
update-config.mjs1.14 kB
import fs from 'fs'; import path from 'path'; import os from 'os'; import { fileURLToPath } from 'url'; // Get current directory const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); // Path to Claude Desktop config const configPath = path.join(os.homedir(), 'Library/Application Support/Claude/claude_desktop_config.json'); // Read existing config try { const config = JSON.parse(fs.readFileSync(configPath, 'utf8')); // Update myai-memory-sync configuration if (!config.mcpServers) { config.mcpServers = {}; } config.mcpServers['myai-memory-sync'] = { command: 'node', args: [path.resolve(__dirname, 'wrapper.js')], transport: 'stdio', env: { NODE_ENV: 'production', NODE_OPTIONS: '--enable-source-maps' } }; // Write updated config fs.writeFileSync(configPath, JSON.stringify(config, null, 2)); console.log('Updated Claude Desktop configuration successfully!'); console.log(`MCP server path: ${path.resolve(__dirname, 'wrapper.js')}`); } catch (error) { console.error('Error updating Claude Desktop configuration:', error); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Jktfe/myAImemory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server