(
config: McpServerConfig,
userId: string,
workspaceId?: string
)
| 103 | } |
| 104 | |
| 105 | private async resolveConfigEnvVars( |
| 106 | config: McpServerConfig, |
| 107 | userId: string, |
| 108 | workspaceId?: string |
| 109 | ): Promise<{ config: McpServerConfig; resolvedIP: string | null }> { |
| 110 | const { config: resolvedConfig } = await resolveMcpConfigEnvVars(config, userId, workspaceId, { |
| 111 | strict: true, |
| 112 | }) |
| 113 | validateMcpDomain(resolvedConfig.url) |
| 114 | const resolvedIP = await validateMcpServerSsrf(resolvedConfig.url) |
| 115 | return { config: resolvedConfig, resolvedIP } |
| 116 | } |
| 117 | |
| 118 | private async getServerConfig( |
| 119 | serverId: string, |
no test coverage detected