Skip to content

Conversation

@jhb-dev
Copy link
Contributor

@jhb-dev jhb-dev commented Dec 15, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants