Skip to content

Commit 06e5f4e

Browse files
fix: doc fixes
1 parent 1aa4a9c commit 06e5f4e

File tree

13 files changed

+14923
-60426
lines changed

13 files changed

+14923
-60426
lines changed

docs/.mintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore modular OpenAPI source files
2+
openapi/paths/
3+
openapi/schemas/
4+
openapi/openapi.yaml

docs/docs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"providers/supported-providers/xai"
112112
]
113113
},
114+
"providers/routing-rules",
114115
"providers/provider-routing",
115116
"providers/reasoning",
116117
"providers/performance",

docs/mcp/filtering.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,18 @@ curl -X POST http://localhost:8080/v1/chat/completions \
146146
curl -X POST http://localhost:8080/v1/chat/completions \
147147
-H "x-bf-mcp-include-tools: bifrostInternal-echo,bifrostInternal-calculator" \
148148
-d '...'
149+
150+
# Empty clients filter blocks ALL tools - no tools available to LLM
151+
curl -X POST http://localhost:8080/v1/chat/completions \
152+
-H "x-bf-mcp-include-clients: []" \
153+
-d '...'
154+
# Result: No MCP tools available (deny-all)
155+
156+
# Empty tools filter also blocks ALL tools
157+
curl -X POST http://localhost:8080/v1/chat/completions \
158+
-H "x-bf-mcp-include-tools: []" \
159+
-d '...'
160+
# Result: No MCP tools available (deny-all)
149161
```
150162

151163
### Go SDK Context Values
@@ -172,6 +184,18 @@ ctx = context.WithValue(ctx,
172184
[]string{"bifrostInternal-*"})
173185

174186
response, err := client.ChatCompletionRequest(ctx, request)
187+
188+
// Empty include-clients blocks ALL tools - no tools available
189+
ctx = context.WithValue(context.Background(),
190+
schemas.BifrostContextKey("mcp-include-clients"),
191+
[]string{}) // Empty slice = deny-all
192+
// Result: No MCP tools available to LLM
193+
194+
// Empty include-tools also blocks ALL tools
195+
ctx = context.WithValue(context.Background(),
196+
schemas.BifrostContextKey("mcp-include-tools"),
197+
[]string{}) // Empty slice = deny-all
198+
// Result: No MCP tools available to LLM
175199
```
176200

177201
### Wildcard Support

docs/media/routing-rules-flow.svg

Lines changed: 106 additions & 0 deletions
Loading
2.71 MB
Loading
3.28 MB
Loading

0 commit comments

Comments
 (0)