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.1a7.tar.gz
(245.4 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.1a7-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file laissez-0.0.1a7.tar.gz.
File metadata
- Download URL: laissez-0.0.1a7.tar.gz
- Upload date:
- Size: 245.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07c06750454270f2c6765f708e11d34429faafd95d5a258f1a8993d8c5f9ae7b
|
|
| MD5 |
dccf30b8aa0f58bf0660e654b2ccef90
|
|
| BLAKE2b-256 |
cc0560bdb297d761569fa2e6a249ab35a9aa37387921b8850b78496f5d7e8ca3
|
File details
Details for the file laissez-0.0.1a7-py3-none-any.whl.
File metadata
- Download URL: laissez-0.0.1a7-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bebc3ea4f03386bf9c1497aacb233114fe014a604ba8b1e94181033ef6c5b95
|
|
| MD5 |
7b5311efc8a0224c5384f8735f25056e
|
|
| BLAKE2b-256 |
57ba0af8d8620e68258f08b11e8e8bf6fa2d3cd1345a5512fb9120c0ca0c8081
|