Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_run_bash_commands

Execute Bash commands on a WordPress site to automate server operations, manage configurations, or perform maintenance tasks directly through the Pressable API.

Instructions

Run Bash commands on a specific site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
commandsYesList of Bash commands

Implementation Reference

  • The handler for the 'pressable_run_bash_commands' tool, which performs an API request to execute bash commands.
    handler: async (args) => {
        return await api.post(`/sites/${args.id}/wordpress/commands`, { commands: args.commands });
    }
  • Input schema definition for the 'pressable_run_bash_commands' tool.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string' },
            commands: {
                type: 'array',
                items: { type: 'string' },
                description: 'List of Bash commands'
            }
        },
        required: ['id', 'commands']
    },
  • Registration of the 'pressable_run_bash_commands' tool.
    {
        name: 'pressable_run_bash_commands',
        description: 'Run Bash commands on a specific site.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                commands: {
                    type: 'array',
                    items: { type: 'string' },
                    description: 'List of Bash commands'
                }
            },
            required: ['id', 'commands']
        },
        handler: async (args) => {
            return await api.post(`/sites/${args.id}/wordpress/commands`, { 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