Skip to main content

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

License

MIT

Metadata

Release files for snap-crewai-tools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snap-crewai-tools 0.1.0
File Size Uploaded
snap_crewai_tools-0.1.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snap-crewai-tools 0.1.0
File Interpreter ABI Platform
snap_crewai_tools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / snap_crewai_tools-0.1.0.tar.gz

Download URL snap_crewai_tools-0.1.0.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ef3ec62752e37077f0e62483295a356b92055fe304c0b90b17e35f8f434ec1d5
BLAKE2b-256 checksum
How to use checksums
4b37a3c00a4601f73991b0ed25322ebae6656a0c80750413b834f98fa721bff3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / snap_crewai_tools-0.1.0-py3-none-any.whl

Download URL snap_crewai_tools-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8094cb420a2c64851b3459f759dc11bf5b98b38ea7cebc062708874447057a81
BLAKE2b-256 checksum
How to use checksums
a1d6e88e886f8a1c0066ec010582b61387f9a97f0c0a9e5b30f8e219193de13b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page