CrewAI tools for SNAP — private agent-to-agent payments on Solana using zero-knowledge proofs
Project description
snap-crewai-tools
CrewAI tools for SNAP — private agent-to-agent payments on Solana using zero-knowledge proofs.
Install
pip install snap-crewai-tools
# for the deposit/withdraw flow via the SNAP MCP server:
pip install "snap-crewai-tools[mcp]" # also requires Node.js (npx)
Native tools (pure Python)
snap_list_pools and snap_estimate_fee work with no JS dependency:
from crewai import Agent
from snap_crewai_tools import create_snap_tools
tools = create_snap_tools() # [SNAPListPoolsTool, SNAPEstimateFeeTool]
agent = Agent(
role="Payments analyst",
goal="Inspect SNAP pools and fees",
tools=tools,
)
| Tool | Description |
|---|---|
snap_list_pools |
List SNAP mainnet shielded pools |
snap_estimate_fee |
Estimate the 0.25% protocol fee for a pool |
Full flow: deposit & withdraw via the SNAP MCP server
Deposit and withdraw require Groth16 proof generation (in the TypeScript SDK), so
in Python those run through the published snap-mcp-server
using CrewAI's MCPServerAdapter:
from crewai import Agent
from crewai_tools import MCPServerAdapter
from snap_crewai_tools.mcp import snap_mcp_server_params
params = snap_mcp_server_params(
rpc_url="https://your-rpc-url.com",
pool_address="B8SyffZKt8LABKogWjH9rZcjY5PV2hyYRCbTxxbcrpFf",
)
with MCPServerAdapter(params) as tools:
# tools includes snap_deposit, snap_withdraw, snap_withdraw_private,
# snap_estimate_fee, snap_list_pools, snap_pool_info, snap_balance
agent = Agent(role="Treasurer", goal="Pay agents privately", tools=tools)
Mainnet Pools
| Pool | Address |
|---|---|
| 0.1 SOL | B8SyffZKt8LABKogWjH9rZcjY5PV2hyYRCbTxxbcrpFf |
| 1 USDC | 5LeuHrPBgHNhgbCy996MEjcsBk5gNHhVj6AiuuCHZ8od |
| 10 USDC | ECuHf8kgiWfmL3Q6id4WGBQWvuukhzqvF5vsxuPAKZBv |
Links
- SNAP Protocol
- Website
- SDK (snap-solana-sdk)
- MCP server (snap-mcp-server)
- LangChain tools (snap-langchain-tools)
License
MIT
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
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
File details
Details for the file snap_crewai_tools-0.1.0.tar.gz.
File metadata
- Download URL: snap_crewai_tools-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef3ec62752e37077f0e62483295a356b92055fe304c0b90b17e35f8f434ec1d5
|
|
| MD5 |
ea3e76d946fd0497d89939aafc4de2e8
|
|
| BLAKE2b-256 |
4b37a3c00a4601f73991b0ed25322ebae6656a0c80750413b834f98fa721bff3
|
File details
Details for the file snap_crewai_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: snap_crewai_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8094cb420a2c64851b3459f759dc11bf5b98b38ea7cebc062708874447057a81
|
|
| MD5 |
fe11b28aacac32553bba9593d0e17641
|
|
| BLAKE2b-256 |
a1d6e88e886f8a1c0066ec010582b61387f9a97f0c0a9e5b30f8e219193de13b
|