Ethan
f64ccfb836
feat: add experimental inline MCP servers ( #29546 )
...
Closes CODAGT-1131
Fifth PR in the inline MCP servers stack, on top of #29520 . A chat owner
can now declare MCP servers by URL and headers on their own chat, and
chatd connects to them every turn alongside the org-configured ones.
They go in a new `inline_mcp_servers` field on `POST /api/v2/chats` and
`POST /api/v2/chats/{chat}/messages`, which replaces the whole set (omit
to keep, `[]` to remove). Root chats only. `GET /api/v2/chats/{chat}`
returns them, with the URL blanked for non-owners and header values
never returned. Subagents only get servers marked `allow_in_subagents`,
a root chat in explore mode gets none, and a root chat in plan mode gets
all of them.
URLs must be `https`, or `http` to an IP literal in
`CODER_MCP_ALLOWED_PRIVATE_CIDRS`. Header values have no minimum length,
so anything under the redactor's 8 byte floor from #29518 is accepted
but not redacted, which the docs call out. Every cap is exported from
`codersdk`.
It's behind the `chat-inline-mcp-servers` experiment, and the
`--disable-chat-caller-supplied-tools` kill switch from #29466 covers it
too. With either off, declaring servers gets a 403 and existing chats
stop connecting to theirs, but `[]` still works so a client can detach.
Load failures show up in the chat debug panel as failed connections, as
do org servers with an invalid config. Docs are hand-written in
`mcp-servers.md`.
2026-09-25 18:51:55 +10:00
..
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-18 16:47:16 +02:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-09 07:34:51 -04:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-31 11:35:59 -04:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-24 09:41:21 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-24 09:41:21 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-23 19:42:10 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-25 18:51:55 +10:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-19 14:46:10 -05:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-09-08 21:45:43 -06:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00
2026-08-11 15:22:55 +00:00