1L

10up/localwp-agent-tools

Developer tools公式

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

52 stars 8 forks 品質 83 トレンド 27GPL-2.0

10up/localwp-agent-tools は、MCP サーバーの [[T0] からインポートされた候補です

概要

10up/localwp-agent-tools は、MCP サーバーの [[T0] からインポートされた候補です

概要(AI 翻訳)

MCPサーバーとAIを搭載したWordPress開発のためのプロジェクトコンテキストを提供するローカルアドオン。 Claudeコード、Cursor、Windsurf、VSコードコピロット、およびMCPクライアントで動作します。

それが何をしているか

ローカルのサイトにある「有効」をクリックすると、アドオン:

1。MCPサーバーでサイトをRegisters - ローカルのメインプロセスで実行される単一のHTTPサーバーは、AIツールがWP-CLI、エラーログ、構成、およびサイト管理にアクセスできるようにします 2.Writes MCP config (.mcp.json], [.cursor/mcp.json]]) — 正しい HTTP エンドポイントと各エージェントの Per-install ベアートークンで自動設定 (以下、認証を参照してください) 3。プロジェクトコンテキストを生成する([CLAUDE.md])、[.cursorrulesなど) — PHP/MySQLバージョン、アクティブプラグイン、テーマ、ファイル構造を含むサイトコンテキスト 4。[[.gitignore — MCP config ファイルが生成されたコンテキストファイルと一緒に秘密(ベアトークン)を運ぶので、それらはすべて git-ignored であり、どれもコミットしません

次に、選択したAIツールでサイトフォルダを開きます。

アーキテクチャ

MCP サーバーは、ローカルの電子メイン プロセス内の単一の HTTP サーバとして実行され、サイトごとに別の Node.js プロセスは実行されません.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

LocalWP Agent Tools

A Local add-on that provides an MCP server and project context for AI-powered WordPress development. Works with Claude Code, Cursor, Windsurf, VS Code Copilot, and any MCP client.

What It Does

When you click “Enable” on a site in Local, the add-on:

  1. Registers the site with the MCP server — a single HTTP server running in Local’s main process that gives AI tools access to WP-CLI, error logs, configuration, and site management
  2. Writes MCP config (.mcp.json, .cursor/mcp.json, etc.) — auto-configured with the correct HTTP endpoint and the per-install bearer token for each agent (see Authentication below)
  3. Generates project context (CLAUDE.md, .cursorrules, etc.) — site context including PHP/MySQL versions, active plugins, theme, and file structure
  4. Updates .gitignore — the MCP config files now carry a secret (the bearer token) alongside the generated context files, so all of them are git-ignored and none are committed

Then open the site folder in your AI tool of choice and you’re ready to go.

Architecture

The MCP server runs as a single HTTP server inside Local’s Electron main process — no separate Node.js processes per site. It serves two kinds of endpoint:

http://localhost:{port}/sites/mcp             # global — all of Local
http://localhost:{port}/sites/{siteId}/mcp    # one specific site

The server uses the MCP Streamable HTTP transport. The port is stable across restarts (persisted at ~/.local-agent-tools/port, default 24842).

Sites remain registered even when stopped, so the MCP endpoint is always reachable. Tools that need running services (WP-CLI, database) return appropriate errors; file-based tools (config, logs, site info) work regardless. Config is refreshed on each tool call, so starting a site automatically makes database tools work without reconnecting.

Authentication

Every request to the MCP server needs an Authorization: Bearer header. That header is the only channel; there is no ?token= URL parameter.

The add-on creates the token on first start and stores it at ~/.local-agent-tools/token, with mode 0600 in a 0700 directory. The token survives restarts, and the server checks it in constant time.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "local-wp-global": { "type": "http", "url": "http://localhost:24842/sites/mcp", "headers": { "Authorization": "Bearer <token from ~/.local-agent-tools/token>" } } } }