Agents spending you can trust
Project description
Laissez
Agent spending you can trust.
What you get
- Paid MCP server: Create a paid MCP server using
LaissezMCPProvider. - Paying MCP client: Use
LaissezMCPConnectorto connect to paid MCP servers and pay for their tools automatically. - Transparent settlement: Payments are finalized with x402 and appear in the Laissez App dashboard at https://app.laissez.xyz.
Set up once
uv sync --group examplesto pull the example dependencies.- Grab a Laissez API key via the CLI wizard when you first run the examples, or from https://app.laissez.xyz.
- Export your OpenAI API key (the client agent calls an OpenAI model).
- Optional: add the keys to a
.env; the examples load it withpython-dotenv.
Run the paid MCP server
- Command:
uv run examples/mcp/paid-mcp-server.py - What happens: spins up a FastMCP streamable http server on
http://127.0.0.1:8000, generates a temporary wallet (if not provided), and exposes paid tools (e.g.roll_die,multiply) behind Laissez enforcement. All with the simplicity ofLaissezMCPProvider.
Run the paying MCP client
- Ensure the server is live or update
BASE_URLinexamples/mcp/mcp-client.pyto point at your deployment. - Command:
uv run examples/mcp/mcp-client.py - What happens: creates a
pydantic_aiagent backed byLaissezMCPConnector, pays for two dice rolls plus a multiply call, and prints the result.
Keep exploring
- See
examples/mcp/README.mdfor a deeper walkthrough of the server and client. - Tweak prices, add more tools, or swap in different MCP agents to prototype your own billing flows.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
laissez-0.0.1a5.tar.gz
(245.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
laissez-0.0.1a5-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file laissez-0.0.1a5.tar.gz.
File metadata
- Download URL: laissez-0.0.1a5.tar.gz
- Upload date:
- Size: 245.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02676469770bd8d188601281216c2bf726bf97e500712dd44fe5c4e8129027b4
|
|
| MD5 |
c8c8e234227861c7496b28cf1b06004c
|
|
| BLAKE2b-256 |
029e5250a832a6dc99cf6b24fca746390ee36900f5acb87073665814e6fee7ab
|
File details
Details for the file laissez-0.0.1a5-py3-none-any.whl.
File metadata
- Download URL: laissez-0.0.1a5-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37897145f4e1e1939f5c41a83ebba0cca454d939fba5817ac6222b0cfea7546e
|
|
| MD5 |
94a665df5464d0b5370d5b6fa35e33ea
|
|
| BLAKE2b-256 |
ee43a415f77326015053ae17fd5c9e599a4249e7cb796c01e005c0ad6ddc4011
|