Nous Research agent, Native OAuth
Hermes Agent WordPress MCP. One YAML entry, then /reload-mcp.
A Hermes Agent WordPress MCP connection is a single YAML entry. Hermes reads MCP servers from the mcp_servers key of ~/.hermes/config.yaml, connects to a remote server by its url, and with auth set to oauth runs the browser sign-in itself, PKCE included. GoBuildWP's Connect screen writes the entry for your site.
Checked against Hermes Agent's documentation on 27 November 2026, entries from GoBuildWP Free 1.22.1
mcp_servers:
gobuildwp-your-site-com:
url: "https://your-site.com/wp-json/mcp/wppilot-oauth"
auth: "oauth"- Config
- ~/.hermes/config.yaml
- Key
- mcp_servers, url with auth or headers
- Reload
- /reload-mcp
Connect screen
GoBuildWP's YAML for Hermes
Hermes is the one client the Connect screen writes YAML for. Each entry is a single server under mcp_servers, named after the site, and every string in it is a double-quoted scalar, so a password or URL containing a colon or a hash cannot change the shape of the file. The OAuth entry is url plus auth: "oauth"; the token entry is url plus a headers map carrying the Bearer token; the Application Password entry runs the npx bridge with command, args and env. If config.yaml already has an mcp_servers key, put the server beneath it rather than adding a second mcp_servers line.
| OAuth 2.1 | url and auth: oauth. On first connect Hermes prints an authorize URL and opens the browser when it can; hermes mcp login with the server name runs the sign-in again. |
|---|---|
| Access token | url and a headers map with the Bearer token. No sign-in step, and the token's abilities and expiry are set on the site. |
| Application Password | The npx stdio bridge as command, args and env. Hermes passes a stdio server only its configured env plus a safe baseline, so the WordPress credentials reach the bridge and the rest of your shell's environment does not. |
Endpoints on your site: /wp-json/mcp/wppilot-oauth for OAuth, /wp-json/mcp/wppilot for tokens and passwords. Through the optional GoBuildWP Cloud instead, every client uses https://app.gobuildwp.com/mcp with the server name gobuildwp, and a personal Cloud token is read from GOBUILDWP_TOKEN where the client supports environment variables.
mcp_servers:
gobuildwp-your-site-com:
url: "https://your-site.com/wp-json/mcp/wppilot"
headers:
Authorization: "Bearer wpp_YOUR-ACCESS-TOKEN"Inside Hermes Agent
Reading Hermes' view of the server
hermes mcp test with the server name reports what the server actually answered. When the site returns an HTTP error without a JSON-RPC body, the output adds the status, the URL requested and the start of the response. Hermes' own reading of it: a 401 or 403 means the token or OAuth grant is wrong.
Hermes prefixes every MCP tool with mcp_ and the server name, so nothing collides with its built-in tools, and its documented example turns the hyphens in a server name into underscores. Expect GoBuildWP's tools under a prefix like mcp_gobuildwp_your_site_com_ rather than by their wppilot/ IDs, and read the exact names from the refreshed tool list before writing filters. Each server that registers tools also becomes a toolset named mcp- plus the server name.
When a server fails to register, the startup summary in agent.log names it. hermes logs --level debug shows the connection attempt in more detail.
Signs it worked
- hermes mcp test reaches the site without a 401 or 403
- The tool list shows the mcp_ prefix with your server name
- agent.log lists no failed server
- A first read returns the site you expect
Setup
Add WordPress to Hermes Agent
Hermes keeps every MCP server in one user-level file, so the entry is there in every session. Pick the method by whether a browser can open where Hermes runs.
Choose the entry on the site
In GoBuildWP, open Connect and pick Hermes Agent under OAuth for your own interactive use, or under Access token for a Hermes that runs on its own. A token can be limited to the abilities the job needs and given an expiry. It is shown once, so copy the whole block.
Merge it into config.yaml
Open ~/.hermes/config.yaml and place the server under mcp_servers. Keep the generated indentation: two spaces before the server name, four before its fields.
Run /reload-mcp
In your Hermes session, /reload-mcp reloads the servers from the config and refreshes the tool list, so no restart is needed. A running hermes gateway watches config.yaml and picks up the edit by itself.
Approve the sign-in
With the OAuth entry, Hermes prints an authorize URL on first connect and opens your browser when it can. Sign in to WordPress as an administrator and approve. Hermes caches the tokens in ~/.hermes/mcp-tokens/, in a file named after the server.
No browser on that machine
Hermes can take the redirect URL pasted back at its prompt, or you can forward the callback port with ssh -N -L and finish the normal flow from your own browser. Its device-code login needs a device endpoint, and GoBuildWP's authorization server offers only the authorization-code and refresh-token grants, so use one of the other two.
Verify the connection before allowing changes
Select Read Only explicitly; the default is Production Safe. Use a dedicated identity with manage_options on a single site, or superadmin on multisite. Match the named tool call, site URL and returned record ID against WordPress.
Use the gobuildwp-your-site-com MCP server in Hermes Agent. Do not change anything.
1. Report the active GoBuildWP safety profile.
2. List the abilities this connection can see.
3. Call wppilot/get-site-settings and report the site URL and locale.
4. Call wppilot/list-content for the five newest pages,
then wppilot/get-content on one of them.
5. Name every ability you called and each WordPress ID you read.These setup instructions are not a recorded live-client test. Keep credentials out of repositories, logs and shared files.
First task
A first Hermes task that only reads
Hermes is a general agent, not an editor, so the first job looks at the site and leaves it as it was.
Use only the GoBuildWP server. Change nothing.
1. wppilot/agent-context: which safety profile
and WordPress user is this connection?
2. wppilot/get-site-settings: site URL and locale.
3. wppilot/audit-content: count the findings by
type, then name the three pages with the most.Troubleshooting
Hermes Agent errors and their causes
| Symptom | Cause and fix |
|---|---|
| Hermes skips the server without trying to connect | The entry has enabled: false, which makes Hermes skip it entirely. Remove the line or set it to true, then run /reload-mcp. |
| The sign-in gives up before you finish in the browser | Hermes waits a set time for the browser step, five minutes by default. Set oauth.timeout on the server entry, in seconds, if the WordPress login regularly takes longer. |
| A 400 or 405 on the very first request | Hermes' docs say this can mean a server that only speaks SSE. GoBuildWP does not serve SSE, so check that url is exactly the one the Connect screen generated, ending in /wp-json/mcp/wppilot-oauth for OAuth or /wp-json/mcp/wppilot for a token. |
| Some or all WordPress tools are missing | Check tools.include and tools.exclude on the entry. include wins when both are set, and a filter that removes every tool leaves no toolset for the server at all. Then check the token's ability list on the site. |
| The Application Password entry never connects | It runs the bridge through npx, so the machine needs Node.js. Install it, or switch to the token entry, which needs neither Node.js nor a bridge. |
Running Hermes against a real site
Filter the tools in Hermes, limit them on the site
Hermes can hide tools per server with tools.include or tools.exclude in config.yaml, and globs work in both. That keeps the agent's context small, but it is a setting on the machine running Hermes, and anyone who edits the file can widen it again. Treat it as tidiness, not as a permission. The limit that holds is on the WordPress side: an access token restricted to the abilities the job needs, under a Read Only or Production Safe ceiling, so a tool Hermes was never meant to call is refused by the site.
Write the include list from the names Hermes actually shows after /reload-mcp, not from the ability IDs on GoBuildWP's reference pages. Hermes adds its mcp_ prefix and the server name, so a glob on the prefix with a trailing star matches every WordPress tool at once, which is only sensible against a site on Read Only.
- "List the WordPress tools you can see, with their full names, and change nothing."
- "Run wppilot/list-changes and tell me which of today's entries came from this connection."
Hermes on a server with no browser
The OAuth sign-in redirects to a loopback callback on the machine running Hermes. On a VPS that means either pasting the redirect URL back into Hermes when it asks, or opening an SSH tunnel from your laptop to that callback port and approving in your own browser. Hermes also has a device-code login, but it needs a device endpoint that GoBuildWP's authorization server does not offer, so it will not work here.
For a Hermes that runs on a schedule, skip the browser altogether. Put a GoBuildWP access token in the headers map instead. Tokens follow the expiry you give them, so pick one that outlasts the schedule but not the project, and limit the token to the abilities the scheduled job uses so an unattended agent cannot reach further than its task. Delete the token when the job is retired.
Hermes and GoBuildWP Cloud
Hermes is not on the GoBuildWP Cloud list of tested apps. Its url servers with auth: oauth are the kind of remote connection Cloud is built for, so a Cloud link in place of the site URL is the route to try if you manage several sites, but nobody has confirmed it end to end yet. Until you have, one entry per site under mcp_servers is the supported setup.
FAQ
Hermes Agent and WordPress, answered
Does Hermes Agent support OAuth for WordPress?
Yes. With auth: oauth on a url server, Hermes handles discovery, client identification and PKCE. GoBuildWP's OAuth entry sets exactly that, so there is no client ID to copy.
Why is the Hermes entry YAML when other clients get JSON?
Hermes keeps its MCP servers in config.yaml with the rest of its settings. The Connect screen writes YAML for Hermes alone and quotes every string, so the block pastes in without fixing up quotes or escaping.
Where does Hermes keep the WordPress sign-in?
In ~/.hermes/mcp-tokens/, as a JSON file named after the server and readable by your user only. Deleting that file signs Hermes out on this machine but leaves the grant valid on the site; revoke it from Connected Apps in wp-admin as well.
Do I restart Hermes after editing config.yaml?
No. /reload-mcp reloads the servers and refreshes the tool list inside the session, and a running hermes gateway watches the file on its own.
Related
Other agents set up from a file
- WordPress MCP server: what the server exposes to Hermes Agent, and how it differs from the other ways to connect
- OpenClaw: a self-hosted gateway that reloads its MCP section live
- Kimi Code CLI: a url entry and a sign-in command, in JSON
- Codex CLI: the other client whose entry is not JSON, in TOML
Hermes Agent documentation read on 27 November 2026
One YAML block, one narrow credential.
Paste the generated server under mcp_servers, run /reload-mcp, and let GoBuildWP's safety profile decide what Hermes may change.