Skip to content

Commit 4ded641

Browse files
committed
handle no users found case
1 parent 9d19462 commit 4ded641

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/routes/mcp+/mcp.server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ server.tool(
4040
})
4141
}
4242
}
43+
if (!content.length) {
44+
return {
45+
content: [{ type: 'text', text: 'No users found' }],
46+
}
47+
}
4348

4449
return { content }
4550
},

0 commit comments

Comments
 (0)