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
# Enhanced Configuration Structure and MCP Integration
This PR introduces a more organized configuration structure and adds comprehensive Model Context Protocol (MCP) support for tool integration:
1. Restructured configuration format with a nested `providers` object for better organization
2. Added full MCP (Model Context Protocol) integration for external tool execution
3. Implemented a dedicated `/v1/mcp/tool/execute` endpoint for tool calls
4. Added detailed documentation for multi-turn conversations with MCP tools
5. Updated OpenAPI specification to include MCP tool execution endpoints
6. Improved logging for MCP client connections
7. Added weighted key distribution support in configuration examples
8. Updated `.gitignore` to exclude private files
9. Enhanced documentation with text formatting and code examples
The new configuration structure provides a cleaner separation between provider settings and MCP configuration, while the MCP integration enables AI models to discover and use external tools through a standardized protocol.
Copy file name to clipboardExpand all lines: docs/http-transport-api.md
+85-4Lines changed: 85 additions & 4 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
-
```
8
-
http://localhost:8080
9
-
```
7
+
```text
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