75 lines
2.2 KiB
Markdown
75 lines
2.2 KiB
Markdown
# Connecting hermes-mcp to opencode AI
|
|
|
|
The server is deployed at `https://hermes.fetcherpay.com` with a Streamable HTTP MCP endpoint (MCP 1.x).
|
|
|
|
## Quick setup
|
|
|
|
An `opencode.json` lives in the repo root with the connection pre-configured. Open opencode inside the `hermes-mcp` project directory and the server will be available automatically.
|
|
|
|
## Manual configuration
|
|
|
|
### Project-level (`opencode.json` in project root)
|
|
|
|
```json
|
|
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"mcp": {
|
|
"hermes": {
|
|
"type": "remote",
|
|
"url": "https://hermes.fetcherpay.com/mcp",
|
|
"headers": {
|
|
"x-api-key": "YOUR_MCP_API_KEY"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Global (`~/.config/opencode/config.json`)
|
|
|
|
```json
|
|
{
|
|
"$schema": "https://opencode.ai/config.json",
|
|
"mcp": {
|
|
"hermes": {
|
|
"type": "remote",
|
|
"url": "https://hermes.fetcherpay.com/mcp",
|
|
"headers": {
|
|
"x-api-key": "YOUR_MCP_API_KEY"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
`YOUR_MCP_API_KEY` = value of `MCP_API_KEY` from `.env` or the Kubernetes secret.
|
|
|
|
## Connection details
|
|
|
|
| Field | Value |
|
|
|-------|-------|
|
|
| Transport | Streamable HTTP (MCP 1.x) |
|
|
| Endpoint | `https://hermes.fetcherpay.com/mcp` |
|
|
| Auth | `x-api-key` header · `?key=` query param · `Authorization: Bearer` |
|
|
| Legacy SSE fallback | `https://hermes.fetcherpay.com/sse` (use `"type": "sse"`) |
|
|
|
|
## Available tools
|
|
|
|
| Tool | Description |
|
|
|------|-------------|
|
|
| `get_profile` | Get email address for an account |
|
|
| `search_messages` | Search INBOX by keyword / sender / subject |
|
|
| `read_message` | Read full message body by UID |
|
|
| `list_folders` | List all mailbox folders |
|
|
| `create_draft` | Save a draft to the Drafts folder |
|
|
| `send_email` | Send an email |
|
|
| `whatsapp_send_message` | Send a WhatsApp message |
|
|
| `whatsapp_send_template` | Send an approved WhatsApp template message |
|
|
| `whatsapp_get_message_status` | Check WhatsApp message delivery status |
|
|
| `whatsapp_list_templates` | List approved WhatsApp templates |
|
|
| `obsidian_search_notes` | Search notes in the vault |
|
|
| `obsidian_read_note` | Read a specific note |
|
|
| `obsidian_append_to_note` | Append content to a note |
|
|
| `obsidian_update_note` | Overwrite a note |
|
|
| `obsidian_sync_status` | Check Obsidian sync status |
|