Skip to main content
Glama
PCWProps

Pressable MCP Server

by PCWProps

pressable_create_bash_bookmark

Create and save Bash or WP-CLI command bookmarks for WordPress site management through the Pressable API, enabling quick access to frequently used commands.

Instructions

Create a new Bash/WP-CLI command bookmark.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
descriptionNo
commandYes
command_typeYes

Implementation Reference

  • The handler function for 'pressable_create_bash_bookmark' that makes a POST request to the API to create a new bookmark.
    handler: async (args) => {
        return await api.post('/bash_command_bookmarks', { bash_command_bookmark: args });
    }
  • The input schema defining the required parameters (name, command, command_type) for the 'pressable_create_bash_bookmark' tool.
    inputSchema: {
        type: 'object',
        properties: {
            name: { type: 'string' },
            description: { type: 'string' },
            command: { type: 'string' },
            command_type: { type: 'string', enum: ['bash', 'wp_cli'] }
        },
        required: ['name', 'command', 'command_type']
    },
  • The registration block for the 'pressable_create_bash_bookmark' tool within the bookmarkTools array.
    {
        name: 'pressable_create_bash_bookmark',
        description: 'Create a new Bash/WP-CLI command bookmark.',
        inputSchema: {
            type: 'object',
            properties: {
                name: { type: 'string' },
                description: { type: 'string' },
                command: { type: 'string' },
                command_type: { type: 'string', enum: ['bash', 'wp_cli'] }
            },
            required: ['name', 'command', 'command_type']
        },
        handler: async (args) => {
            return await api.post('/bash_command_bookmarks', { bash_command_bookmark: args });
        }
    },
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