Transcript for:
Syncing Memory on Macs via Dropbox

this is a followup to my cloud memory mCP server video in this one I'm going to show you how to set it up so the memory sync between Macs that are using the mCP server on cloud desktop via Dropbox if you want to use a different cloud provider the setup will be relatively similar so this is going to be a bit more of an advanced tutorial you're going to need to be comfortable with terminal and also troubleshooting on your own now if you haven't set up the memory mCP server with Mac you should do that first I will not be covering that again so check out my previous video on that the link should be on the screen somewhere after my last time video I got a few messages and comments asking me how to set this up so that the memory syncs between multiple computers and I assumed that changing the memory path in the cloud desktop config file would be all you had to do I didn't try it but when I tried setting that up myself I realized that that's not the case let me tell you what I discovered so in my last video I suggested adding these two extra LS of code memory persists true and memory path because I found that adding them made sure that the memory does persist between sessions which didn't work for me with the original setup so I added these two lines this is the line I think made the difference memory persist true but I added this one memory path just in case and the memory path tells the config file to save the memory. Json relative to this nbx server now I realized after digging into it the same relative path is actually hardcoded into the source code of the mCP server and for whatever reason in my case it didn't work until I told it explicitly to save it there I assume that just changing this to my draw box path would do the job but when I realized that when I changed the memory path to Dropbox it would still save the m memories in the relative MPX directory so I realized that the memory path we added to the config file didn't really matter it was redundant since it was hard coded in the source code of the mCP server so I realized we had to take a different route the way this is going to work is that we're going to create a symbolic link between the hardcoded memory. Json file in the relative MPX directory and a copy of that in a new directory in Dropbox and what that essentially will do is push changes both ways between the hard qued version the cloud will look at and save to with a version in our Cloud directory and then what you'll end up doing is doing the same thing on your other computers now in my scenario my first computer my first memory file that is going to be my base file meaning I'm going to make one original file and then it's going to sink between all of them and you might want to do this differently if you have important memory saved on both computers but I suggest putting them both into one memory file first and then doing this process and what we're going to end up with is a synced Cloud memory between computers and you can try and do this on any of your cloud I'm just doing this for Dropbox so let's just go over prerequisites really quickly keep in mind you're going to be using multiple computers so you're going to have to have Cloud desktop set up on both computers you're going to have to have the same config file or at the very least this have the memory mCP server set up on both computers you're going to have to have a cloud provider like drawbox with access to the same directory on both computers and you're going to have to be able to use the terminal to figure out exactly where your MPX directory is saved because I think it creates a different MPX directory in each computer feel free to use perplexity or chat gbt with search or even better claw with brave search to troubleshoot and make sure you're getting everything right also back everything up use git or just copy your files and one more caveat I should add is what you might have to do in the future is recreate that symbolic link okay so let's get started and I'm going to give you all the instructions I'm going to put a link in the description to my website cuz it's a bit long so what I want to tell you is I'm setting this up on my single computer and all other computers have no memories so if you have your memory scattered among several computers I suggest consolidating them all first and putting them on your first computer and you could do this several ways like asking CLA on each computer to tell you what's in the knowledge graph you just copy and paste it and send it to yourself and put it in your initial Cloud desktop cuz the way this works is the first computer is going to set the memories for all the other computers and once they're all set you'll be able to save between them all but this is for the initial state so I'm going to run through this really fast but you're going to have the instructions you can look at so first thing we're going to do is open up claw let's just start it up and make sure that memory server running so let's say I like pineapples and we want this to save to the memory so first we see it's reading the memory writing to the memory great and what we want to do is figure out exactly where this was stored so every computer May store this a little bit differently so we're going to go through the same process each time on every computer so we're going to open Terminal we're going to run this command okay this is what we want this is the path so we're going to copy it and you know what I'm going to do we're going to open up a sticky okay you can do this however you want I recommend using just a little sticky I'm going to copy Cy this path we're going to paste it you want to add this at the end and you'll just copy and paste this it doesn't really matter how it looks here this is one line okay so next you're going to go to whatever cloud provider you're using in my case Dropbox and create a new directory called cloud cloud memory okay so I created mine and you want to copy the path name so the way I do is I just right click down here copy as path name take this and say drawbox path cool now we're going to verify the MPX PA so first we're going to type in LS and then we're going to copy this including what we edited there now we're going to create a backup of our path so all we're going to type is Type in is CP our path and we're going to type in again we add our path again type do backup and just to verify that we can go LS great so we see the backup there cool okay so the next step is we're going to copy our memory file cuz this is the one that's working right now to our drawbox in our new directory so the way we do that di pin CP or path again and then we're going to take our drawbox path paste it in there okay R an error I'm trying again my bad take this whole bad boy paste it in and it copied well let's just double check that let's just open up our Dropbox and now we see the memory. Json file in our Dropbox and it has data Next Step we're going to remove the original memory file so we're going to go RM and take our memory file we're putting in our original MPX path cuz now we have it backed up in Dropbox don't worry we're going to get it back so I'm just going to clear this for readability all we're going to do is the fun part we're going to create the Sim link between the Dropbox version and our MPX directory and basically the MPX directory is always going to look at the Dropbox box version so we'll be able to sync between computers okay so what we're going to type is ln- s space and you know what let's just do it like this we're going to copy the path name type it in here space and then we're going to put in our npx path and now let's just go back to our MPX path and now we see the memory. Json is back there very cool it's clear what we want to check is that if we write a memory to claw it saves in the draw box let's first of all quick cloud and restart Cloud it's always a good idea to restart Cloud when you do these changes so let's see hey it's going to read the memory let's see if it reads it correctly I remember you enjoy pad tie and pineapples let's add one more memory let's just add something like I also like St two okay so the point is we just wanted to create some memories here okay now the good news is I already set this up on my second computer so I'm just going to switch to that and by the way my second computer is just my first computer with a different user and I went through the whole process there and we're going to test it out right now okay so now we're on my second user on the same computer and I've already set this up but let's just check first of all all my Dropbox has the memory. Json file we created a few minutes ago on the other user okay so what's important for me to emphasize now is you should follow the guy to set this up on your second or subsequent computers and I want to emphasize that the paths May differ than they did from the first computer so in the guide I reiterated the steps to figure out your MPX path and your Cloud path for example my draw boox folder was found in a different path than it was on the same computer for a different user so sometimes sometimes things get messed up sometimes things change so I just want you to go through every step on your subsequent computers again to make sure you have the correct MPX path and your correct cloud or Dropbox path so you don't run into any errors when you're setting this up so it's a bit redundant but it goes by pretty pretty quickly if you did the first time you'll be even better doing it the second time so let's just check that it works so let's open up Claud let's just ask it what do you remember check in the memory okay so it worked I enjoy several fruits including pad tie pineapples and steak and I have a to travel to Thailand so we see here that I was able to sync our memories between one computer to the other computer using symbolic links there may be a better way of doing this this is how I set it up and I wanted to share because I know other people had this question I'm assuming or hoping that Claud will add memory natively to all of their apps I'm assuming that maybe the creators of the mCP memory server will add cloud storage as well but until now this is a bit of a hacky way to get it to work it works for me it's really cool unlike Chad gbt which has a limit in how many memories you can store you can store almost unlimited memories here really depends on how much storage you have but you're not limited like chbt so this is really cool anyways I hope you found this video helpful thank you for watching and have a great day