Skip to content

Commit 078dc8f

Browse files
committed
Handle empty profile resource lists
1 parent 59b7cbd commit 078dc8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/[transport]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const handler = createMcpHandler((server) => {
9494
{
9595
uri: "profiles://",
9696
mimeType: "application/json",
97-
text: profiles
97+
text: profiles.length > 0
9898
? JSON.stringify(profiles, null, 2)
9999
: "No profiles found",
100100
},

0 commit comments

Comments
 (0)