All plugins

utcp-bridge

Lets the agent use tools described by UTCP (Universal Tool Calling Protocol) manuals: utcp_search_tools finds tools across the manuals you configure under plugins.entries.utcp-bridge.settings.manuals, and utcp_call_tool calls one directly over its own HTTP API, including streaming (sse, streamable_http) tools from manuals that list those protocols under allowed_protocols. Native UTCP support was declined for core and suggested as a standalone ctx.register_tool plugin (#151647, #151174). Disclosure — every search or call fetches each configured manual from its URL and sends the tool request to the endpoint that manual names; only manuals you configure are contacted. A manual's $NAME variables resolve only from the Hermes secrets it lists (read with agent.secret_scope.get_secret); the UTCP library's .env and os.environ fallbacks are turned off. Only the http, sse and streamable_http call templates are accepted (the streaming ones only where a manual allows them), so a manual cannot make the plugin run programs. A streaming call holds its connection open until the stream ends, max_stream_events (default 100) or 50,000 characters is reached, or timeout_seconds passes, then closes it. Nothing is stored on disk.

nftpoetristToolsv0.2.0Updated 8 days ago

About

Lets the agent use tools described by UTCP (Universal Tool Calling Protocol) manuals: utcp_search_tools finds tools across the manuals you configure under plugins.entries.utcp-bridge.settings.manuals, and utcp_call_tool calls one directly over its own HTTP API, including streaming (sse, streamable_http) tools from manuals that list those protocols under allowed_protocols. Native UTCP support was declined for core and suggested as a standalone ctx.register_tool plugin (#151647, #151174). Disclosure — every search or call fetches each configured manual from its URL and sends the tool request to the endpoint that manual names; only manuals you configure are contacted. A manual's $NAME variables resolve only from the Hermes secrets it lists (read with agent.secret_scope.get_secret); the UTCP library's .env and os.environ fallbacks are turned off. Only the http, sse and streamable_http call templates are accepted (the streaming ones only where a manual allows them), so a manual cannot make the plugin run programs. A streaming call holds its connection open until the stream ends, max_stream_events (default 100) or 50,000 characters is reached, or timeout_seconds passes, then closes it. Nothing is stored on disk.

hermes-utcp-bridge

A Hermes Agent plugin that lets the agent use tools
described by UTCP (Universal Tool Calling Protocol) manuals. A UTCP manual
lists tools and how to call each one directly over its own API, without a wrapper server in
between.

Native UTCP support was declined for Hermes core and suggested as a standalone plugin built on
ctx.register_tool (#151647,
#151174). This is that plugin.

Tools

ToolWhat it does
utcp_search_toolsSearches the tools of every configured manual by words in their names, descriptions and tags. Returns each tool's full name (manual.tool), description, tags, protocol and input schema.
utcp_call_toolCalls one tool by its full name with arguments matching its input schema, and returns the result as JSON (capped at 50,000 characters). A streaming tool returns the events it sent; see Streaming tools.

Both tools are offered to the model only while at least one manual is configured.

Install

hermes plugins install utcp-bridge --enable

The plugin depends on utcp and utcp-http (declared in pyproject.toml); Hermes asks before
installing them.

Configure

Add manuals under the plugin's settings in config.yaml:

plugins:
  entries:
    utcp-bridge:
      settings:
        timeout_seconds: 30          # optional; a search or call, manual discovery included
        max_stream_events: 100       # optional; 1-1000, see Streaming tools
        manuals:
          - name: weather            # letters, digits and _; tools appear as weather.<tool>
            url: https://api.example.com/utcp   # the endpoint serving the UTCP manual
            http_method: GET          # optional, default GET
            headers: {}               # optional; values may use a listed secret as $NAME
            secrets: [WEATHER_API_KEY]  # optional; Hermes secrets this manual may use
            allowed_protocols: [http]   # optional, default [http]; add sse / streamable_http

A manual or its tools reference credentials as $NAME or ${NAME}. Put the secret in your
profile's .env (or set it however you set other Hermes secrets) and list its name under that
manual's secrets. The plugin reads each listed name through Hermes's profile-scoped secret
lookup and hands it only to that manual.

Streaming tools

A manual is always fetched over plain HTTP, but its tools may use UTCP's streaming call templates:
sse (Server-Sent Events) and streamable_http (a chunked or NDJSON response). They are off by
default. List them under a manual's allowed_protocols to use that manual's streaming tools:

          - name: alerts
            url: https://alerts.example.com/utcp
            allowed_protocols: [http, sse]

A tool whose protocol is not listed is left out of search results and cannot be called.

A streaming call reads the stream event by event and stops at the first of:

  • the server ending the stream;
  • max_stream_events events (default 100);
  • 50,000 characters of collected output;
  • timeout_seconds.

It then closes the connection and returns what arrived. The result names the protocol and carries
events (one item per SSE event or NDJSON line) or text (raw chunks, joined and decoded as
UTF-8). If the call was cut short, stopped says why: max_events, max_chars or timeout. A feed
that never closes still returns its first events instead of only a timeout error.

What it does on your machine (disclosure)

  • Network calls. Each search or call fetches every configured manual from its url, and a
    call sends the request the manual describes to the endpoint the manual names. Only manuals you
    configure are contacted. Their tool endpoints can be any host the manual chooses, so add only
    manuals from providers you trust. A streaming call holds its connection open until the stream
    ends or a limit above is reached, never longer than timeout_seconds.
  • Secrets. Only the secrets a manual lists under secrets are read, through Hermes
    (agent.secret_scope.get_secret, which honours the active profile), and they are sent only where
    that manual's templates place them. The UTCP library's own fallbacks, reading .env files and
    os.environ, are turned off: an unlisted $NAME fails the call instead of picking up whatever
    the process environment holds.
  • No shell commands. Only the http, sse and streamable_http call templates are accepted.
    UTCP's command-line call template is not installed or accepted, so a manual cannot make the
    plugin run programs.
  • No stored state. Nothing is written to disk. A fresh UTCP client is built for each call and
    closed afterwards, so manuals are re-fetched on every search or call.

Limits

  • MCP call templates are not offered. Manuals themselves are fetched only over http.
  • A streaming tool's result comes back once the call stops, not event by event while it runs.
  • Approvals apply as for any plugin tool; this plugin does not classify a UTCP tool as more or less
    dangerous by itself.

Development

python -m pip install "utcp>=1.2.0,<2" "utcp-http>=1.1.15,<2" pytest
python -m pytest -c tests/pytest.ini tests
hermes plugins validate --install-deps .

The tests run against a real local HTTP server. Run them inside a Hermes checkout on
PYTHONPATH to use Hermes's own agent.secret_scope; without one, a stand-in records which
secret names were read.

License

MIT

README from the reviewed commit 586df3a; it updates when the author re-pins.

More by nftpoetrist

6 plugins by nftpoetrist in the catalog.

nftpoetristcalibre-libraryLets the agent search your calibre e-book libraries and read their EPUB and TXT books, from the metadata.db and book folders calibre leaves on disk; calibre need not be installed or running. calibre_search matches titles, authors, series, tags, publishers and identifiers (ISBN, ASIN, ...) ignoring case and accents, with author, series, tag, format and language filters; calibre_book shows everything calibre records about a book and its files; calibre_read returns an EPUB in reading order with chapter offsets, or a TXT decoded as UTF-8 or Windows-1252, in parts. Standard library only. Not affiliated with calibre. Disclosure — reads only the library folders you configure: metadata.db, opened read-only per call (mode=ro, or immutable=1 for a WAL-mode database, which is refused while its -wal holds changes), and the one book file asked for, which must lie inside the library folder. EPUBs are read in place, never extracted; a package declaring a DTD or entities, a document over 32 MB unpacked or a book over 128 MB is refused. Writes nothing, makes no network calls, needs no credentials and runs no commands. Book text and descriptions are returned to the model as they are, with scripts and styles stripped.Communitytools1nftpoetristoffline-docsetsLets the agent look up API documentation in docsets on this machine without internet access: the offline format Dash and Zeal use, with an index of every function, class and guide plus the HTML pages (Kapeli's public feeds list about 180, among them Python, Node.js, Bash, SQLite and Vim). docset_list lists the docsets configured under plugins.entries.offline-docsets.settings.paths, docset_search looks entries up by name in Dash's searchIndex or Apple's Core Data index, and docset_read returns a page as plain text starting at the entry's own section, in parts, with in-docset links listed. Standard library only. Not affiliated with Kapeli or Zeal. Disclosure — reads only the docsets you configure, and only pages inside each docset's Documents folder (paths through .., encoded .., absolute paths or symlinks that leave it are refused); opens the SQLite index with mode=ro&immutable=1 so nothing is written, a WAL-mode index's -wal and -shm files included; makes no network calls, needs no credentials and runs no commands. Page text is returned to the model as the documentation's authors wrote it, with scripts and styles stripped.Communitytoolsnftpoetristoffline-mailLets the agent search and read mail archives on this machine without signing in to any mail account: mbox files (Thunderbird's folders, a Google Takeout export of Gmail, mailing-list archives) and Maildir folders (mutt, mbsync, OfflineIMAP, Dovecot). mail_folders lists the folders found under plugins.entries.offline-mail.settings.paths, mail_search finds messages by the words of their subject, names, addresses or text (case and accents ignored) with folder, sender, recipient, date and Message-ID filters, newest first, and mail_read returns a message's headers, text (the plain-text part, or the HTML part as text) and attachment list, in parts. Standard library only. Disclosure — reads only the mail files under the paths you configure, and what the agent reads goes to your model provider like the rest of the conversation; opens files read-only and never sends, moves, deletes or marks mail (a Maildir message is not renamed to seen); makes no network calls, needs no credentials and runs no commands. Message text is returned as its senders wrote it, with HTML scripts and styles removed.Communitytoolsnftpoetristoffline-zimLets the agent search and read ZIM files on this machine without internet access: the open archive format behind Kiwix's offline Wikipedia, Wiktionary, Stack Exchange, Project Gutenberg and other libraries. zim_list_books lists the ZIM files configured under plugins.entries.offline-zim.settings.paths, zim_search uses each archive's full-text index (or its titles when it has none), and zim_read returns an article as plain text in parts, with redirects followed and in-book links listed. Not affiliated with Kiwix or openZIM; reads archives with python-libzim. Disclosure — reads only the ZIM files and folders you configure (folders are listed to find *.zim), makes no network calls, writes nothing, needs no credentials and runs no commands. Article text is returned to the model as the archive's maker wrote it, with scripts and styles stripped. The libzim dependency is GPL-3.0-or-later.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section