hermes mcp serve, which exposes Hermes itself to other agents.
hermes mcp with no arguments (or hermes mcp picker / hermes mcp install) only lists catalog entries. Do not look for a TryPost tile. Add a custom HTTP server with auth: oauth.Prerequisites
-
Hermes Agent installed (CLI and/or Desktop). The standard install already includes MCP. If a command says MCP extras are missing:
- An active TryPost Cloud account
Server URL
Use this exact URL. Do not add a trailing slash. Do not paste an OAuth authorize URL. Do not use/api.
transport: sse.
Setup
Hermes stores servers in~/.hermes/config.yaml under mcp_servers. For a hosted OAuth server it uses url + auth: oauth, then completes the browser flow on first connect or hermes mcp login.
Pick one way to add the server. Do not run login after a successful add — hermes mcp login force-reauthenticates: it deletes the token on disk and starts the browser flow again.
Add the TryPost MCP server
hermes mcp add writes the server and immediately connects (that connect is the first OAuth). Give the probe time to finish the browser sign-in:--auth only accepts oauth or header. Use oauth.- Sign in to TryPost, review permissions, click Allow
- When it asks
Enable all N tools? [Y/n/select], answer Y. n cancels and does not save the server. select writes atools.includelist and hides everything else (including publish/delete)
enabled: false. Set enabled: true in config.yaml, then run login below.YAML, then login. Same config Hermes documents for OAuth HTTP servers. Write the block in Manual configuration. If Hermes is already running, do not wait for in-session auto-reload — that reload only waits 30 seconds, which is too short for OAuth. From a fresh terminal:login waits up to five minutes. Use this same command later to re-authenticate.Desktop. Open the Add to Hermes link, confirm the dialog, then login if the app has not already completed OAuth.Finish the browser sign-in
~/.hermes/mcp-tokens/trypost.json (mode 0o600). Later sessions reuse it and refresh the token. Re-authorization only happens when refresh fails — or when you run login.If the browser cannot reach http://127.0.0.1:<port>/callback (SSH, VPS, headless gateway), see Remote and headless Hermes.Reload and verify
hermes mcp list should include trypost. hermes mcp test trypost should connect and list tools.If a session is already open, run /reload-mcp. Then ask the prompt Hermes documents for this check:mcp__<server>__<tool> (config reference). Hyphens become underscores, so list-posts-tool is mcp__trypost__list_posts_tool. You do not type that name — ask in plain language. If Hermes answers without tools, tell it to use the trypost MCP server.See the Tools reference for every tool and the recommended create → attach media → publish workflow.Authentication
TryPost MCP accepts OAuth only — a browser sign-in with themcp:use scope. In Hermes that is auth: oauth. Hermes handles discovery, Dynamic Client Registration, PKCE, token exchange, and refresh.
Personal Access Tokens from Settings → API Keys work on the REST API, not on /mcp/trypost.
Do not add oauth.client_id / oauth.client_secret. Those fields are for servers that reject DCR (Hermes documents Google Drive and Atlassian that way). TryPost is not one of them.
Manage connected assistants later under workspace Settings → MCP in TryPost. To sign in again on Hermes (this deletes the stored token and repeats the browser flow):
hermes mcp reauth trypost does the same thing for one server. hermes mcp reauth --all walks every auth: oauth server one at a time.
What you can do
Once the server is authorized, Hermes can:board_id, Discord needs a channel_id, and TikTok needs a privacy_level before you publish. Ask Hermes to list boards or channels first. Details and original tool names (use these in tools.include / tools.exclude, not the sanitized mcp__… names): Tools reference.
The same tools are then available in hermes chat, Hermes Desktop, and any messaging gateway on that install (Telegram, Discord, Slack, and the rest).
Manual configuration
Equivalent config written byhermes mcp add — the OAuth HTTP shape:
~/.hermes/config.yaml, then run hermes mcp login trypost from a fresh terminal. Do not add headers, transport, or oauth.client_id.
To hide the server without deleting the block, set enabled: false. To remove it:
Hermes Desktop
Desktop shares~/.hermes/config.yaml. Desktop settings include an MCP servers pane. After you add and authorize the server, open that pane or start a new Desktop chat so the tools load.
One-click install (Add to Hermes):
hermes mcp login trypost if the app has not already completed OAuth.
Self-hosted
Hermes connects from the machine where the agent runs, not from a vendor cloud. If Hermes and TryPost share a host, a local{APP_URL} works.
Point Hermes at your instance
Point Hermes at your instance
{APP_URL} with the real origin, then pass it to hermes mcp add:http://127.0.0.1:8000/mcp/trypost only works if Hermes can open that address on the same host.If Hermes runs on a VPS, Docker host, or messaging gateway, that host must reach the URL. A TryPost instance that only listens on your laptop is invisible to a remote Hermes — expose it or run Hermes on the same machine.Auth is still OAuth against your instance. Do not put a Personal Access Token in headers.Remote and headless Hermes
When Hermes is not on the same machine as your browser, the OAuth callback tohttp://127.0.0.1:<port>/callback never hits the listener. This is the TryPost MCP login, not Hermes’ model-provider sign-in.
Escalation from OAuth over SSH and the mcp-oauth-remote-gateway skill: dashboard in your browser first, then paste-back or an SSH tunnel, then the headless skill.
Hermes dashboard (try this first on a remote gateway)
Hermes dashboard (try this first on a remote gateway)
mcp_servers block as the CLI). If HERMES_DASHBOARD_PUBLIC_URL is set on the host, that is the public URL to open.Paste the redirect URL back
Paste the redirect URL back
hermes mcp login trypost prints the authorize URL and asks you to paste the redirect. Open the URL on your laptop, click Allow, then copy the full URL from the address bar (the page may show a connection error — that is expected) and paste it at the Hermes prompt. A bare ?code=…&state=… string works too. Official walkthrough: OAuth over SSH / Remote Hosts.SSH port forward
SSH port forward
Waiting for callback on http://127.0.0.1:<port>/callback). In a separate laptop terminal:Waiting for callback line.Public HTTPS callback (Tailscale Funnel / reverse proxy)
Public HTTPS callback (Tailscale Funnel / reverse proxy)
oauth.redirect_uri (MCP guide):hermes mcp login trypost. You do not need this on a laptop where the browser and Hermes share a machine.No interactive terminal (gateway / bot only)
No interactive terminal (gateway / bot only)
~/.hermes/mcp-tokens/, then you run /reload-mcp. Docs: mcp-oauth-remote-gateway.Tokens landed in the wrong ~/.hermes
Tokens landed in the wrong ~/.hermes
root or a dedicated hermes user, authenticate as that user (sudo -u hermes -i or equivalent) so ~/.hermes/mcp-tokens/trypost.json is the file the running agent reads.Useful commands
Troubleshooting
hermes mcp add or login times out before I finish OAuth
hermes mcp add or login times out before I finish OAuth
add without --connect-timeout uses a short connect probe — too short for a browser sign-in. Retry add with --connect-timeout 300, or write the YAML and run hermes mcp login trypost in a new terminal (login waits five minutes). If you edited config.yaml inside a running session, do not wait for auto-reload — that path only waits 30 seconds. Do not run login right after a successful add — that wipes the token you just got.The server is in config but Hermes does not call TryPost tools
The server is in config but Hermes does not call TryPost tools
~/.hermes/mcp-tokens/trypost.json exists, and that enabled is not false (a failed mcp add can save the server disabled). Run hermes mcp test trypost, then /reload-mcp or a new hermes chat. Ask which MCP tools are available. If tools.include was saved as a short list, run hermes mcp configure trypost and enable everything (or delete the tools block). If /reload-mcp is silent and no tools appear, the reload can fail quietly — run hermes mcp test trypost and start a new session.login lists tools but every real call times out
login lists tools but every real call times out
auth: oauth is set, no headers.Authorization is present, and ~/.hermes/mcp-tokens/trypost.json exists after login. If it is missing, run hermes mcp login trypost again — do not add a Client ID.Hermes cannot reach the server
Hermes cannot reach the server
localhost on your laptop.HTTP 402 — Active subscription required
HTTP 402 — Active subscription required
hermes mcp login trypost again. Self-hosted instances skip this check. See Introduction.HTTP 401 or I need to sign in again
HTTP 401 or I need to sign in again
hermes mcp login trypost again.I used hermes mcp install trypost and nothing happened
I used hermes mcp install trypost and nothing happened
install only accepts catalog names. TryPost is not in that catalog. Use hermes mcp add with --url and --auth oauth.Example prompts
Related
- Introduction — MCP overview, auth, and shared troubleshooting
- Tools reference — every tool, parameters, and the publish workflow
- Hermes: MCP — client vs
mcp serve, OAuth, catalog - Hermes: MCP config reference —
mcp_serverskeys - Hermes: Use MCP — add, test, filter, reload
- Hermes: CLI —
hermes mcpsubcommands - Hermes: OAuth over SSH — paste-back and tunnels
- Hermes: Web dashboard — MCP pane on a remote gateway

