Connect an agent (MCP)
Point your MCP client (Claude, Cursor, etc.) at the remote endpoint with your API key in the Authorization: Bearer header:
{
"mcpServers": {
"lidpro": {
"url": "https://mcp-devnet.lid.pro/mcp",
"headers": { "Authorization": "Bearer lpmcp_tu_api_key" }
}
}
}
// Only if your client has no field for headers (the Claude Desktop connector): the key goes in the URL with ?key=. It's a secret that stays in the history and in the logs along the way, so use the header whenever the client allows it; if it leaks, regenerate it.
https://mcp-devnet.lid.pro/mcp?key=lpmcp_tu_api_keyConnect Claude Code
Run this command in your terminal and replace lpmcp_… with your API key. Claude Code gets every tool on this page, including the site tools: it writes the code, checks it, sees it in captures and publishes it when you ask. To build and publish, the key needs the sitio permission.
claude mcp add --transport http lid https://mcp.lid.pro/mcp --header "Authorization: Bearer lpmcp_…"claude mcp add --transport http lid-devnet https://mcp-devnet.lid.pro/mcp --header "Authorization: Bearer lpmcp_…"Skill for your agent
Copy it into your agent's system prompt (or as a skill) so it knows when to use each tool.
# Lid: create and sell digital products (USDC on Solana). You have these MCP tools:
- my_agent_wallet · your identity: user, real wallet (where revenue goes) and the custodial agent wallet
- get_my_usage · Your key's usage and limits: creation caps (daily/lifetime, without consuming them), global kill-switch and agent-wallet balances
- get_credits · The account's Builder credits: balance, what each Lida action uses (new site, turn, image, deploy), the packs and where to buy them (only in Lid's web). Each site plan's credits are in sites.get (credits.plan) and are spent first. With credits on, asking Lida and publishing answer 402 credits_insufficient when there aren't enough. perSite is no longer used and is 0. It adds billing (on, unit, paused): with unit usd credits are no longer used (enabled false, zeros and no packs) and AI use is billed in dollars; with unit usd it also brings extra (the account's extra usage in cents, with its top-ups) and topups (the top-up amounts, only on the web). With unit usd, if billing can't be read, it answers 503 service_unavailable: retry in a few minutes.
- my_analytics · creator analytics: sales, revenue and affiliates (timeframe: 7d, 30d, 90d, 1y, all)
- my_products · list your products
- create_product · create a product on Solana (custodial, gas paid by the platform) · permission catalogo
- upload_file · Host a file on Lid from a public URL. gated:true = the content the buyer pays for (returns a key for extraFiles); gated:false = cover or gallery (returns a stable URL). 25 MB cap. · permission catalogo
- update_product · Update the editorial side of your product: attach the files buyers download, the cover, the copy, or publish and unpublish it. Terms set on Solana (price, supply, commission) are not editable here. Does not consume creation quota. · permission catalogo
- product_analytics · sales and revenue for a product
- api_health · API status
- get_bounty · public detail of a challenge
- get_bounty_winners · challenge recipients and their payout status
- get_pool · hold status: funded, assigned and dispersed
- create_bounty · create a bounty with its prize held on Solana (acceptTerms:true; no deletion, no refunds) · permission catalogo
- list_bounties · your bounties (filters: status, tag)
- list_submissions · the submissions of your bounty
- review_submission · review a submission: accepted, rejected or selected · permission catalogo
- assign_bounty_winners · assign the recipients on Solana (signs the prize payout) · permission dinero
- my_pending_prizes · your assigned prizes pending claim
- list_apps · your sites with their status, URL, custom domain, payment state and plan (billing and billing.plan; plans are chosen and paid in Lid's web). With a Lid admin's key, also the clients' sites the Lid team works on (role assistant, with the client's name in assistedFor): the assisted ones not handed over yet and the ones already handed over (assisted false), which the team keeps working on the same way
- get_app_guide · the building guide: workflow, rules, limits, @/lid blocks, reserved routes and allowed imports. Read it before writing code
- get_app_status · a site's status: whether it is published, the current version, the last job with its log, the pieces (counts and what the code uses), the payment state and plan (billing.plan: name, when it renews or ends, the scheduled change, this month's credits and the Lida messages per day), the credits each action uses (credits, with the site plan's credits in credits.plan) and, on an assisted site, whether the client left pending changes (clientChanges; they are applied in Lid's web). On a system app (admins only) it adds system (published version, seed and the state of each piece, Postgres and Redis, never secrets), releases and, only once after the job finishes, seedOutput with the seed's output; with dollar billing (billing.unit usd in credits.get), credits is null and aiBilling has who pays, the plan only as a percentage (aiBilling.plan.percentUsed, no amounts) and the estimates for a new site, a turn and an analysis
- list_app_plans · the site plans the person chooses in Lid's web, cheapest first: price per month and per year, credits per month (only loaded with credits on: creditsEnabled in this response, or enabled in credits.get) and Lida messages per day, the free site's days if the account can still start one (freeDays) and where to choose (chooseUrl). These are Lid's plans for your sites, not the creator's memberships. Read only: a plan can't be subscribed, changed or canceled by API or MCP. With dollar billing (billing.unit usd in credits.get), creditsEnabled is false and creditsPerMonth is 0: each plan includes AI usage instead, shown as a percentage in sites.get
- create_app · create a draft site with a name and slug (config is optional). Per user: 3 per minute, 10 per day and the account's site limit, set by Lid's admin (1 by default; 409 site_limit_reached). With a Lid admin's key, forClient (email, wallet or username) creates that client's assisted site: it belongs to them, sells their products and they get a notice (403 forbidden for other keys; 404 client_not_found). With a Lid admin's key, kind system and ownerEmail create a system app for that account: it brings its own code (lid-system.json), starts Free and the owner doesn't see it in their panel (403 admin_required with another key; 409 host_agent_outdated if the server is older than host-agent 0.14.0). · permission sitio
- configure_app · change the name or the config: brand, language, what your site uses (six switches; turning challenges off with site-only challenges needs confirmChallengesOff) and featured products · permission sitio
- publish_app · publish the draft; returns 202 and you follow progress with get_app_status. A site without a plan returns 402 site_payment_required with the plans in details.plans: the person chooses a plan in Lid's web (it can't be subscribed by API or MCP). On a system app, with releaseId: the server builds each piece with the tests in its Dockerfile; with a failing test the previous version stays online. The response adds system with the jobId · permission sitio
- add_app_domain · connect a custom domain and get the DNS records you need to create · permission sitio
- verify_app_domain · check the domain's DNS records and update its status · permission sitio
- list_app_files · draft files with their size, the hash and the limits (80 files, 64 KB per file, 600 KB total)
- read_app_file · content of a draft file
- write_app_files · write and delete draft files in one batch, only inside the site zone; returns the written and deleted paths (written, deleted). With mirrored:false the draft is saved and the preview does not have it yet; check_app uploads it again. If a path or a size breaks the rules, returns 400 source_invalid with the details. Up to 2 MB per call (413 payload_too_large) · permission sitio
- check_app · check the draft like Lida does: types, site rules and a GET per page (paths are site routes); starts the preview if needed · permission sitio
- screenshot_app · desktop and mobile captures of a page, with the issues and console errors found. One at a time and up to 3 per minute (429 rate_limited with retryAfter) · permission sitio
- upload_app_image · upload an image to the site from a public URL or as base64 and get its /media/… path; as base64 it takes up to 8 MB per image · permission sitio
- ask_lida · ask Lida for a change; returns 202 with the runId of her turn · permission sitio
- get_lida_run · follow a Lida turn: steps, final reply and whether the check passed; with dollar billing, stop says why billing stopped the turn (cap, balance or daily)
- create_system_release · a new version of a system app (Lid admin keys only): with the sha256 and the exact size of the .tar.gz (with lid-system.json at its root, up to 150 MB) it returns uploadUrl, a signed upload to the private bucket that expires in 15 minutes, and howTo with the exact command. If you send manifest (the content of lid-system.json), it is validated before anything is uploaded (400 invalid_manifest with details.field). Then publish_app with releaseId · permission sitio
- get_app_logs · the latest log lines (Lid admin keys only, 403 admin_required): on a system app, of one piece (piece is required: a piece from the manifest, postgres or redis); on a store, the store's. tail up to 500
- connect_site_to_lida · turns 'Connect my site to Lida' on or off for a site (on, capCents if you want a cap, and confirm: true): with it, the site's server asks Lida for replies with askLida from @/lid. Lid creates the credential and hands it to the sites server; the response never includes it. Each reply is paid from the site's plan and, once it runs out, from the extra usage up to capCents a month (0 = only the plan). Without confirm: true, 400 confirm_required; without an active plan, 409 site_lida_web_needs_plan · permission sitio
- set_system_app_lida · turns 'Lida for this app' on or off for a system app (on and, optionally, capCents; Lid admin keys only, 403 admin_only): the piece that asks for the lid.lidaKey marker in lid-system.json receives it when published, with the owner's extra usage up to capCents a month. The response never includes the credential · permission sitio
- list_lida_keys · Legacy: the Lida keys of the key's account: name, last 4, dates, this month's credits and, if an API key created it, createdBy and works (false while that key is expired). It never returns the key. They are the same keys the person sees at lid.pro; with dollar billing, chargedCentsThisMonth: what its tasks were charged this month, in cents, from the account's extra usage
- create_lida_key · Legacy: creates a Lida key with a name (1 to 60 characters), for a system that still asks for a key that starts with lida_. The full key is returned only in this response and shows up at lid.pro right away; its tasks spend the account's credits (with dollar billing, its extra usage). With 5 keys it returns 409 lida_key_limit. If the API key that created it is removed or regenerated, this one is removed too; while that key is expired, this one answers 401 lida_key_invalid · permission sitio
- revoke_lida_key · Legacy: removes a Lida key right away: the next task with it returns 401 lida_key_invalid (404 lida_key_not_found if it is not the account's) · permission sitio
- list_site_tools · The site /admin tools this key can use
- run_site_tool · Use a site tool: it reads right away or changes in one step; anything that moves money returns the link to sign it in Lid · permission each tool's own (reading needs none, except people data)
Rules: revenue goes to the key owner's wallet and the platform pays gas; creations have a per-API-key limit (anti-abuse); ask for confirmation before creating products or assigning prizes (they move money on Solana).
Key permissions: reading needs none; every tool that changes something says which one it needs (sitio, catalogo, dinero or datos). If a tool answers 403 insufficient_scope, the key lacks that permission: tell the owner (they add it at lid.pro, Settings → Development) and don't retry. If it answers 403 key_tasks_only, the key only works for Lida tasks. If it answers 401 key_expired, the key expired: the owner renews it or creates a new one.
Sites: call get_app_guide first; write in batches with write_app_files and run check_app after every write; use screenshot_app to see desktop and mobile; publish with publish_app only when the user asks. Do not touch files outside the site zone or connect the site to external services. If publishing returns 402 site_payment_required, show the user the plans in details.plans (or from list_app_plans) and ask them to choose one in Lid's web: you can't subscribe, change or cancel a plan.Site key
A key created in /admin › Keys only works for that site: the MCP lists its tools and that site's Builder tools, and nothing moves money. With a key of your account, the same tools work through list_site_tools and run_site_tool. These are a site's /admin tools:
site_overview: the site summary: pieces, sales, contacts, waitlist and latest activitysite_sales_list: the account's latest sales (needs datos)site_sales_report: how much was sold in a period (needs datos)site_products_list: the products, courses and draftssite_product_get: a product, course or draftsite_challenges_list: the challenges with their prize and statussite_submissions_list: the submissions to a challenge (needs datos)site_memberships_get: the membership plans, members and gifted access (needs datos)site_contacts_list: the contacts from the site form (needs datos)site_waitlist_list: the waitlist (needs datos)site_questions_list: the questions from the site chat (needs datos)site_pieces_get: which pieces the site usessite_data_tables: the site data tablessite_data_rows: the rows of a data table (needs datos)site_activity_list: the site log (needs datos; never with a site key)site_pages_list: the site pagessite_files_list: the site code filessite_file_read: the content of a site filesite_media_list: the images uploaded to the sitesite_listing_update: change a published listing: description, image or gallery (needs catalogo)site_draft_save: create or change a product or course draft (needs catalogo)site_product_visibility: show a product only on the site or hide it, with confirm: true (needs catalogo)site_product_archive: archive or restore a product, with confirm: true (needs catalogo)site_contact_update: a contact's notes or marking it attended (needs datos)site_data_row_update: change a data table row, never adding or deleting (needs datos)site_waitlist_attended: mark a waitlist entry as attended (needs datos)site_question_attended: mark a chat question as attended (needs datos)site_pieces_set: turn site pieces on or off, with confirm: true (needs sitio)site_membership_grant: gift membership access, with confirm: true (needs datos)site_membership_revoke: remove a gifted access, with confirm: true (needs datos)site_submission_review: review a challenge submission, with confirm: true (needs datos)site_challenge_draft_update: change a challenge that is still a draft (needs catalogo)site_offer_draft_save: a challenge or membership plan draft, without a prize (needs catalogo)site_outline_save: a course outline (needs catalogo)site_lid_window_prepare: prepare what moves money or publishes, to sign it in Lid (needs sitio)