Skip to content

Instantly share code, notes, and snippets.

@jonathanbossenger
Last active August 21, 2025 17:43
Show Gist options
  • Select an option

  • Save jonathanbossenger/559f27295b7edd2b7168ff8692eaf50c to your computer and use it in GitHub Desktop.

Select an option

Save jonathanbossenger/559f27295b7edd2b7168ff8692eaf50c to your computer and use it in GitHub Desktop.
All the links for my WCUS Workshop: Turn your local WordPress install into your AI coding assistant
@jonathanbossenger
Copy link
Author

jonathanbossenger commented Aug 20, 2025

WCUS Workshop notes

  • Make sure debugging is on (bonus points for using WP Debug)
  • Make sure Studio site has permalinks set anything but plain
  • Make sure composer and node.js/npx is installed (v 22 or above)
  1. Install Abilties API plugin (required for MCP adapter, shipping in WordPress 6.9)
    • clone WordPress/abilities-api
    • download/install zip
  2. Create MCP server plugin
    • composer init
    • composer config
    • include the autoloader
    • get the instance of the adapter
    • create the MCP server
    • (optional) test the MCP server REST API endpoint
  3. Connect to VSCode
    • cmd+shift+p MCP Add server (global config)
    • .vscode/mcp.json (local project config)
    • add the server to the MCP server list
    • connect to the server
  4. Install Abilities API
    • create simple ability (eg get site info)
    • register the ability as a tool
    • test the ability via MCP server
  5. Create custom abilities
    • create-post ability
    • plugin-list ability
    • plugin-security-check ability
    • what else?

@jonathanbossenger
Copy link
Author

jonathanbossenger commented Aug 20, 2025

.vscode/mcp.json

"ai-experiments.test": {
	"command": "/home/jonathan/.nvm/versions/node/v24.0.1/bin/npx",
	"args": [
		"-y",
		"@automattic/mcp-wordpress-remote@latest"      
	],
	"env": {
		"NODE_TLS_REJECT_UNAUTHORIZED": "0",
		"WP_API_URL": "https://ai-experiments.test/wp-json/ai-experiments/mcp",
		"WP_API_USERNAME": "admin",
		"WP_API_PASSWORD": "eTUq B2Sd LXTA ELmk VrSg ylZs",
		"LOG_FILE": "/home/jonathan/development/websites/ai-experiments/wp-content/plugins/mcp-server/mcp.log"
	}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment