Prerequisites

You may use server-everything to complete the tutorial.
If your server only supports stdio transport, use supergateway to wrap it.

Register the MCP server

Start by registering the MCP server into the Platform:
beeai mcp add <server-name> <server-url>

List available tools

List available MCP tools:
If you have multiple MCP servers registered, tools across all the servers will be listed.
beeai mcp tools

Create a toolkit

Create a toolkit:
beeai mcp toolkit <tool-1> <tool-2> ...
Toolkit is just another MCP server containing the selected tools. It is served over Streamable HTTP.
Toolkits have an expiration. They are temporary resources meant to be used by an agent for a single task.

Use the toolkit with your agent

Grab the URL of the toolkit and give it to an agent. The agent can now use this URL with the MCP client to connect an use the toolkit.
We’re working on a mechanism for agents to receive arbitrary MCP server as a dependency injection over the agent protocol. Currently, the URL delivery must be done out of bound.