Invoke a function (i.e. MCP server)
Make invocation requests on your functions and MCP servers.
Blaxel has a purpose-built implementation for MCP transport that uses WebSockets protocol instead of Server-Sent Events (SSE) or stdio to feature robust capabilities — including persistent connections with automatic reconnection handling, multi-tenant support, health monitoring, and seamless AI framework integration.
At this time, MCP servers deployed on Blaxel are only hosted server-side and cannot be installed locally. Only WebSockets protocol is supported.
MCP server endpoint
When you deploy an MCP server on Blaxel, a WebSocket-based endpoint is generated on Global Agentics Network to connect to the server.
The server endpoint looks like this:
Endpoint authentication
By default, MCP servers deployed on Blaxel aren’t public. It is necessary to authenticate all connections, via a bearer token.
The evaluation of authentication/authorization for messages is managed by the Global Agentics Network based on the access given in your workspace.
Make an invocation request
Using the API
MCP servers (Model Context Protocol) provide a toolkit of multiple tools—individual capabilities for accessing specific APIs or databases. These servers can be interacted with using WebSocket protocol on the server’s global endpoint.
Blaxel’s pre-built MCP servers offer two methods:
tools/list
A method that lists the available tools and their schemas, allowing consumers (you or agents) to discover the function’s capabilities.tools/call
A method that lets consumers execute individual tools. It requires params with two keys:name
: the name of the tool to run, obtained from the listing endpoint abovearguments
: an object with the key and values of input parameters for the execution, obtained from the listing endpoint above
Example of tools/list
outbound message on a Brave Search toolkit (make sure to fill in the authentication token).
This one returns two tools in the function: brave_web_search and brave_local_search.
Example of tools/call
outbound message on the brave_web_search tool.
Blaxel console
Requests to an MCP server can be made from the Blaxel console from the server deployment’s Playground page.
Was this page helpful?