You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/http-transport-api.md
+84-3Lines changed: 84 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,11 @@ This document provides comprehensive API documentation for the Bifrost HTTP tran
4
4
5
5
## Base URL
6
6
7
+
```text
8
+
http://localhost:8080
7
9
```
8
-
http://localhost:8080
9
-
```
10
+
11
+
> 🔧 **MCP (Model Context Protocol) Integration**: Bifrost HTTP transport includes built-in MCP support for external tool integration. When MCP is configured, tools are automatically discovered and added to model requests. For comprehensive MCP setup and usage, see the [**MCP Integration Guide**](mcp.md) and [**HTTP Transport MCP Configuration**](../transports/README.md#mcp-model-context-protocol-configuration).
10
12
11
13
## OpenAPI Specification
12
14
@@ -215,7 +217,86 @@ Creates a text completion from a prompt.
215
217
}
216
218
```
217
219
218
-
### 3. Metrics
220
+
### 3. MCP Tool Execution
221
+
222
+
**POST**`/v1/mcp/tool/execute`
223
+
224
+
Executes MCP (Model Context Protocol) tools that have been configured in Bifrost. This endpoint is used to execute tool calls returned by AI models during conversations.
225
+
226
+
> **Note**: This endpoint requires MCP to be configured in Bifrost. See [MCP Integration Guide](mcp.md) for setup instructions.
227
+
228
+
#### Request Body
229
+
230
+
```json
231
+
{
232
+
"type": "function",
233
+
"id": "toolu_01Vmq4gaU6tSy7ZRKVC7U2fg",
234
+
"function": {
235
+
"name": "google_search",
236
+
"arguments": "{\"gl\":\"us\",\"hl\":\"en\",\"num\":5,\"q\":\"San Francisco news yesterday\",\"tbs\":\"qdr:d\"}"
For detailed MCP setup and multi-turn conversation examples, see [Multi-Turn Conversations with MCP Tools](../transports/README.md#multi-turn-conversations-with-mcp-tools).
0 commit comments