Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_set_php_version

Change the PHP version for a WordPress site hosted on Pressable. Specify the site ID and desired PHP version (8.0, 8.1, 8.2, or 8.3) to update the server configuration.

Instructions

Set the PHP version for a specific site.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
php_versionYes

Implementation Reference

  • Handler function for pressable_set_php_version, which makes a POST request to update the site's PHP version.
    handler: async (args) => {
        return await api.post(`/sites/${args.id}/php-version`, { php_version: args.php_version });
    }
  • Input schema defining the required parameters (id, php_version) for pressable_set_php_version.
    inputSchema: {
        type: 'object',
        properties: {
            id: { type: 'string' },
            php_version: { type: 'string', enum: ['8.0', '8.1', '8.2', '8.3'] }
        },
        required: ['id', 'php_version']
    },
  • tools/server.js:28-42 (registration)
    Tool registration for pressable_set_php_version in tools/server.js.
    {
        name: 'pressable_set_php_version',
        description: 'Set the PHP version for a specific site.',
        inputSchema: {
            type: 'object',
            properties: {
                id: { type: 'string' },
                php_version: { type: 'string', enum: ['8.0', '8.1', '8.2', '8.3'] }
            },
            required: ['id', 'php_version']
        },
        handler: async (args) => {
            return await api.post(`/sites/${args.id}/php-version`, { php_version: args.php_version });
        }
    },
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