Skip to content

Commit e0e058c

Browse files
fix(plugin-mcp): handle defaultDepth: 0 in api key authentication (#15014)
1 parent 251fc68 commit e0e058c

File tree

1 file changed

+1
-0
lines changed
  • packages/plugin-mcp/src/endpoints

1 file changed

+1
-0
lines changed

packages/plugin-mcp/src/endpoints/mcp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export const initializeMCPHandler = (pluginOptions: PluginMCPServerConfig) => {
4444

4545
const { docs } = await payload.find({
4646
collection: 'payload-mcp-api-keys',
47+
depth: 1,
4748
limit: 1,
4849
pagination: false,
4950
where,

0 commit comments

Comments
 (0)