Skip to content

Add admin-publish-blog-post Admin MCP tool - #518

Merged
shanerbaner82 merged 1 commit into
mainfrom
feature/admin-mcp-publish-blog-post
Sep 12, 2026
Merged

shanerbaner82 merged 1 commit into
mainfrom
feature/admin-mcp-publish-blog-post

Conversation

@shanerbaner82

Copy link
Copy Markdown
Contributor

Summary

  • Adds admin-publish-blog-post to NativePHP Admin MCP so Growth/Site can publish unpublished Filament articles without opening Filament.
  • Publishes the same way Filament does: Article::publish(?DateTime) which sets published_at (no status enum). Optional published_at (ISO8601); defaults to now. Idempotent if already published. Does not unpublish.
  • Registers the tool on AdminNativePhpServer, updates server instructions, and covers publish draft / already published / missing / missing id-or-slug.

Test plan

  • vendor/bin/pint --dirty
  • php artisan test --filter=AdminMcpOAuthTest (24 passed)
  • Manual: OAuth mcp:adminadmin-publish-blog-post with draft id/slug; confirm Filament list shows published and public /blog/{slug} works
  • Manual: re-call on already-published article; confirm published_at unchanged

Lets site admins publish Filament blog drafts via mcp:admin by calling
Article::publish (published_at), with optional ISO8601 time and
idempotent success when already live.
@shanerbaner82
shanerbaner82 merged commit ca9ecd3 into main Sep 12, 2026
3 checks passed
@shanerbaner82
shanerbaner82 deleted the feature/admin-mcp-publish-blog-post branch September 12, 2026 01:27
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.

1 participant