
Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
10up/localwp-agent-tools - это MCP-серверный кандидат, импортированный из https://github.com/10up/localwp-agent-tools.
Обзор
10up/localwp-agent-tools - это MCP-серверный кандидат, импортированный из https://github.com/10up/localwp-agent-tools.
Обзор (машинный перевод)
Локальное дополнение, которое предоставляет MCP-сервер и контекст проекта для разработки WordPress на основе ИИ. Работает с Claude Code, Cursor, Windsurf, VS Code Copilot и любым клиентом MCP.
Что это делает
Когда вы нажимаете «Включить» на сайте в Local, дополнение:
- ** Зарегистрирует сайт с помощью MCP-сервера ** — одного HTTP-сервера, работающего в основном процессе Local, который предоставляет инструментам ИИ доступ к WP-CLI, журналам ошибок, конфигурации и управлению сайтом
- Writes MCP config
.mcp.json,.cursor/mcp.jsonи т.д.) — автоматически сконфигурированный с правильной конечной точкой HTTP и маркером предъявителя для каждого агента (см. Аутентификация ниже) - ** Генерирует контекст проекта ** (
CLAUDE.md,.cursorrulesи т.д.) — контекст сайта, включая версии PHP/MySQL, активные плагины, тему и структуру файлов - ** Обновления
.gitignore** — файлы конфигураций MCP теперь несут секрет (токен-носитель) вместе с сгенерированными файлами контекста, поэтому все они игнорируются, и никто не совершается
Затем откройте папку сайта в выбранном вами инструменте ИИ, и вы готовы к работе.
Архитектура
Сервер MCP работает как один HTTP-сервер в основном процессе Local’s Electron — нет отдельных процессов Node.js на сайте.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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:
- 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
- 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) - Generates project context (
CLAUDE.md,.cursorrules, etc.) — site context including PHP/MySQL versions, active plugins, theme, and file structure - 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.
Установка
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>" }
}
}
}