Skip to content

Commit 8021bcf

Browse files
Merge pull request jonathanbossenger#15 from jonathanbossenger/copilot/update-readme-auto-exposed-tools
Document auto-exposed MCP tools in README
2 parents e8c5de4 + 218cb05 commit 8021bcf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,37 @@ To learn how to convert WordPress abilities into MCP tools, check out the **[WP
6363

6464
This integration enables AI agents to interact with your WordPress site programmatically, opening up possibilities for AI-assisted content management, site administration, and custom workflows.
6565

66+
### Auto-Exposed MCP Tools
67+
68+
Certain abilities in this plugin are automatically exposed as MCP tools when the **[WP MCP Server Demo](https://github.com/jonathanbossenger/wp-mcp-server-demo)** plugin is activated. These abilities are marked for automatic exposure through MCP metadata configuration in their registration.
69+
70+
**How It Works**
71+
72+
Abilities are enabled for automatic MCP exposure by including specific metadata in their registration:
73+
74+
```php
75+
'meta' => array(
76+
'show_in_rest' => true,
77+
'mcp' => array(
78+
'public' => true,
79+
'type' => 'tool'
80+
),
81+
)
82+
```
83+
84+
When an ability includes `'mcp' => array( 'public' => true )` in its meta configuration, the WP MCP Server Demo plugin automatically registers it as an available tool that MCP-enabled AI applications can discover and use.
85+
86+
**Auto-Exposed Abilities**
87+
88+
The following abilities are configured for automatic MCP exposure:
89+
90+
- **Site Info** (`site/site-info`) - Retrieve comprehensive WordPress site information
91+
- **Get Plugins** (`plugins/get-plugins`) - List all installed plugins with details
92+
- **Read Debug Log** (`debug/read-log`) - View contents of the WordPress debug log
93+
- **Clear Debug Log** (`debug/clear-log`) - Clear the WordPress debug log file
94+
95+
These abilities can be immediately used by AI agents when both this plugin and the WP MCP Server Demo plugin are activated, without requiring any additional configuration.
96+
6697
## Available Abilities
6798

6899
### Site Info (`site/site-info`)

0 commit comments

Comments
 (0)