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.1a6.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.1a6-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file laissez-0.0.1a6.tar.gz.
File metadata
- Download URL: laissez-0.0.1a6.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 |
a3e0356193aca9c8fa7a7d546ce8e7b8533bed41c9679a10bd3d756d3a9cc80d
|
|
| MD5 |
7cb3e9578f5afce93fff9e37ca39a874
|
|
| BLAKE2b-256 |
987785b3662b72cb6852430ff7521603dc36d3b87342a4cca760a38b62a9e4ac
|
File details
Details for the file laissez-0.0.1a6-py3-none-any.whl.
File metadata
- Download URL: laissez-0.0.1a6-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 |
846e299c43f70f0cbe0b8e73c7f24ac3c82743b26a06c98199dab5aaeab14f6f
|
|
| MD5 |
8244b5820d02a9d2bfddd4dca4b3be35
|
|
| BLAKE2b-256 |
3a289ba3e7c7dd77c5f96c41638d14d9395da59d06fcfc793c825654f3468ea2
|