| 开发者 | justadityaraj |
|---|---|
| 更新时间 | 2026年10月23日 03:47 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp shim-mcp serve)wp-content/plugins/shim-mcp/.MCP (Model Context Protocol) is an open standard that allows AI clients like Claude to interact with external systems through a structured protocol. It defines how AI tools discover and use capabilities (called "abilities" in WordPress) provided by a server.
No. Shim MCP is self-contained: it bundles its own MCP server, and the Abilities API it registers against is part of WordPress from 6.9 onwards. Nothing else is required.
Only if you let it. The ability that rewrites the WP_DEBUG constants is switched off until you add define( 'SHIM_MCP_ALLOW_CONFIG_WRITES', true ); to wp-config.php yourself. Without that line the ability refuses, and it is refused again if DISALLOW_FILE_EDIT or DISALLOW_FILE_MODS is set, if the file is not writable, or if the rewritten contents fail a sanity check.
Two MCP server plugins running at once can register competing abilities and endpoints, which produces confusing results for the connected AI client. If Shim MCP detects another MCP server or a standalone Abilities API plugin, it shows a notice suggesting you run only one. This is a compatibility warning, not a judgement about the other plugin.
Yes, on a site you have locally. wp shim-mcp serve --user=admin --path=/path/to/wordpress runs the MCP server over WP-CLI and stdio, with no URL, port or password. The setup guide in docs/SETUP.md has tested configurations for Claude Code, Claude Desktop and Cursor.
Any MCP-compatible client works. The admin dashboard provides ready-made config snippets for Claude Code, Claude Desktop, and Cursor.
HTTPS is strongly recommended for production use since API credentials are transmitted with each request. The plugin will work over HTTP for local development.
Different abilities require different WordPress capabilities. For example, content abilities require edit_posts, user abilities require list_users or edit_users, and system abilities require manage_options. See the full abilities reference in docs/ABILITIES.md.
shim-mcp/plugins-install. URLs, file paths and uploaded archives are still refused, and the plugin is left inactive until you activate it.Rock & Roll came back as Rock & Roll.Using server line, and output from an ability is moved to STDERR. It also no longer exits after an idle socket timeout.-32600 or -32602 instead of a server error.initialize only advertises capabilities the server implements, and resources/templates/list is answered.tools/list descriptors match the MCP Tool schema. Contributed by @mikemikimike.