MPP for Hermes Agent
hermes-mpp makes Hermes Agent HTTPX
traffic payment-aware. It answers supported MPP 402 challenges with a Tempo
charge and retries the request through the same client.
Maintained by Tempo, the team behind MPP.
v0 targets Hermes Agent 0.19, HTTPX 0.27–0.28, and pympp 0.10.
Install
After installing Hermes, run:
uvx hermes-mpp install --allowed-origin https://mpp.dev
The installer adds and enables the plugin, then prompts for a Tempo private key;
leave it blank to generate one. It stores the key in ~/.hermes/.env with
owner-only permissions, saves each --allowed-origin, and prints the address to
fund.
The installer discovers standard, root, and PATH-based Hermes installations.
For a custom environment, run uvx hermes-mpp install --hermes-python PATH or
set HERMES_PYTHON.
Generated wallets start empty. For testnet resources, fund the printed address with the Tempo faucet.
On first install, omitting --allowed-origin allows any origin presenting a valid
MPP challenge to charge the wallet. Repeat the option to allow multiple exact
origins. Reinstalling without it preserves the allowlist; passing it replaces the
list.
Paths and wildcards are rejected. Use plaintext http:// only for trusted local
development; an on-path attacker can inject a payment challenge.
Use
Ask Hermes for the resource normally:
hermes chat -q "Make a request to https://mpp.dev/api/ping/paid"
The model gets one generic mpp_fetch tool for arbitrary HTTP APIs. Payment is
not a separate tool call: it and every other in-process HTTPX client handle
supported MPP challenges automatically.
Behavior
- Existing and future sync and async clients retain their transport, pool,
cookies, hooks, redirects, extensions, and streaming behavior. Response hooks
observe the final logical response rather than the internal
402. - Free responses pass through. Malformed, unsupported, and disallowed
challenges remain ordinary
402responses. - A paid request is retried at most once. Distinct payments are serialized; equivalent, repeated, and uncertain attempts fail closed.
mpp_fetchblocks private-network redirects, hides sensitive response headers, and truncates large bodies.- Only HTTPX traffic in the Hermes process is instrumented. Shell commands and
Requests, aiohttp, or urllib3 are not; use
mpp_fetchfor arbitrary HTTP.
If a payment outcome is uncertain, verify the wallet transaction before restarting Hermes; later payments remain blocked in that process.
Manage
hermes plugins list
uvx --refresh hermes-mpp install # update
uvx hermes-mpp uninstall
Uninstalling leaves the private key in Hermes's .env file.
Develop
uv sync
uv run pytest
uv run ruff check .
CI tests Python 3.11–3.13 and HTTPX 0.27–0.28.
Security
Report vulnerabilities privately as described in SECURITY.md.
License
MIT
Metadata
Release files for hermes-mpp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hermes_mpp-0.1.3.tar.gz | 157.3 kB | Without provenance | Details for hermes_mpp-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hermes_mpp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for hermes_mpp-0.1.3-py3-none-any.whl |
Total release size: 172.7 kB
Release files / hermes_mpp-0.1.3.tar.gz
| Download URL | hermes_mpp-0.1.3.tar.gz |
|---|---|
| Size | 157.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc3c5e3703bd3a13e924a696a935b529262bdf4ae357b988dc50f1f1f1f06e8a
|
|
BLAKE2b-256 checksum How to use checksums |
e5330c0dcc092486a90507bbf0d8eb25b881024a2d116b52161b7fe947a00d84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / hermes_mpp-0.1.3-py3-none-any.whl
| Download URL | hermes_mpp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84c575fc5b0c8a308d2f00204130f84a97e5e28eee3a91ff0ebc1202ce4b7cad
|
|
BLAKE2b-256 checksum How to use checksums |
040d19bb7a41a2c3bd28735acdb2cad1a86efd04842eecf7226e0291cf78b350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for hermes-mpp 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.