@dudefactory/payload-plugin-content-planner
v3.1.3
Published
Payload CMS plugin that extends MCP with content planning collections and data sources
Downloads
486
Maintainers
Readme
Payload Content Planner Plugin
A Payload CMS plugin that adds content planning collections and integrates with your MCP system.
What It Does
Adds three collections to your Payload CMS:
- Content Tasks - Work items for agents to execute
- Keywords - SEO keyword database
- Instructions - Writing guidelines and rules
Exports MCP tools so agents can query and manage these collections via your MCP interface.
Install
npm install @dudefactory/payload-plugin-content-plannerSetup
In your Payload config:
import { buildConfig } from 'payload/config';
import {
contentPlannerPlugin,
createContentTasksCollection,
createInstructionsCollection,
contentPlannerTools,
contentPlannerPrompts,
} from '@dudefactory/payload-plugin-content-planner';
// Define which MCP tools are available in your system
const availableMcpTools = [
'createPosts',
'createPublicEvents',
'createFactories',
];
export default buildConfig({
plugins: [
contentPlannerPlugin({
enabled: true,
// Pass collection factory functions with your available tools
collections: {
contentTasks: createContentTasksCollection(['posts', 'public-events']),
instructions: createInstructionsCollection(availableMcpTools),
},
}),
// Add tools/prompts to your MCP plugin
mcpPlugin({
tools: [...existingTools, ...contentPlannerTools],
prompts: [...existingPrompts, ...contentPlannerPrompts],
}),
],
});Collections
Content Tasks
title- Task nameinstructions- What to dostatus- todo | in-progress | done | blockedpriority- low | normal | highdeadline- Due datetags- Categoriesnotes- Notes/results
Keywords
keyword- The keyword phrasecategory- Content categorysearchVolume- Monthly searchesdifficulty- SEO difficultyintent- Search intent typerelatedKeywords- Related phrases
Instructions
title- Guideline nametype- Tone, Style, Terminology, Format, MCP Prompt, etc.category- Optional grouping (e.g., "SEO", "Tone")toolScope- Optional. Scope to a specific MCP tool (e.g., "createPosts"). Leave blank to apply to all tools.content- The actual guideline textexamples- Optional examples for complex guidelinesactive- Whether agents use this instruction
MCP Tools
Available via your /api/mcp endpoint:
contentplanner/get-oldest-task- Get next todo taskcontentplanner/fetch-keywords- Fetch keywords by categorycontentplanner/fetch-instructions- Fetch guidelinescontentplanner/update-task- Update task status/notes
Docs
- Agent Instructions - How agents use the plugin
License
MIT
