what's up Wizards anthropic have come out with something pretty interesting it's called the model context protocol what it is it's a new standard for connecting AI assistant to the systems where data lives in other words you create these servers that basically you have your host on the left hand side here which can be in this case it's going to be clae right CU it's anthropic could be IDE could be a tool of some kind some sort of application that's sitting on your desktop then you connect it via the mCP protocol to a server so that
server is probably running in a process on the same machine and they connect via standard in standard out so they connect via a Json RPC that basically connects those two things together they can fire messages back and forth and then that server can do all sorts of things so it can connect to resources can connect to databases connect to apis do basically anything a server can do and they've got a typescript SDK which makes my mouth water the way this works we are inside an GitHub example here I'm going to shoot all the way to
the top just so you can see basically inside uh essentially a massive class and the thing I want you to take a look at is set request Handler there we go and there are two set request handlers here that we have these are listed basically via schema and these two schemas are if I zoom in a touch list tools and then the other one is call tool so basically we just have two fetch requests here that the uh that Claude is basically able to make to your server and basically it just lists the tools so
create or update file search repositories create repositories get file contents push files you know like tons of stuff here and then the other one is call tool so it just calls a tool and I assume basically what it's doing is request. pr. name it's just switching on the type of events that could be passed here so this RPC model is super powerful and it just works through standard in and they're creating an open standard for it so this is not just going to be anthropic doing this you're going to see other people jumping on this
if it takes off of of course I'm kind of pretty interested about this because it means that these tool sets can just be back like swapped in and out basically so you can just grab anthropic grab Claude and then grab the tool set that you want and you're ready to go