Give an AI agent a real Solana wallet without giving it your money. The agent gets a spending allowance the SPL Token program enforces on-chain, plus guardrails (per-tx cap, daily cap, recipient and host allowlists, expiry, kill switch), x402 payments, and a one-call on-chain deploy.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets~/.codex/config.toml
[mcp_servers.onchain-agent-wallets]
command = "npx"
args = ["-y", "@three-ws/onchain-agent-wallets"]
env = { OWNER_SECRET_KEY = "<OWNER_SECRET_KEY>" }
# codex mcp add onchain-agent-wallets --env OWNER_SECRET_KEY='<OWNER_SECRET_KEY>' -- npx -y @three-ws/onchain-agent-wallets~/.cursor/mcp.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"onchain-agent-wallets": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"onchain-agent-wallets": {
"command": "npx",
"args": [
"-y",
"@three-ws/onchain-agent-wallets"
],
"env": {
"OWNER_SECRET_KEY": "<OWNER_SECRET_KEY>"
}
}
}
}需要的环境变量
OWNER_SECRET_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。