Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LocalWP Agent Tools

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![CI](https://github.com/10up/localwp-agent-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/10up/localwp-agent-tools/actions/workflows/ci.yml) [![GPL-2.0-or-later License](https://img.shields.io/github/license/10up/localwp-agent-tools.svg)](https://github.com/10up/localwp-agent-tools/blob/main/LICENSE.md)
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![CI](https://github.com/10up/localwp-agent-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/10up/localwp-agent-tools/actions/workflows/ci.yml) [![GPL-2.0-or-later License](https://img.shields.io/github/license/10up/localwp-agent-tools.svg)](https://github.com/10up/localwp-agent-tools/blob/main/LICENSE.md)

> A [Local](https://localwp.com/) 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.

Expand Down
4 changes: 1 addition & 3 deletions src/tools/wpcli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ async function runWpCli(
cmdArgs.push(`--path=${config.wpPath}`);
}

// Skip themes/plugins that may fatally error
cmdArgs.push('--skip-themes', '--skip-plugins');

const timeout = options?.timeout ?? 60_000;

const env = buildWpCliEnv(config);
Expand All @@ -84,6 +81,7 @@ export const toolDefinitions = [
name: 'wp_cli',
description:
'Run an arbitrary WP-CLI command. Pass arguments without the leading "wp" prefix. Example: args="post list --post_type=page --format=json"\n\n' +
'Plugins and themes are loaded by default so plugin-provided commands (e.g. "elasticpress stats", "acf", "redis") work. If a specific plugin or theme is fatally erroring, pass "--skip-plugins=<slug>" / "--skip-themes=<slug>" (or the bare flags to skip all) to bypass it.\n\n' +
'WARNING: Some WP-CLI commands are destructive and should only be run after confirming with the user:\n' +
'- "eval" / "eval-file" / "shell" — execute arbitrary PHP code\n' +
'- "db drop" / "db reset" — destroy the database\n' +
Expand Down
2 changes: 2 additions & 0 deletions tests/tools/__snapshots__/definitions.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ exports[`Tool definitions snapshot > tool descriptions match snapshot 1`] = `
{
"description": "Run an arbitrary WP-CLI command. Pass arguments without the leading "wp" prefix. Example: args="post list --post_type=page --format=json"

Plugins and themes are loaded by default so plugin-provided commands (e.g. "elasticpress stats", "acf", "redis") work. If a specific plugin or theme is fatally erroring, pass "--skip-plugins=<slug>" / "--skip-themes=<slug>" (or the bare flags to skip all) to bypass it.

WARNING: Some WP-CLI commands are destructive and should only be run after confirming with the user:
- "eval" / "eval-file" / "shell" — execute arbitrary PHP code
- "db drop" / "db reset" — destroy the database
Expand Down
Loading