Concepts
MCP & Bridge
Creating the MCP instance of your app
Muppet
Now that you have defined your tools and prompts, you can create the MCP instance of your app. This is done using the muppet
function. This function takes the app
instance and an configurtions object as arguments.
The muppet
function takes the following configurations
Prop | Type | Default |
---|---|---|
name | string | - |
version | string | - |
logger? | number | - |
resources? | Record<string, ResourceFetcherFn> | - |
events? | Emitter<ClientToServerNotifications> | - |
Bridge
Now let's create a bridge between the LLM and your server. This is done using the bridge
function. Think of this like Bifröst, it connects the LLM using the transport layer to your server.
This takes in your muppet instance and the transport layer you wanna use.
You can check out other transport layers here.