Mac: Karakeep MCP server for Hermes
Hermes can search and read bookmarks, create them, tag them and add them to lists from Telegram. Per Karakeep's MCP README and Hermes's MCP docs: - the official server image (pinned 0.34.1) runs in a throwaway Podman container (`podman run -i --rm`), started on first use and stopped after 10 idle minutes; - only search/read/create/tag/add-to-list tools are registered (no update or delete); trust: full because Karakeep doesn't mark its search tools read-only; - the API key is in the vault, written to ~/.hermes/.env via the new hermes_env_secrets, and passed into the container by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a0e49f4670
commit
cccdca1469
3 files changed
+60
No files matched your search
@@ -85,6 +85,48 @@ hermes_settings:
|
||||
delegation.provider: openrouter
|
||||
delegation.model: deepseek/deepseek-v4.1-flash
|
||||
|
||||
mcp_servers.karakeep: "{{ hermes_mcp_karakeep }}"
|
||||
|
||||
# MCP servers. Each stdio server runs in a throwaway Podman container (not on
|
||||
# the Mac itself); secrets come from ~/.hermes/.env (hermes_env_secrets) and
|
||||
# are passed to the container by name, never on the command line.
|
||||
hermes_mcp_podman_args: [run, -i, --rm]
|
||||
|
||||
# Karakeep (bookmarks): search/read, create, tag, add to list. No update or
|
||||
# delete tools are registered. trust: full because Karakeep doesn't mark its
|
||||
# search tools read-only, so "untrusted" would ask before every search.
|
||||
# github.com/karakeep-app/karakeep/tree/main/apps/mcp
|
||||
hermes_karakeep_mcp_image: ghcr.io/karakeep-app/karakeep-mcp:0.34.1
|
||||
hermes_mcp_karakeep:
|
||||
command: /opt/podman/bin/podman
|
||||
args: "{{ hermes_mcp_podman_args + ['-e', 'KARAKEEP_API_ADDR', '-e', 'KARAKEEP_API_KEY', hermes_karakeep_mcp_image] }}"
|
||||
env:
|
||||
KARAKEEP_API_ADDR: "https://{{ subdomains.bookmarks }}"
|
||||
KARAKEEP_API_KEY: "${KARAKEEP_API_KEY}"
|
||||
lazy: true # start the container on first use
|
||||
idle_timeout_seconds: 600 # and stop it after 10 idle minutes
|
||||
tools:
|
||||
include:
|
||||
- search-bookmarks
|
||||
- get-bookmark
|
||||
- get-bookmark-content
|
||||
- get-bookmark-lists
|
||||
- get-lists
|
||||
- get-list
|
||||
- get-list-bookmarks
|
||||
- get-tags
|
||||
- get-tag
|
||||
- get-tag-bookmarks
|
||||
- create-bookmark
|
||||
- attach-tag-to-bookmark
|
||||
- add-bookmark-to-list
|
||||
resources: false
|
||||
prompts: false
|
||||
|
||||
# Secrets written to ~/.hermes/.env (single-quoted), from the vault.
|
||||
hermes_env_secrets:
|
||||
KARAKEEP_API_KEY: "{{ vault_cogitator02.karakeep_api_key }}"
|
||||
|
||||
# Keys `hermes config set` refuses without --force although Hermes reads them
|
||||
# (agent.reasoning_effort: hermes-agent #140221).
|
||||
hermes_settings_force: [agent.reasoning_effort]
|
||||
|
||||
Reference in new issue
Block a user