Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd522faf

Browse files
committed
moar WIP
Signed-off-by: Danny Kopping <danny@coder.com>
1 parente41e3c4 commitd522faf

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

‎docs/ai-coder/ai-bridge.md‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ you may specify the base URL(s) above to the appropriate API endpoint.
6161

6262
---
6363

64-
6564
>[!NOTE]
6665
>See[Supported APIs](#supported-apis) section below for a comprehensive list.
6766
@@ -73,9 +72,11 @@ AI Bridge collects:
7372
- All token usage
7473
- All tool invocations
7574

75+
All of these records are associated to an "interception" record, which maps 1:1 with requests received from clients but may involve several interactions with upstream providers.
76+
7677
##Implementation Details
7778

78-
`coderd` runs an in-memory instance ofhttps://github.com/coder/aibridge. In future releases we will support running external instances for higher throughput and complete memory isolation from`coderd`.
79+
`coderd` runs an in-memory instance of`aibridged`, whose logic is mostly contained inhttps://github.com/coder/aibridge. In future releases we will support running external instances for higher throughput and complete memory isolation from`coderd`.
7980

8081
<details>
8182
<summary>See a diagram of how AI Bridge interception works</summary>
@@ -143,6 +144,7 @@ AI Bridge can connect to MCP servers and inject tools automatically, enabling yo
143144

144145
>[!NOTE]
145146
>Only MCP servers which support OAuth2 Authorization are supported currently. In future releases we will support[optional authorization](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization#protocol-requirements).
147+
>
146148
>[_Streamable HTTP_](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#streamable-http) is the only supported transport currently. In future releases we will support the (now deprecated)[_Server-Sent Events_](https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#backwards-compatibility) transport.
147149
148150
AI Bridge makes use of[External Auth](../admin/external-auth/index.md) applications, as they define OAuth2 connections to upstream services. If your External Auth application hosts a remote MCP server, you can configure AI Bridge to connect to it, retrieve its tools and inject them into requests automatically - all while using each individual user's access token.
@@ -193,9 +195,16 @@ If you have the `oauth2` and `mcp-server-http` experiments enabled, Coder's own
193195

194196
##Troubleshooting
195197

196-
- Too many tools
197-
- Coder MCP tools not being listed
198-
- External Auth tools not being injected
198+
-**Too many tools**: should you receive an error like`Invalid 'tools': array too long. Expected an array with maximum length 128, but got an array with length 132 instead`, you can reduce the number by filtering out tools using the allow/deny patterns documented in the[MCP](#mcp) section.
199+
200+
-**Coder MCP tools not being injected**: in order for Coder MCP tools to be injected, the internal MCP server needs to be active. Follow the instructions in the[MCP Server](mcp-server.md) page to enable it.
201+
202+
-**External Auth tools not being injected**: this is generally due to the requesting user not being authenticated against the External Auth app; when this is the case, no attempt is made to connect to the MCP server.
203+
204+
##Known Issues / Limitations
205+
206+
- Codex CLI currently does not work with AI Bridge due to a JSON marshaling issue:https://github.com/coder/aibridge/issues/19
207+
- Claude Code web searches do not report correctly:https://github.com/coder/aibridge/issues/11
199208

200209
##Supported APIs
201210

@@ -204,7 +213,7 @@ API support is broken down into two categories:
204213
-**Intercepted**: requests are intercepted, audited, and augmented - full AI Bridge functionality
205214
-**Passthrough**: requests are proxied directly to the upstream, no auditing or augmentation takes place
206215

207-
Where relevant, both streaming ando
216+
Where relevant, both streaming andnon-streaming requests are supported.
208217

209218
###OpenAI
210219

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp