crewai-paymid
The middleman gets paid first.
Commission protection for middlemen: the commission is paid first, then the seller is paid. CrewAI tools backed by the hosted Paymid MCP server.
Paymid protects a middleman's commission on a deal: the buyer accepts a commission agreement (12-month non-circumvention) and pays the commission; only then does the payment to the seller open. Paymid sequences the two payments and keeps the proof record — it never processes or holds the money itself.
This package is a thin wrapper over CrewAI's native MCPServerAdapter, pre-configured for the Paymid server — no URL to paste, no config to write.
Install
pip install crewai-paymid
Use
from crewai import Agent
from crewai_paymid import get_paymid_tools
agent = Agent(
role="Deal coordinator",
goal="Protect the middleman's commission on every introduction",
tools=get_paymid_tools(),
)
Or manage the connection lifetime yourself:
from crewai_paymid import paymid_tools
with paymid_tools() as tools:
agent = Agent(..., tools=tools)
Tools
| Tool | What it does |
|---|---|
create_bridge |
Create a commission-protected bridge (optionally from an existing agreement's text — Paymid extracts the parties, values and does the math). Returns the payment link to send the buyer. |
get_bridge_status |
Current status: commission paid? seller contact unlocked (blind mode)? service payment confirmed? |
list_my_bridges |
Your bridges, with statuses and amounts. |
get_bridge_link |
The payment link of an existing bridge, to resend to the buyer. |
get_bridge_record |
The proof record: accepted agreement, timestamps, amounts, both payment receipts. |
cancel_bridge |
Cancel a bridge. |
Two modes: padrao (default — payment order enforced, parties may already know each other) and blind (the seller's contact stays sealed until the commission is confirmed — for deals where the seller's identity is the secret).
Authentication
The Paymid server uses OAuth 2.1 with dynamic client registration. Validated live against crewai-tools 1.15.41 + mcpadapt 0.1.20:
-
The adapter does not run the interactive OAuth sign-in. Without a token, the connection reaches the server, receives its 401, and the adapter raises after its connect timeout.
-
If you already have a Paymid access token, the package injects it for you — set the environment variable and connect:
export PAYMID_ACCESS_TOKEN=<your-token>
(or pass
access_token=toget_paymid_tools()/paymid_tools()). With a valid token the handshake completes and all 6 tools load — this path is validated end to end against the production server. -
To obtain a token, sign in through any client with native remote-MCP OAuth (or the npm bridge,
npx -y paymid-mcp, which performs the full browser flow).
Links
- Website: https://paymid.com.br
- Docs: https://paymid.com.br/docs
- Privacy: https://paymid.com.br/privacy
- Support: contact@aufwassen.com
- Official MCP Registry:
br.com.paymid/mcp-server
License
MIT
Metadata
Release files for crewai-paymid 0.1.0
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 |
|---|---|---|---|---|
| crewai_paymid-0.1.0.tar.gz | 4.1 kB | Without provenance | Details for crewai_paymid-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crewai_paymid-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crewai_paymid-0.1.0-py3-none-any.whl |
Total release size: 8.8 kB
Release files / crewai_paymid-0.1.0.tar.gz
| Download URL | crewai_paymid-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f79000a158d606d52fc36e4f12de9e7ebac3395f146b20488da624e4783a7fc
|
|
BLAKE2b-256 checksum How to use checksums |
782cc1eac0de112df4e256576de56a49186f85182929038fc295dde25883a60e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / crewai_paymid-0.1.0-py3-none-any.whl
| Download URL | crewai_paymid-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06fe462a159ab384b9ba86a57f41e58ef42af5b4b0ac34e8d94be8fc6e6fce12
|
|
BLAKE2b-256 checksum How to use checksums |
1d67bf0a9c8413e1d94d0f6f326d6d40e531babc8daf87cdf5306daae47d6a1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for crewai-paymid 0.1.0
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.