GB

gravitykit/block-mcp

Developer tools공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

54 stars 5 forks 품질 75 트렌드 27NOASSERTION

WordPress 블록 레벨 CRUD MCP 서버 - 경로 기반 mutations, 안전 가드, 기본 scoring

개요

워드 프레스 MCP는 방법 에이전트에 대 한 구축 실제로 편집 — 한 번에 한 블록, 여러 차례로, 페이지 손상 없이. 그것은 MCP 서버 플러스 워드 프레스 플러그인 구조로 Gutenberg 콘텐츠를 노출, 원본 HTML 대신 주소블 블록 트리, 그래서 에이전트는 페이지를 rewriting하지 않고 단일 헤드를 변경할 수 있습니다. 모든 블록은 안정적인 gk ref UUID를 운반 (다른 워드 프레스 MCP가 없습니다), 그래서 멀티 회전 편집 체인은 통화 사이에 페이지를 다시 태워하지 않습니다. 모든 쓰기 롤백에 대한 WordPress 개정을 작성, ETag/If-Match는 동시 덮음에 대한 보호, 그리고 서버 측 계층 정책은 이제까지 디스크를 타격에서 레거시 블록을 중지. PHP 8.2/8.3 + Node 20 및 번역에 대한 , CI에 의해 백업. - 주변 HTML을 터치하지 않고 헤드링의 레벨을 변경합니다. Standard MCPs는 모든 편집에 전체 페이지를 다시 작성합니다. MCP는 한 번 두 번만 터치합니다. - 블록 마커는 정확히 보존됩니다.

개요(AI 번역)

Block MCP는 WordPress MCP가 여러 차례의 회전을 통해 에이전트가 실제로 편집 한 번에 한 블록을 편집합니다. 그것은 MCP 서버 플러스 워드 프레스 플러그인 구조로 Gutenberg 콘텐츠를 노출, 원본 HTML 대신 주소블 블록 트리, 그래서 에이전트는 페이지를 rewriting하지 않고 단일 헤드를 변경할 수 있습니다. 모든 블록은 안정된 gk_ref] UUID를 운반 (다른 워드 프레스 MCP가 없습니다), 그래서 멀티 회전 편집 체인은 호출 사이에 페이지를 다시 핑하지 않습니다. 모든 쓰기 롤백에 대한 WordPress 개정을 작성, ETag/If-Match는 동시 덮음에 대한 보호, 그리고 서버 측 계층 정책은 이제까지 디스크를 타격에서 레거시 블록을 중지. ** 326 PHP 테스트, 249 TypeScript 테스트 **, PHP 8.2/8.3 + Node 20의 CI 및 번역 20 개 언어.

왜 대리인 선택 구획 MCP

  • ** 한 블록, 전체 페이지가 아닙니다. ** 주변 HTML을 터치하지 않고 헤드링의 레벨을 변경합니다. Standard MCPs는 모든 편집에 전체 페이지를 다시 작성합니다. MCP는 한 번 두 번만 터치합니다.
  • Editor-safe Round-trips. 블록 마커는 정확히 보존됩니다. "이 블록은 예기치 않은 또는 잘못된 콘텐츠"가 다시 열림에 경고를 포함하지 않습니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Block MCP

Block MCP is the WordPress MCP built for the way agents actually edit — one block at a time, across multiple turns, without corrupting the page. It’s an MCP server plus WordPress plugin that exposes Gutenberg content as a structured, addressable block tree instead of raw HTML, so an agent can change a single heading without rewriting the page. Every block carries a stable gk_ref UUID that survives sibling shifts (no other WordPress MCP has this), so multi-turn edit chains don’t re-fetch the page between calls. Every write creates a WordPress revision for rollback, ETag/If-Match guards against concurrent overwrites, and a server-side tier policy stops legacy blocks from ever hitting disk. Backed by 326 PHP tests, 249 TypeScript tests, CI on PHP 8.2/8.3 + Node 20, and translations to 20 languages.

Why agents pick Block MCP

  • Edits one block, not the whole page. Change a heading’s level without touching the surrounding HTML. Standard MCPs force a full page rewrite on every edit; Block MCP touches just the one heading.
  • Editor-safe round-trips. `` block markers are preserved exactly. No “this block contains unexpected or invalid content” warnings on reopen.
  • Stable block refs no other WordPress MCP has. Quickly chain inserts, deletes, and updates across turns from a single read.
  • Atomic batch edits. Fix N independent blocks in one revision with update_blocks — all-or-nothing validation, so a stale ref or out-of-range index aborts the whole batch before anything hits disk. Keeps revision history clean instead of 6 entries for one logical change.
  • Tier policy enforced server-side. Decide what blocks you want to allow or reject before they are saved, with suggested replacements.
  • Optimistic concurrency built in. Two agents working on the same post can’t silently overwrite each other.
  • Yoast SEO support built in. Read and write Yoast meta (titles, descriptions, focus keywords, canonical URLs, schema types, primary terms, Open Graph / Twitter cards) the moment Yoast SEO is active on the site.

Table of Contents

GitHub에서 전체 README 보기

설치

npx -y @gravitykit/block-mcp connect --site https://example.com
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "block-mcp": { "command": "node", "args": ["/absolute/path/to/block-mcp/dist/index.cjs"], "env": { "WORDPRESS_URL": "https://example.com", "WORDPRESS_USER": "your-wp-username", "WORDPRESS_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx" } } } }