Skip to content

feat(cms): add getResources MCP tool for markdown resources#43

Merged
jhb-dev merged 1 commit into
mainfrom
claude/mcp-get-resources-tool-c6a1xn
Jun 30, 2026
Merged

feat(cms): add getResources MCP tool for markdown resources#43
jhb-dev merged 1 commit into
mainfrom
claude/mcp-get-resources-tool-c6a1xn

Conversation

@jhb-dev

@jhb-dev jhb-dev commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Expose project markdown resources (starting with the writing style &
tonality guide) over the Payload MCP server via a generic getResources
tool: no argument lists available resources, a slug returns one
resource's markdown.

Resources live as plain .md files in cms/resources/ with YAML front
matter (title, description), so they stay versioned in Git and are
served over MCP from a single source. The directory is scanned at
runtime; outputFileTracingIncludes ships the files with the serverless
function.

A custom tool is used instead of the MCP native "resources" primitive
because claude.ai only supports MCP tools.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_013ZiHAaoXXLdcffYroaJ2oU

Expose project markdown resources (starting with the writing style &
tonality guide) over the Payload MCP server via a generic `getResources`
tool: no argument lists available resources, a `slug` returns one
resource's markdown.

Resources live as plain `.md` files in `cms/resources/` with YAML front
matter (`title`, `description`), so they stay versioned in Git and are
served over MCP from a single source. The directory is scanned at
runtime; `outputFileTracingIncludes` ships the files with the serverless
function.

A custom tool is used instead of the MCP native "resources" primitive
because claude.ai only supports MCP tools.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ZiHAaoXXLdcffYroaJ2oU
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
website Ignored Ignored Jun 30, 2026 3:55pm
website-cms Ignored Ignored Jun 30, 2026 3:55pm

Request Review

@jhb-dev
jhb-dev merged commit c65eb9f into main Jun 30, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants