newMCPClient creates a test server and returns the admin client.
(t testing.TB)
| 28 | |
| 29 | // newMCPClient creates a test server and returns the admin client. |
| 30 | func newMCPClient(t testing.TB) *codersdk.Client { |
| 31 | t.Helper() |
| 32 | |
| 33 | providerKeys := coderdtest.FakeOpenAICompatProviderAPIKeys(t) |
| 34 | return coderdtest.New(t, &coderdtest.Options{ |
| 35 | DeploymentValues: mcpDeploymentValues(t), |
| 36 | ChatProviderAPIKeys: &providerKeys, |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | // createMCPServerConfig is a helper that creates a minimal enabled |
| 41 | // MCP server config with auth_type=none. |
no test coverage detected