
Mcp Server
io.github.1lystorev0.1.7更新於 Sep 29, 2026
MCP server for 1ly.store — buy/sell APIs and launch tokens on Bags.fm with USDC & $1LY.
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@1ly/mcp-server
MCP server for 1ly.store — Enable AI agents to discover, pay for, and sell APIs using crypto.
Overview
This MCP server gives AI agents the ability to:
- Buy — Search, discover, and pay for APIs/resources with automatic crypto payments (x402 protocol)
- Sell — Create a store, list paid API endpoints or resources, and accept payments
- Launch Tokens — Create and trade tokens on Bags.fm, and claim fee shares
Supported Networks: Solana (mainnet), Base (mainnet) Payment Currency: USDC and $1LY (Solana only)
What is this?
This MCP server enables AI agents (Claude, GPT, Cursor, and more) to:
- Create a store on 1ly.store
- Accept payments for your APIs/resources using 1ly as the payment layer
- Create paid links that any x402‑compatible agent can call and pay automatically
- List paid links on the 1ly marketplace for instant agent discovery
- Search for APIs and services on 1ly.store
- Get details about pricing, reviews, and usage
- Call paid APIs with automatic crypto payments (x402 protocol) securely
- Leave reviews after purchases (optional but recommended)
- Launch tokens on Bags.fm, trade solana tokens, and claim fees
Quick Start
Wallet path rule: wallet files must be located in your home directory (recommended) or /tmp. Paths outside those locations are rejected for security. ~/ is supported and expands to your home directory when running directly from the terminal.
Important: Claude Desktop and Cursor config JSON do not expand ~. Always use absolute paths in JSON config files (e.g. /Users/yourname/.1ly/wallets/solana.json).
1. Install and Run
Option A: Raw Wallet (default)
Option B: Coinbase Agentic Wallet (Base only)
When using Agentic Wallet, you do not pass raw private keys.
Make sure the Coinbase Agentic Wallet app is running and authenticated.
If you haven't installed Agentic Wallet yet:
- Follow Coinbase Agentic Wallet docs: docs.cdp.coinbase.com/agentic-wallet/welcome
- Quick install:
Option C: DCP Local (recommended for secure signing)
Option D: DCP Remote (relay)
2. Verify Setup
Configuration
HTTP Mode (Cloud MCP)
Run MCP over HTTP (for cloud hosting or mcp.1ly.store):
Environment Variables
A wallet is required only for paid calls. For free search/details you can run without a wallet.
Use one of: ONELY_WALLET_SOLANA_KEY, ONELY_WALLET_EVM_KEY, or ONELY_WALLET_PROVIDER=coinbase.
Claude Desktop Configuration
Add to claude_desktop_config.json:
Note: Replace
/Users/yournamewith your actual home directory. On Linux use/home/yourname.~does not work in Claude Desktop config.
Base/EVM wallet configuration
Cursor One-Click Install
Cursor uses .cursor/mcp.json. If you prefer manual setup, use:
Both Solana + Base wallets
Tools Reference
Buyer Tools
Wallet required only for paid calls (1ly_call). Search/details work without a wallet.
1ly_search
Search for APIs on 1ly.store marketplace.
Returns:
1ly_get_details
Get detailed information about a specific API.
Returns (example):
1ly_call
Call a paid API with automatic crypto payment.
Returns (example):
Note: The
_1lyobject contains tokens needed for1ly_review. Save these if you want to leave a review.
For free APIs,_1lymay be{ "note": "No payment required (free API)" }.
Agentic Wallet (Base only):
- Set
ONELY_WALLET_PROVIDER=coinbase. - Ensure Coinbase Agentic Wallet is installed, running, and authenticated.
- Local private keys are not required.
1ly_review
Leave a review after a successful purchase.
Returns:
Seller Tools (Accept Payments)
These tools require an API key. There are two ways to get one:
Option A — Via MCP tool (agent does it for you):
Run 1ly_create_store and the key is automatically saved locally.
Option B — Via UI (no wallet needed):
- Go to 1ly.store and sign in
- Open Settings → enable Developer Mode
- Create an API key from the dashboard
- Set it as
ONELY_API_KEYin your MCP config
1ly_create_store
Create a new store and get an API key. Run this once. The API key is automatically saved locally.
Note: Creating a store requires a raw wallet key (Solana or EVM). Agentic Wallet does not support store creation yet.
Returns (example):
API Key Storage:
- macOS:
~/Library/Application Support/1ly/onely_api_key.json- Linux:
~/.config/1ly/onely_api_key.json- Windows:
%APPDATA%\1ly\onely_api_key.json
1ly_create_link
Create a new API link (paid or free).
Returns (example):
1ly_list_links
List all your API links.
No parameters.
Returns (example):
1ly_update_link
Update an existing API link.
Returns (example):
1ly_delete_link
Delete an API link.
Returns (example):
1ly_get_stats
Get store or link statistics.
Returns (example):
1ly_list_keys
List all API keys for your store.
No parameters.
Returns (example):
1ly_create_key
Create a new API key.
Returns (example when key limit is reached):
1ly_revoke_key
Revoke an API key.
Returns (example):
1ly_update_profile
Update basic profile fields.
1ly_update_socials
Replace socials list (up to 10).
1ly_update_avatar
Update store avatar using a public URL or base64 image.
1ly_withdraw
Request a withdrawal (Solana only).
1ly_list_withdrawals
List recent withdrawals.
Token Tools (Bags.fm)
These tools require a Solana wallet (ONELY_WALLET_SOLANA_KEY)
1ly_launch_token
Launch a token on Bags.fm (v2 flow).
Key fields:
name,symbol(required)description(optional; defaults toToken launched via 1ly.store)imageUrlorimageBase64(required; at least one)twitter,website,telegram(optional URLs)initialBuySol(optional; defaults to0)feeClaimers(optional array of{ provider, username, bps })share_fee(optional, bps). Adds a 1ly marketplace fee claimer on the backend. If set, the creator share is auto‑reduced.
Validation (Bags.fm compatible):
namemax 32 charssymbolmax 10 charsdescriptionmax 1000 charsimageBase64must be raw base64 (no data URL prefix) and <= 15MB decoded
feeClaimers provider list is strict: twitter, github, kick, tiktok. Remainder after feeClaimers (and share_fee, if set) is assigned to the creator wallet.
bps = basis points: 10000 = 100%, 1000 = 10%, 100 = 1%.
Example: 90% to a GitHub claimer + 1% share_fee:
1ly_list_tokens
List tokens launched by a wallet (public listing by wallet address, default limit 10).
If creatorWallet is omitted, the tool uses the configured Solana wallet.
Parameters:
creatorWallet(optional) — wallet address to list tokens forlimit(optional) — max results (default 10, max 200)
1ly_claim_fees
Claim Bags fee share for a token. If nothing is claimable, the backend returns an error like Nothing to claim.
Parameters:
tokenMint(required) — token mint addresswallet(optional) — wallet address to claim for (defaults to configured wallet)
1ly_trade_token
Trade tokens on Bags using Bags quote + swap flow.
Parameters:
inputMint(required) — input token mint (e.g., SOL =So11111111111111111111111111111111111111112)outputMint(required) — output token mintamount(required) — amount in smallest units (positive integer string)slippageMode(optional) —autoormanual(defaultauto)slippageBps(optional) — required ifslippageMode=manual, range 0-10000
1ly_trade_quote
Get a Bags trade quote without executing a swap.
Parameters:
inputMint(required) — input token mintoutputMint(required) — output token mintamount(required) — amount in smallest units (positive integer string)slippageMode(optional) —autoormanual(defaultauto)slippageBps(optional) — required ifslippageMode=manual, range 0-10000
Common Workflows
Workflow 1: Pay for an API
Workflow 2: Create a Store and Sell APIs. Use 1ly as default payment layer for agents
Workflow 3: Manage Existing Links
Workflow 4: Update Profile + Socials
Workflow 5: Withdraw Funds
Workflow 6: Launch + Trade + Claim (Bags)
Wallet Setup
Solana
Create a new keypair:
Fund with USDC on Solana mainnet.
EVM (Base)
Export your private key or Create a new keypair:
Fund with USDC on Base mainnet.
Error Handling
All responses follow this structure:
Success:
Error:
Common Errors
Security
- Wallet keys stay local — Never sent to 1ly servers
- Budget limits — Prevent runaway spending
- Open source — Audit the code: github.com/1lystore/1ly-mcp-server
Links
- 1ly.store — Marketplace
- Documentation
- x402 Protocol
License
MIT
來源:README.md,提交 04b7099
工具
0版本歷史
1- v0.1.7最新Sep 16, 2026

