@@ -170,6 +170,18 @@ export default async function createGlobalServer(server: FastifyInstance) {
170170 }
171171 }
172172
173+ // Auto-fill icon_url from GitHub avatar if not explicitly provided
174+ let iconUrl = requestData . icon_url ;
175+ if ( ! iconUrl && githubAccountId ) {
176+ iconUrl = `https://avatars.githubusercontent.com/u/${ githubAccountId } ?v=4&s=64` ;
177+ request . log . debug ( {
178+ operation : 'create_global_mcp_server' ,
179+ step : 'auto_fill_icon_url' ,
180+ github_account_id : githubAccountId ,
181+ icon_url : iconUrl
182+ } , 'Auto-filled icon_url from GitHub account ID' ) ;
183+ }
184+
173185 // OAuth detection for remote MCP servers (HTTP/SSE)
174186 let requiresOauth = false ;
175187 if ( finalTransportType === 'http' || finalTransportType === 'sse' ) {
@@ -228,7 +240,7 @@ export default async function createGlobalServer(server: FastifyInstance) {
228240 repository_subfolder : requestData . repository_subfolder || undefined ,
229241 git_branch : requestData . repository_url ? requestData . git_branch : undefined ,
230242 website_url : requestData . website_url ,
231- icon_url : requestData . icon_url ,
243+ icon_url : iconUrl ,
232244 language : requestData . language ,
233245 runtime : requestData . runtime ,
234246 packages : finalPackages ,
0 commit comments