- Ask the WPGuard operator to configure
WPGUARD_TOKEN_RECON in the server environment and provide that token through your client’s secret environment. The token must match on both sides. Do not copy the server’s admin token into a project file.
- Use the HTTP configuration above and confirm
claude mcp get wpguard. Open /mcp in Claude Code to inspect the connection.
- Discover the current tools and call
site_list with no arguments. An empty list confirms an authenticated read but provides no WordPress target; stop and ask the operator to register an authorized staging site separately.
- Choose one authorized staging-site name from the result and call
wp_site_context with that exact site value. Confirm the expected site URL and context without posting credentials or returned site details to a public issue.
- Stop after the context read. Do not call
site_register, mutation or packet tools, magic-login tools, or raw command tools as part of this smoke test.
{
"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": { "name": "site_list", "arguments": {} }
}
{
"jsonrpc": "2.0", "id": 2, "method": "tools/call",
"params": { "name": "wp_site_context", "arguments": { "site": "YOUR_REGISTERED_STAGING_SITE" } }
}
These request bodies are examples, not recorded production tests. Recon scope limits the MCP tool tier; it is instance-wide rather than a separate per-client tenant boundary, and some recon tools have side effects. Limit the client’s allowed tools to this test’s site_list and wp_site_context. WordPress SSH or companion credentials remain on the WPGuard server. Do not grant a WordPress administrator login to Claude for this connection check.
A 401 is an authentication problem
Confirm that the header contains Bearer followed by the configured recon token. Check environment expansion in Claude Code without printing the token. The server’s Python entry point does not automatically load a .env file.
A 403 is a permission boundary
Confirm the exact tool and credential scope. A write tool returning 403 under a recon token is expected. Keep the smoke test on its two read tools rather than replacing the credential with an admin token.
Discovery works, site context fails
Check the exact registered site name and ask the operator to verify the server’s SSH/WP-CLI or companion connection. MCP authentication and the WordPress connection are separate layers. Do not re-register or change a production site to repair a smoke test.
Connection refused or rate limited
Use 127.0.0.1 only when the client and server share a host. Check an operator-controlled HTTPS endpoint or tunnel for remote use. Back off on 429 responses; repeated retries do not repair a denied or unreachable connection.
Checked November 3, 2026 against the WPGuard client guide, token configuration and Claude Code MCP documentation. A successful read verifies connection and accessible context; it does not demonstrate a safe edit or a business outcome.