Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_run_wp_cli

Execute WP-CLI commands on WordPress sites through the Pressable MCP Server to manage plugins, clear cache, and perform administrative tasks.

Instructions

Run WP-CLI commands on a specific site. Commands are prefixed with "wp" automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
commandsYesList of WP-CLI commands (e.g., ["plugin list", "cache flush"])

Implementation Reference

  • The handler function for 'pressable_run_wp_cli' that executes the WP-CLI commands via the API.
    handler: async (args) => {
        return await api.post(`/sites/${args.id}/wordpress/wpcli`, { commands: args.commands });
    }
  • The input schema defining the required 'id' and 'commands' parameters for 'pressable_run_wp_cli'.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string' },
            commands: {
                type: 'array',
                items: { type: 'string' },
                description: 'List of WP-CLI commands (e.g., ["plugin list", "cache flush"])'
            }
        },
        required: ['id', 'commands']
    },
  • The full tool definition and registration for 'pressable_run_wp_cli'.
    {
        name: 'pressable_run_wp_cli',
        description: 'Run WP-CLI commands on a specific site. Commands are prefixed with "wp" automatically.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                commands: {
                    type: 'array',
                    items: { type: 'string' },
                    description: 'List of WP-CLI commands (e.g., ["plugin list", "cache flush"])'
                }
            },
            required: ['id', 'commands']
        },
        handler: async (args) => {
            return await api.post(`/sites/${args.id}/wordpress/wpcli`, { commands: args.commands });
        }
    },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PCWProps/pressable-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server