Michael Suchacz
1e546ea8a3
feat(coderd/x/chatd/mcpclient): migrate external MCP client to official Go SDK ( #28058 )
...
## Stack Context
PR 3 of 6 in a stack that migrates every Coder MCP surface from the
archived `github.com/mark3labs/mcp-go` library to the official
`github.com/modelcontextprotocol/go-sdk` v1.7.0.
Stack: #28056 -> #28057 -> #28058 -> #28059 -> #28060 -> #28061
## Why
The chatd external MCP client (admin-configured MCP servers used by
Agent chat) now holds `*mcp.ClientSession` connections created via
`mcp.NewClient` and `Client.Connect`, with `StreamableClientTransport`
or `SSEClientTransport` per server config.
- Auth and identity headers are injected through a custom
`http.RoundTripper` because the official SDK has no per-header transport
options.
- Tool input schemas are extracted from the SDK's `map[string]any`
decoding.
- Content conversion handles the official pointer content types; the SDK
decodes blob resources into raw bytes, so binary content is handled
without an extra base64 round trip.
- Test fixtures are official stateless Streamable HTTP servers.
> Mux created this PR on Mike's behalf.
2026-08-13 10:11:47 +00:00
..
2026-07-14 13:50:25 +01:00
2026-08-12 15:35:31 +01:00
2026-08-11 11:20:05 +02:00
2026-08-06 15:51:32 +01:00
2026-08-05 22:41:17 +02:00
2026-08-06 16:09:38 +07:00
2026-08-04 08:00:19 +00:00
2026-08-11 13:53:15 +02:00
2026-08-04 08:13:00 +00:00
2026-06-16 12:35:40 +00:00
2026-06-16 12:35:40 +00:00
2026-08-12 20:38:57 +02:00
2026-08-12 12:52:22 +02:00
2026-08-11 20:49:49 +05:00
2026-07-02 11:22:56 +01:00
2026-08-13 10:11:47 +00:00
2026-08-06 16:09:38 +07:00
2026-07-29 11:39:12 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-08-04 07:46:32 +00:00
2026-08-12 20:38:57 +02:00
2026-08-06 16:09:38 +07:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00
2026-08-04 07:46:32 +00:00
2026-07-18 20:45:13 +02:00
2026-08-04 07:46:32 +00:00
2026-07-06 11:57:12 +01:00
2026-08-12 20:38:57 +02:00
2026-08-12 20:38:57 +02:00
2026-07-20 19:49:19 +02:00
2026-07-29 11:39:12 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:13:00 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 08:00:19 +00:00
2026-08-04 07:46:32 +00:00
2026-07-07 00:20:54 +10:00
2026-07-18 21:52:02 +02:00
2026-07-18 21:52:02 +02:00
2026-06-30 12:17:42 +01:00
2026-07-18 21:52:02 +02:00
2026-07-06 11:57:12 +01:00
2026-07-18 21:52:02 +02:00
2026-07-29 11:39:12 +00:00
2026-06-11 16:08:32 +10:00
2026-06-11 16:08:32 +10:00
2026-08-11 12:02:21 +02:00
2026-07-29 11:39:12 +00:00
2026-08-13 08:42:23 +01:00
2026-08-11 12:49:12 +02:00
2026-06-17 10:20:47 +00:00
2026-08-06 16:09:38 +07:00
2026-07-20 19:49:19 +02:00
2026-07-29 11:39:12 +00:00
2026-08-05 22:41:17 +02:00
2026-08-11 13:53:15 +02:00
2026-06-26 13:41:43 +03:00
2026-06-22 19:26:34 -06:00
2026-07-18 20:45:13 +02:00
2026-07-13 20:28:28 +02:00
2026-06-16 12:35:40 +00:00
2026-07-20 00:14:03 +02:00
2026-08-06 16:09:38 +07:00
2026-08-06 16:09:38 +07:00
2026-08-04 08:00:19 +00:00
2026-08-11 23:51:00 +02:00
2026-08-04 08:00:19 +00:00
2026-07-29 11:39:12 +00:00
2026-07-09 23:35:12 +01:00
2026-07-09 23:35:12 +01:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-06-26 13:41:43 +03:00
2026-06-29 11:49:10 +01:00
2026-06-29 11:49:10 +01:00
2026-08-04 07:46:32 +00:00
2026-08-04 08:13:00 +00:00
2026-07-13 20:28:28 +02:00
2026-06-12 13:33:12 +02:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-08-11 13:53:15 +02:00
2026-08-11 13:53:15 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-16 12:35:40 +00:00
2026-06-18 08:28:17 +00:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-06-12 13:33:12 +02:00
2026-07-22 18:43:22 +02:00
2026-07-18 20:45:13 +02:00
2026-08-05 22:41:17 +02:00
2026-07-18 20:45:13 +02:00
2026-08-04 11:36:49 +02:00
2026-07-27 10:05:05 +01:00
2026-07-20 19:49:19 +02:00
2026-07-18 20:45:13 +02:00
2026-08-11 12:56:06 +00:00
2026-08-06 16:09:38 +07:00
2026-06-17 18:29:43 +02:00
2026-08-04 07:46:32 +00:00
2026-08-04 07:46:32 +00:00
2026-07-29 11:39:12 +00:00
2026-07-29 11:39:12 +00:00
2026-07-27 10:05:05 +01:00
2026-07-06 16:37:45 +00:00
2026-07-06 16:37:45 +00:00