Transcription
Tip number 8 for Cloud Code. If your LM starts generating outdated code, suddenly you see it starts using some attack SDK, starts talking complete nonsense to you, there's a chance that the documentation it's relying on, you're right, documentation it was trained on, is not up-to-date. And obviously, you won't wait now for a new version of this LM to come out. It will take too much time, it's not realistic. And therefore, to solve this problem, we have Context 7 [Music] which is a service to give us a solution precisely for this problem of up-to-date documentation for libraries, for frameworks that we all know, that we all use. I can go down here, I can choose here for the purpose of demonstration, MongoDB, which is located here. Here is MongoDB. It goes down here. I do a copy here, and then I take this thing, throw it to my LLM, and I tell it, listen, MongoDB, it's just this thing. Now, of course, it will work, of course, everything will be fine. But if I'm already using Cloud Code, why not connect this whole thing with MCP? Why not make a connection here between Cloud Code, MCP, and [Music]? Clearly, I can do this. I jump up here, click on these three lines, Settings, Overview. Click on this thing, Dashboard. [Music] Go down here, Create API Key. You see, I've already created one. I put it in my pocket, save it, because I will only see it once. After I've done that, I jump for a moment to the GitHub of Appsmith, the guys who are behind Context 7. You can see the command here for installing Context 7 on Cloud Code with MCP. The first command: `cloud mcp transport` and so on. I do a copy here, jump for a moment to the terminal. I click here, Enter, and this is how I add my new MCP server. And then in Cloud Code, I do `scp r` here, and I see the MCP server configured here. I have here the only MCP server, Context 7, which is located here. Escape [Music] to exit. And then I can do something like, for example, "Use Context 7". I will also explicitly tell it, to save time in this demonstration video, sometimes it also understands on its own, "to tell me about the latest update. MongoDB." I do a very basic thinking here that is going to happen here until Cloud Code understands that some tool can be used here. [Music] Here is the tool use: Context 7. The tool is called `resolve_library`. First of all, it needs to really understand what the ID of the library is. Note: Library name: MongoDB. I press Enter here, and this whole process slowly begins to happen. There will be some understanding here, some communication between MCP client and MCP server to understand which library is being discussed. In this case, as you can see here, until eventually I understand what the latest update MongoDB has to offer.