You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(plugin-mcp): add draft parameter support to MCP find resource tool (#14924)
### What?
Add `draft` parameter support to the MCP plugin's find tool
### Why?
MCP clients currently have no way to query draft/unpublished documents.
When a collection has drafts enabled, agents need the ability to
retrieve draft versions of documents for preview, editing workflows, or
content management tasks.
### How?
- Added `draft` boolean parameter to the `findResources` schema in
`schemas.ts`
- Updated `find.ts` to accept and pass the `draft` parameter to both
`payload.find()` and `payload.findByID()` calls
- Enabled drafts on the test Posts collection to support testing
- Added integration tests
Co-authored-by: Kendell Joseph <kjoseph@figma.com>
0 commit comments