Skip to content

Commit 9e48258

Browse files
committed
fix: updating storage config should return something
1 parent 8ac7392 commit 9e48258

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/mcp-server-supabase/src/server.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,7 @@ describe('tools', () => {
654654
},
655655
});
656656

657-
// Update should succeed without error
658-
expect(result).toBeUndefined();
657+
expect(result).toEqual({ success: true });
659658
});
660659

661660
test('execute sql', async () => {

packages/mcp-server-supabase/src/tools/storage-tools.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export function getStorageTools({ platform, projectId }: StorageToolsOptions) {
4545
}),
4646
inject: { project_id },
4747
execute: async ({ project_id, config }) => {
48-
return await platform.updateStorageConfig(project_id, config);
48+
await platform.updateStorageConfig(project_id, config);
49+
return { success: true };
4950
},
5051
}),
5152
};

0 commit comments

Comments
 (0)