Koskamo

Kleap MCP

An official MCP server by Kleap that enables AI agents to build, edit, publish, and manage websites and web apps. It provides tools for creating apps from prompts, modifying files, publishing with a verified-live guarantee, connecting custom domains, and accessing analytics and form submissions.

Endpoint and access

OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.

Kleap MCP logo, by KleapVendor evidenceStreamable HTTPOAuth sign-inEndpoint checked 2026-11-23Operated by Kleap
You need:Create a free accountsign in with your browsersign in to Kleap
MCP endpoint (Streamable HTTP)
https://kleap.co/api/mcp
Vendor documentation

What its tools do

35 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

35 of 35 have a description · 35 of 35 declare behavior hints · 34 of 35 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Passed Endpoint and vendor documentation share a domain
  • Uptime 98.6% over 90 days
  • Availability 2 of 2 checks passed in 30 days
  • Popularity 1 GitHub star

What you can do with it

  • Create a website from a natural language prompt
  • Publish a site to a live URL with SSL
  • Connect a custom domain to a hosted app
  • Read analytics and form submissions

Source and maintenance

Vendor evidenceRegistry 1.1.0MIT
Last repository push
Maintenance checked

Protocol and capabilities

Server
Kleap AI Website & App Builder 1.1.0
MCP protocol negotiated in check
2025-11-25
Tools
35 advertised
Resources
3 advertised
Resource templates
Sign-in required
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": true
  },
  "resources": {
    "listChanged": true
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Kleap builds, HOSTS and AUDITS real websites (Astro). You have TWO ways to put code on a site: (A) write_files — YOUR model writes the exact file contents and you push them with write_files; Kleap stores, builds and deploys them as-is (deterministic, best when the exact wording, URL or schema matters); (B) modify_app — describe the OUTCOME and Kleap's AI writes the files (best for design and whole sections, and it knows the template's own components, auth, database and form wiring). Either way Kleap HOSTS it (build, deploy, SSL, DB, auth, domains, verified-live) and CHECKS it: publishing audits every internal link on every built page, flags pages whose content contradicts the link leading to them, and measures JSON-LD/sitemap/robots coverage — get_publish_status returns the SEO coverage on almost every publish, and the link/form/design audit when the report says audit_ran:true. When audit_ran is false, run seo_audit on the production_url instead of assuming the site is clean. list_app_files shows the structure (Astro: src/pages/*.astro, src/data/*.json, src/components/*.astro, public/*). EDIT EXISTING FILES SAFELY — never rewrite a file blind. Do: list_app_files → read_files(app_id, [paths]) to get the CURRENT contents → edit_files to change ONLY the lines that must change → publish_app. Use edit_files whenever the file exists: send old_string and new_string, Kleap replaces in place. Resending a 30KB layout to fix one line wastes tokens and risks corrupting the rest. write_files stays for NEW files, wholesale replacement and images. This is the reliable way to fix shared components, headers/footers, wrong numbers, broken links, dead forms. read_files works with a Read-only key, so always read before you change. Prefer this read→edit→write loop over modify_app for precise, verifiable edits. That loop is complete: edit_files changes part of a file, write_files takes encoding:"base64" for IMAGES and binaries (logo, photo, OG image, favicon, font), and delete_files REMOVES a page or asset — never blank a file to "delete" it, that leaves a URL answering 200 with nothing. WHAT AGENTS ACTUALLY DO HERE (measured over 30 days of real calls): read_files 141, publish_app 70, list_app_files 36, write_files 31 — and create_app 4. This connector is used to MAINTAIN live sites far more than to create them. So the loop below leads with the edit path; creation is at the end because it is the rare case. THE LOOP 1. Find the site: if the user names it by address ("serrureriesk.ch", "mysite.kleap.io"), call find_app FIRST. If it returns NOT_FOUND, the site isn't on this account or isn't connected yet — fall back to list_apps or ask the user. Otherwise use list_apps. 2. Build/change — two paths: DETERMINISTIC = read_files then edit_files(app_id, [{path, old_string, new_string}]) to CHANGE something that already exists (one line, a price, a link, a shared header — it rewrites nothing else and cannot silently drop the rest of the file), or write_files(app_id, [{path, content}]) for a file you are creating WHOLE; then publish_app(app_id) (no task, no stall, best for exact pages/scaffolding). Reaching for write_files on an existing 30KB page means retyping 30KB to change one line — that is what edit_files is for. AI = create_app(prompt) for a new site or modify_app(app_id, message) to change one. create_app returns instantly with a task_id and a build_url. modify_app does NOT: it waits for the edit to land before answering (median 55s measured in production), so treat it as a call that blocks — do not fire it and walk away, and do not re-fire it because it feels slow. HAND-OFF RULE — CREATIONS ONLY (create_app, 3-11 min): the widget shows live build progress, so give the user the build_url and do NOT block or keep polling check_task (unless nobody is watching a preview, see the NO-widget rule below); just tell them it is building and they can ask you for the link anytime. EDITS ARE THE OPPOSITE (modify_app, usually under a minute): do NOT hand off. Call check_task once or twice until it reports deployment_status deployed, then get_app once, then answer. Watched live: answering at 17 seconds with "it is deploying" left the user on a build frame for a change that was finished 20 seconds later, and nothing ever went back to show it to them. STAY ENGAGED while it builds (like a real builder, not a silent wait): ask the user 1-2 short refinement questions (brand colors, must-have sections, contact details, logo) and then apply their answers with ONE modify_app once the build is live. If the first request was vague, ask 1-2 quick questions BEFORE create_app to enrich the prompt. If you have NO widget (CLI/headless/API/scheduled or one-shot run), the hand-off rule does NOT apply: nobody sees a preview and the site does not exist until the build ends, so poll check_task with the task_id about every 30 seconds (it long-polls up to 8 s; queued/processing/completed/failed, ~5-15 min) until status completed and deployment_status deployed, then get_app for the finished URL. 3. After a create_app/modify_app task status="completed", the files are written; claim the change is LIVE only when deployment_status="deployed". A pending or failed deployment is not live, even if production_url still contains the previous address. After write_files you MUST call publish_app to deploy. connect_domain attaches a domain the user owns (app must be live first). 4. SHOW IT. Once the work is live (check_task returns status completed AND deployment_status deployed, or publish_app succeeded), your LAST tool call before answering must be get_app on that app_id — exactly once. That single call is the only thing that puts the finished site, its screenshot and its address in front of the user; every other tool leaves them looking at a build in progress. Do it even when you are certain it worked, even when you already have the URL in text, and even after you have verified the files yourself — verifying is for you, get_app is for them. Skip it only if the task failed. ON FAILURE (task status="failed"): read error.code/message. For a transient stall, call retry_task — it returns a NEW task_id; poll check_task on THAT new id. Retry at most once or twice; if it keeps failing or is non-transient (out of usage — check get_credits — or a rejected prompt), stop and tell the user. MANY PAGES / PROGRAMMATIC SEO: BEST = write_files — generate a dynamic Astro route (src/pages/[service]/[city].astro) + a data file (src/data/locations.json with your full list) with YOUR model, push both in one write_files, then publish_app. Deterministic, scales to thousands, no stall, uses no Kleap AI usage. ALTERNATIVE = ONE modify_app asking Kleap's AI for that same dynamic route + data file. Never make N calls (one per page) — that stalls. DATA, ACCOUNTS & FORMS (Astro, the default) — durable data NEVER lives in browser storage. Anything a person expects to keep (accounts, records, bookings, orders, listings, posts, saved results, carts) belongs in the app's first-party Kleap Database, never localStorage / sessionStorage / IndexedDB / cookies — per-device, invisible to the owner and to other visitors, wiped on cache-clear or device-switch (the #1 'my data disappeared' bug); those are fine only for a throwaway UI toggle (theme). Contact / lead / newsletter / booking forms need nothing built — hydrate the seeded island: import KleapForm from '@/components/KleapForm'; <KleapForm client:load formId="contact" fields={[...]} /> collects straight to the owner's Kleap dashboard. The template already ships the data + auth wiring (getKleapDb from '@/lib/kleap-db', read inside a client:load island and RLS-scoped to the signed-in user by default; login UI @/components/auth/KleapAuth), but the database is switched ON only while a data/accounts feature is being built — and that one-time provisioning is exactly what write_files does NOT do (it only stores the files you send). So to STAND UP a data or accounts feature, use modify_app and describe the data/accounts you need: Kleap's AI owns the wiring and provisions the database automatically as it builds — no connect step, no button, no keys. DB or auth code pushed by raw write_files has no backend behind it and silently does nothing. Once the app is provisioned, keep editing those pages with the normal read->edit->write loop. rename_app changes only the display name (URL never changes). There is no tool to delete an entire app; delete_files removes selected source files. BEFORE PUBLISHING: publish_app deploys EVERY stored edit, not only yours. get_app(app_id) returns published_at and has_unpublished_changes; if it is true and you did not write those edits, tell the owner before publishing. SEO CHECK: seo_audit(url) is a free audit of any public URL (score out of 100, top 3 fixes); no app_id needed. AFTER PUBLISH: use get_analytics(app_id) for visitor/pageview/top-page/referrer stats (needs the app to be published — analytics is wired automatically on deploy), get_search_console(app_id) for how the site performs IN GOOGLE SEARCH (queries it ranks for, impressions, clicks, CTR, average position — real Search Console data; if it comes back not connected, connect_search_console(app_id) hands you the Google consent link to give the user, and the property binds itself from there), and get_form_submissions(app_id) to read leads/contacts from any KleapForm-based contact form on the site. Analytics and search both need analytics:read, forms need forms:read: connections authorized BEFORE these tools shipped don't have them — a 403 INSUFFICIENT_SCOPE does NOT mean the connection expired: it was authorized before that capability existed and needs one re-authorization to add it (the MCP client is asked to do this itself). DATABASE (the app's Kleap Database, Postgres): get_database_schema first, then query_database_rows / insert_database_rows / update_database_rows / delete_database_rows, or run_database_sql for anything else. Reads need database:read; writes and run_database_sql need database:write. An app without a database answers not provisioned — create it with modify_app (describe the data you need), never from here. POLLING & BACKGROUND WORK: every database query wakes the app's database and keeps it running for about a minute, so anything that queries it on a timer keeps it awake around the clock and uses the owner's plan. In code you write: no auto-refresh that reads the database faster than every 60 s, and only while the tab is visible (pause on document.visibilityState === "hidden"). An API route that a worker, bot or outside machine calls repeatedly to ask for work must answer an empty queue with { retryAfterSeconds: 300 } (or more), and that caller must wait that long before asking again. Build minute-by-minute checking only when the user explicitly asks for it, and tell them it keeps their database running 24/7. DOMAINS: search_domains finds names; buy_domain returns a Stripe checkout_url the USER must open and pay — nothing is bought until they do. Then check_domain follows it. PLAN: upgrade_plan returns an upgrade_url the USER opens to subscribe (monthly or annual) or, on a paid plan, to get more usage. Offer it when they run out of usage or ask for a paid feature such as a custom domain. Nothing is charged until they pay — never say they are subscribed.

Tools

35 advertised

create_app — Create Website
Advertised by the server during the last successful anonymous check.
Open-world

Use this when the user wants a complete, hosted website or web app built from a text description (e.g. 'build me a website for X'). Kleap's AI builds AND auto-deploys the whole site; this takes a few minutes (typically 5 to 15 min). Returns a build_url instantly so the user can watch it build live. In a widget client (ChatGPT Apps) the preview above shows real-time progress and reveals the final live URL by itself, so you do NOT need to block or keep polling check_task. With NO widget (CLI, script, scheduled or one-shot run) nobody sees that preview and the site does not exist yet: call check_task with the returned task_id about every 30 seconds and stop only on completed (deployment_status deployed) or failed, then get_app for the live URL. Prefer this over write_files for full-site creation.

create_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "prompt",
    "context"
  ],
  "properties": {
    "prompt": {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1,
      "description": "Detailed description of the website to build"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "visibility": {
      "enum": [
        "public",
        "personal"
      ],
      "type": "string",
      "default": "personal",
      "description": "Controls discovery listing: public = discoverable, personal = unlisted. Both may be deployed to a publicly reachable URL; personal does not add access control."
    }
  }
}
create_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {
      "type": "string"
    },
    "app_id": {},
    "status": {
      "type": "string"
    },
    "task_id": {},
    "build_url": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
create_app annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": false
}
modify_app — Modify Website
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Use this when the user wants to change or update an existing website. The AI can overwrite or remove existing content and automatically publishes the result to the live site. This uses Kleap usage. Needs the app_id — if the user named the site by its address (e.g. 'mysite.ch'), call find_app first to get the app_id.

modify_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "message",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID to modify"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "message": {
      "type": "string",
      "maxLength": 10000,
      "minLength": 1,
      "description": "What to change (e.g. 'Change colors to blue, add a contact form')"
    }
  }
}
modify_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "plan": {},
    "slug": {},
    "app_id": {
      "type": "number"
    },
    "status": {
      "type": "string"
    },
    "palette": {},
    "task_id": {},
    "message_id": {},
    "preview_url": {},
    "production_url": {},
    "screenshot_url": {},
    "deployment_status": {}
  },
  "additionalProperties": false
}
modify_app annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": true
}
write_files — Write Files Directly
Advertised by the server during the last successful anonymous check.
Advertised destructive

Write WHOLE files DIRECTLY — YOUR model generates the code, Kleap stores, builds and deploys it as-is. To change something in a file that ALREADY EXISTS, use edit_files instead (read_files → edit_files): it replaces just the lines you name, while write_files makes you retype the entire file and silently drops whatever you leave out — on a 30KB shared layout that is how headers and footers get wiped. No Kleap-AI step, so what ships is byte-for-byte what you wrote — the right choice when a phrase, a URL or a schema must be exact. Publishing still audits the result (see publish_app). Best for scaffolding exact pages/components — e.g. programmatic-SEO routes. Astro paths (src/pages/*.astro, src/data/*.json, src/components/*.astro, public/*). Overwrites by path. NPM PACKAGES: do not write package.json (the build replaces it) — the build installs whatever your code IMPORTS, so `import { jsPDF } from "jspdf";` is all it takes. Supported on import: @tiptap/*, jspdf, pdf-lib, html2canvas, papaparse, file-saver, jszip, @ffmpeg/*, howler, wavesurfer.js, browser-image-compression, react-dropzone, recharts, chart.js, d3, @tanstack/*, react-hook-form, three, @react-three/*, leaflet, maplibre-gl, gsap, framer-motion, zustand, date-fns, react-markdown, axios, socket.io-client, radix-ui/*, next-themes, lucide-react, @tabler/*, openai, @ai-sdk/*; anything else is refused at build with a message naming it. A client-side router is never the answer — a route is a FILE (src/pages/about.astro → /about). IMAGES AND BINARIES: set encoding:"base64" on the file and send the bytes — that is how you put a logo, a photo, an OG image, a favicon or a font on the site (png/jpg/webp/svg/ico/mp4/woff2/pdf, 512KB max each decoded). Without it you can only write text, and a site with no images looks unfinished. To ADD an image from a text prompt WITHOUT sending any bytes (a real photo's base64 is too big to emit reliably), use generate_image — Kleap generates it and stores it for you. To REMOVE a page or asset, use delete_files — overwriting it with empty content leaves a URL that answers 200 with nothing, which is worse than a 404. DATA & ACCOUNTS: write_files only STORES files — it cannot provision the Kleap Database, so DB or auth code pushed here has no backend and silently does nothing. Stand the feature up with modify_app first, then edit those pages here. After writing, call publish_app to build & go live.

write_files input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "files",
    "context"
  ],
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "content"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "Project-relative path, e.g. src/pages/about.astro"
          },
          "content": {
            "type": "string",
            "description": "Full file text — or the base64 of the bytes when encoding is \"base64\""
          },
          "encoding": {
            "enum": [
              "utf8",
              "base64"
            ],
            "type": "string",
            "description": "Omit for text. Use \"base64\" to write an IMAGE or any binary (png, jpg, webp, svg, ico, mp4, woff2, pdf...). 512KB max per file decoded."
          }
        },
        "additionalProperties": false
      },
      "minItems": 1,
      "description": "Files to write/overwrite: [{ path, content, encoding? }]"
    },
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
write_files output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "paths": {},
    "app_id": {
      "type": "number"
    },
    "binary": {},
    "written": {}
  },
  "additionalProperties": false
}
write_files annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
edit_files — Edit Files In Place
Advertised by the server during the last successful anonymous check.
Advertised destructive

Change PART of a file without resending it — the counterpart to write_files. Give `old_string` (exact text as in the file today) and `new_string`; Kleap reads, replaces, stores. Nothing else moves. Use it whenever the file exists and only a line, block or URL changes: resending a 30KB layout to fix one line wastes tokens and risks corrupting the rest. read_files first, copy the text EXACTLY. `old_string` must appear once — otherwise the error names the count; add context or pass replace_all:true. Edits are validated together: if any is invalid, nothing is written. Across files the writes are sequential — a late failure names what was already applied. new_string "" deletes the match. Not for new files or binaries. Then publish_app.

edit_files input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "edits",
    "context"
  ],
  "properties": {
    "edits": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "old_string",
          "new_string"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "Project-relative path of an EXISTING file"
          },
          "new_string": {
            "type": "string",
            "description": "Replacement text. \"\" deletes the match."
          },
          "old_string": {
            "type": "string",
            "minLength": 1,
            "description": "Exact text to find, copied from the file. Must appear once unless replace_all."
          },
          "replace_all": {
            "type": "boolean",
            "description": "Replace EVERY occurrence instead of requiring a unique match."
          }
        },
        "additionalProperties": false
      },
      "minItems": 1,
      "description": "Edits, in order. Validated before any write."
    },
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
edit_files output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "edits": {},
    "paths": {},
    "app_id": {
      "type": "number"
    },
    "edited": {}
  },
  "additionalProperties": false
}
edit_files annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
generate_image — Generate Image
Advertised by the server during the last successful anonymous check.
Advertised destructive

Put a REAL photo or illustration on the site by describing it — no image bytes to send. Give a vivid `prompt` and a `public/` `path` (e.g. public/hero.jpg); Kleap generates it with Cloudflare FLUX.2 and stores it as a proper binary asset, exactly like write_files with encoding:"base64" but with NO base64 to transmit (a real image's base64 is too big for a model to emit reliably — this is the ONLY dependable way to add a generated picture). Use it for hero photos, section illustrations, onboarding images, OG images, or to replace a broken/ugly image. Square 768×768 by default; pass width/height (256–1440) for other ratios; hd:true uses the premium model (sharper, slower). ⚠️ To REPLACE an existing image, generate to a NEW filename (e.g. hero-2.jpg) and point the markup at it — overwriting the same path can be served stale from CDN/R2 cache. After it returns, call publish_app to deploy it live.

generate_image input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "path",
    "prompt",
    "context"
  ],
  "properties": {
    "hd": {
      "type": "boolean",
      "description": "true = premium model (flux-2-dev): sharper, slower. Default = fast klein model."
    },
    "path": {
      "type": "string",
      "description": "public/ image path to create, ending .png/.jpg/.jpeg/.webp (e.g. public/hero.jpg). Use a NEW name to replace an image."
    },
    "width": {
      "type": "number",
      "description": "Pixel width 256–1440 (default 768)."
    },
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "height": {
      "type": "number",
      "description": "Pixel height 256–1440 (default 768)."
    },
    "prompt": {
      "type": "string",
      "description": "Vivid description of the image to generate (subject, mood, lighting, style)."
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
generate_image output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "path": {},
    "size": {},
    "bytes": {},
    "model": {}
  },
  "additionalProperties": false
}
generate_image annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
delete_files — Delete Files
Advertised by the server during the last successful anonymous check.
Advertised destructive

Remove pages, components or assets from a site — the counterpart to write_files. Use it when a page should no longer exist: a wrong route, a duplicate, an outdated landing page, an image nobody references. Do NOT overwrite the file with empty content instead: that leaves a URL answering 200 with nothing, which is worse for SEO than a clean 404. Deleting a binary also removes its stored bytes. Paths Kleap owns (astro.config.mjs, package.json, tsconfig.json…) are refused — the build lays its own copy back down, so removing them changes nothing. The homepage (src/pages/index.astro) is refused too: a site with no homepage is broken — write a new one instead, writing replaces it. Returns which paths were actually deleted and which did not exist. The pages STAY LIVE until you call publish_app.

delete_files input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "paths",
    "context"
  ],
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "description": "Project-relative paths to delete, e.g. [\"src/pages/old.astro\", \"public/images/unused.png\"]"
    },
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
delete_files output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {
      "type": "number"
    },
    "deleted": {},
    "missing": {}
  },
  "additionalProperties": false
}
delete_files annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
list_app_files — List App Files
Advertised by the server during the last successful anonymous check.
Advertised read-only

List the source file PATHS of an app (names only, no contents). See the project structure, then read_files to get contents before editing. Astro: src/pages/*.astro, src/data/*.json, src/components/*.astro, public/*.

list_app_files input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
list_app_files output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "count": {},
    "files": {},
    "app_id": {
      "type": "number"
    }
  },
  "additionalProperties": false
}
list_app_files annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
read_files — Read File Contents
Advertised by the server during the last successful anonymous check.
Advertised read-only

Read existing file contents so you can edit them SAFELY instead of rewriting blind (which risks breaking shared components/homepages). Loop: list_app_files → read_files → edit_files (change just the lines that must change) → publish_app; use write_files instead only when you are writing a whole new file. Use it to fix headers/footers, wrong phone numbers, broken links, dead forms. Works with a Read-only key. Returns { files: [{ path, content, type, bytes, truncated?, returned_bytes? }], missing }. Text is capped at 256 KiB per file and 1 MiB per call; truncated files are explicitly marked, and files beyond the call budget must be read separately.

read_files input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "paths",
    "context"
  ],
  "properties": {
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "description": "Project-relative paths to read, from list_app_files (e.g. ['src/components/Header.astro','src/components/Footer.astro'])"
    },
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
read_files output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "content"
        ],
        "properties": {
          "path": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "bytes": {
            "type": "number"
          },
          "content": {
            "type": "string",
            "description": "Full text of the file. This is the payload — the text block only carries an index."
          },
          "truncated": {
            "type": "boolean",
            "description": "True when the file was too large to return whole; content holds the first bytes only."
          },
          "returned_bytes": {
            "type": "number",
            "description": "How many bytes of content are actually in this result. Zero means the call's budget was spent before this file — read it on its own."
          }
        },
        "additionalProperties": false
      }
    },
    "app_id": {
      "type": "number"
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "additionalProperties": false
}
read_files annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
list_apps — List My Websites
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user wants to see all their websites with name, slug, preview URL, and production URL.

list_apps input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "context"
  ],
  "properties": {
    "limit": {
      "type": "number",
      "default": 20,
      "description": "Number of apps to return (max 100)"
    },
    "offset": {
      "type": "number",
      "default": 0,
      "description": "Pagination offset"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
list_apps output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apps": {},
    "total": {}
  },
  "additionalProperties": false
}
list_apps annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
get_app — Get Website Details
Advertised by the server during the last successful anonymous check.
Advertised read-only

Show a website to the user: its screenshot, name and live address. This is the ONE tool that renders the finished-site card, so call it once after a build or edit has finished and deployed (check_task says deployment_status deployed) — that is what lets the user SEE what was built. Also use it for plain details: name, slug, URLs, creation date, status, published_at (when the live version went up, null = never published) and has_unpublished_changes (true = some file was edited after the last publish, so publish_app would ship it; call this BEFORE publishing work you did not write; a file deleted since the last publish is not detected; null = cannot be told for a legacy Next.js app). ADDRESS TO SHOW: site_url. If custom_domain is set, the owner connected that domain and it IS their site's address — never hand them the {slug}.kleap.io host instead, they did not choose it. Never call this while a build is still running: it would show the previous version as if it were the new one.

get_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "slug": {},
    "app_id": {},
    "status": {},
    "site_url": {},
    "created_at": {},
    "preview_url": {},
    "last_edit_at": {},
    "published_at": {},
    "custom_domain": {},
    "custom_domains": {},
    "production_url": {},
    "screenshot_url": {},
    "has_unpublished_changes": {}
  },
  "additionalProperties": false
}
get_app annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
seo_audit — SEO Audit
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Free SEO check of ONE public website URL, on Kleap or not (no app_id, no usage consumed, no AI call). Reads up to 12 pages plus sitemap.xml and robots.txt and checks title, meta description, h1, canonical, viewport, lang, og:image, JSON-LD, image alt, thin content, noindex and dead internal links. Returns score.percent out of 100 (a Kleap checklist, not a Google metric), top3 fixes and every finding with its page, impact (1-10) and fix. For a Kleap site apply fixes with read_files, edit_files, publish_app, then run it again.

seo_audit input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "url",
    "context"
  ],
  "properties": {
    "url": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1,
      "description": "Public site address, e.g. 'https://example.com' or 'example.com'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "max_pages": {
      "type": "integer",
      "maximum": 25,
      "minimum": 1,
      "description": "Pages to read, homepage first (default 12, max 25)"
    }
  }
}
seo_audit output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "url": {
      "type": "string"
    },
    "top3": {},
    "score": {},
    "growth": {},
    "partial": {
      "type": "boolean"
    },
    "findings": {},
    "next_step": {
      "type": "string"
    },
    "owner_notes": {},
    "finding_count": {
      "type": "number"
    },
    "pages_audited": {
      "type": "number"
    }
  },
  "additionalProperties": false
}
seo_audit annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "destructiveHint": false
}
find_app — Find Website by Address
Advertised by the server during the last successful anonymous check.
Advertised read-only

Resolve a website the user refers to by its ADDRESS — a custom domain ('mysite.ch'), a kleap.io URL ('mysite.kleap.io'), or a slug — to its app_id. Use this FIRST whenever the user names a site by its address instead of an app_id (e.g. 'edit mysite.ch'), then pass the returned app_id to get_app / modify_app / publish_app. ADDRESS TO SHOW THE USER: site_url. When the owner has connected a domain, custom_domain is set and site_url is that domain — say THAT, never the {slug}.kleap.io host, which is the internal address they did not choose.

find_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "query",
    "context"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "A domain, full URL, or slug — e.g. 'mysite.ch', 'https://mysite.ch', or 'mysite.kleap.io'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
find_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "slug": {},
    "found": {
      "type": "boolean"
    },
    "query": {
      "type": "string"
    },
    "app_id": {},
    "reason": {},
    "status": {},
    "matched": {},
    "site_url": {},
    "custom_domain": {},
    "production_url": {},
    "screenshot_url": {}
  },
  "additionalProperties": false
}
find_app annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
rename_app — Rename Website
Advertised by the server during the last successful anonymous check.

Rename an app's display name. Does NOT change the URL — the live address ({slug}.kleap.io) and any links to it stay intact. (There is no tool to delete the entire app; delete_files removes selected source files.)

rename_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "name",
    "context"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "description": "The new display name"
    },
    "app_id": {
      "type": "number",
      "description": "The app ID to rename"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
rename_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "slug": {},
    "app_id": {},
    "renamed": {
      "type": "boolean"
    },
    "production_url": {}
  },
  "additionalProperties": false
}
rename_app annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
get_screenshot — Screenshot Website
Advertised by the server during the last successful anonymous check.

Use this when the user wants to see a visual screenshot of their website. Rate-limited to 1/min per app. The returned image_url is a PNG on the asset host — render it as an image (![preview](image_url)) and nothing else. It is NOT the website's address, so never present it to the user as their site link, and never open, fetch or web-search it: the site's own address is production_url from get_app / find_app.

get_screenshot input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_screenshot output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "slug": {},
    "width": {},
    "app_id": {
      "type": "number"
    },
    "height": {},
    "status": {
      "type": "string"
    },
    "image_url": {},
    "preview_url": {},
    "production_url": {},
    "screenshot_url": {}
  },
  "additionalProperties": false
}
get_screenshot annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
check_task — Check Build Status
Advertised by the server during the last successful anonymous check.

Check a create/modify task. Returns quickly with the CURRENT status — report it to the user rather than calling again in the same turn; a build takes 5-15 min, so the answer to 'is it ready?' is usually 'still building, here is the progress'. EXCEPTION: in a headless or one-shot run with nobody to answer (CLI, script, scheduled agent), do not stop at 'still building': call it again about every 30 seconds and stop only on completed (deployment_status deployed) or failed. The optional `wait` can shorten the hold but cannot exceed the server cap (8 seconds by default). status is one of: queued, processing, completed, failed, unknown_task (the id is unknown or aged out — that is an answer, not a failure: check the site itself with get_publish_status). On 'completed' the FILES are written; check deployment_status — 'pending' means the site is going live right now and production_url is still the PREVIOUS version, so say 'built, going live' and check once more in about a minute rather than reporting it stuck. 'deployed' means it is genuinely live. On 'failed': TASK_TIMEOUT/STALE_TASK = transient stall → retry_task (returns a NEW task_id to poll); TASK_FAILED = read error.message, retry once. (Running out of usage is not a task failure — create/modify reject up front with 402 INSUFFICIENT_CREDITS.)

check_task input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "task_id",
    "context"
  ],
  "properties": {
    "wait": {
      "type": "number",
      "description": "Optional. Seconds to hold the connection before returning. Capped server-side at a few seconds so the call always comes back inside a single turn — asking for more has no effect. Leave it unset."
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "task_id": {
      "type": "string",
      "description": "The task_id returned by create_app or modify_app"
    }
  }
}
check_task output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "plan": {},
    "slug": {},
    "app_id": {},
    "reason": {},
    "result": {},
    "status": {},
    "palette": {},
    "task_id": {
      "type": "string"
    },
    "metadata": {},
    "progress": {},
    "preview_url": {},
    "production_url": {},
    "screenshot_url": {},
    "deployment_status": {}
  },
  "additionalProperties": false
}
check_task annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
retry_task — Retry Build
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Resume a failed or stalled create/modify task from where it stopped — partial files are preserved. Use this when check_task reports 'failed' instead of starting a brand-new create_app. Returns a NEW task_id — poll check_task on that NEW id (not the original). Budget: retry TASK_TIMEOUT/STALE_TASK up to TWICE; retry TASK_FAILED only ONCE; then stop and tell the user. NEVER retry a non-transient error (402 INSUFFICIENT_CREDITS = out of usage, a rejected prompt).

retry_task input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "task_id",
    "context"
  ],
  "properties": {
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "task_id": {
      "type": "string",
      "description": "The failed task_id to resume (from create_app/modify_app)"
    }
  }
}
retry_task output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {},
    "status": {
      "type": "string"
    },
    "attempt": {},
    "task_id": {},
    "parent_task_id": {},
    "files_preserved": {}
  },
  "additionalProperties": false
}
retry_task annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": true
}
get_credits — Check usage
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks how much usage they have left or about their plan status.

get_credits input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "context"
  ],
  "properties": {
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_credits output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "is_paid": {},
    "usage_remaining": {}
  },
  "additionalProperties": false
}
get_credits annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
upgrade_plan — Upgrade Plan
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Use this when the user wants a paid Kleap plan, runs out of usage, or needs a feature that requires one (custom domain, more usage). Returns an upgrade_url the USER must open and pay — nothing is charged before that, so never say they are subscribed. plan: 'monthly' (default) or 'annual'; 'credits' (legacy name) buys extra usage for users who already have a paid plan. Do not quote a price: the page shows it in the user's currency.

upgrade_plan input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "context"
  ],
  "properties": {
    "plan": {
      "enum": [
        "monthly",
        "annual",
        "credits"
      ],
      "type": "string",
      "description": "Default monthly"
    },
    "app_id": {
      "type": "number",
      "description": "The site this upgrade is for (shown on the checkout)"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
upgrade_plan output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "plan": {},
    "is_paid": {},
    "upgrade_url": {},
    "credits_balance": {}
  },
  "additionalProperties": false
}
upgrade_plan annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "destructiveHint": false
}
wake_app — Wake Website
Advertised by the server during the last successful anonymous check.

Use this when the user's website preview is sleeping (sandboxes auto-stop after 15 min). Takes ~30-60s to restart.

wake_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID to wake up"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
wake_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {
      "type": "number"
    },
    "status": {
      "type": "string"
    },
    "preview_url": {}
  },
  "additionalProperties": false
}
wake_app annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
publish_app — Publish Website
Advertised by the server during the last successful anonymous check.
Advertised destructiveOpen-world

Use this to take a website LIVE at its public URL. Publishing is VERIFIED-LIVE: the app is only reported published once the new version is provably serving — otherwise it reports 'not confirmed live', never a false 'it is online'. Publishing also AUDITS the built site: every internal link on every page (menu entries to a page never written are the #1 case), pages whose content contradicts the link leading to them, and JSON-LD/sitemap/robots coverage. Most deploys land in under a minute, so this call WAITS a bounded time and returns that `report` here when it does — read it before calling the launch a success, and if it lists findings, FIX THEM (write the missing page, or remove the dead link) before you answer, as you would a build error. On a slower deploy it returns 'publishing' with no report; then do not poll get_publish_status in a loop inside one turn — check once when the user asks again.

publish_app input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID to publish"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
publish_app output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {
      "type": "number"
    },
    "report": {},
    "status": {},
    "poll_url": {},
    "deploy_key": {},
    "production_url": {}
  },
  "additionalProperties": false
}
publish_app annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": true
}
get_publish_status — Check Publish Status
Advertised by the server during the last successful anonymous check.
Advertised read-only

Check whether the site is published and return its live URL and latest report: broken_links, dead_nav_links, incoherent_pages, checks, design_gate, live_verified and SEO coverage. report.checked:true means a report was produced; report.audit_ran:false means the link, form and design audit did not run for this deploy, so findings are unavailable. Do NOT describe a publish as clean unless the audit ran. Read the report and offer fixes for findings, including forms that submit into the void, buttons do nothing, and hand-rolled auth. If audit_ran is false, run seo_audit on production_url. status is one of: published, deploying, not_published, unknown_app. This is the current state; do not poll repeatedly.

get_publish_status input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app ID to check"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_publish_status output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "name": {},
    "slug": {},
    "app_id": {
      "type": "number"
    },
    "reason": {},
    "report": {},
    "status": {},
    "production_url": {},
    "screenshot_url": {}
  },
  "additionalProperties": false
}
get_publish_status annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
search_domains — Search Domains
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Search for available domains for a site (e.g. 'mybakery'). Returns available names across TLDs. To buy one, call buy_domain — it returns a checkout link the user pays. Use connect_domain for a domain the user already owns.

search_domains input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "query",
    "context"
  ],
  "properties": {
    "tlds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Optional TLDs to check, e.g. ['.com', '.io', '.ch']"
    },
    "query": {
      "type": "string",
      "description": "Base name to search, without a TLD (e.g. 'mybakery')"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
search_domains output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "query": {
      "type": "string"
    },
    "results": {}
  },
  "additionalProperties": false
}
search_domains annotations
{
  "readOnlyHint": true,
  "openWorldHint": true,
  "destructiveHint": false
}
check_domain — Check Domain
Advertised by the server during the last successful anonymous check.

Check a domain's connection / DNS status for a Kleap app.

check_domain input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "domain",
    "context"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "The domain, e.g. 'mybakery.com'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
check_domain output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "tls": {},
    "url": {},
    "checks": {},
    "domain": {},
    "status": {},
    "message": {}
  },
  "additionalProperties": false
}
check_domain annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
connect_domain — Connect Domain
Advertised by the server during the last successful anonymous check.
Open-world

Connect a domain the user ALREADY OWNS to a live Kleap app (routing + automatic TLS). The app must be live first — a create_app/modify_app with deployment_status deployed already counts as published, so you do NOT need publish_app first. The user points the domain's A record to Kleap. Does not buy anything.

connect_domain input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "domain",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app id (must be published)"
    },
    "domain": {
      "type": "string",
      "description": "The domain to connect, e.g. 'mybakery.com'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
connect_domain output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {},
    "domain": {},
    "status": {},
    "warnings": {},
    "dns_config": {},
    "already_connected": {}
  },
  "additionalProperties": false
}
connect_domain annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": false
}
get_form_submissions — Get Form Submissions
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks who filled out their contact form, or wants to see/export leads from their live site. Returns submissions from any <form> built with KleapForm on the app, newest first. Empty list is normal for a brand new site with no visitors yet. Requires the forms:read scope (submissions contain visitor PII) — sessions connected BEFORE this tool shipped don't have it: on INSUFFICIENT_SCOPE the connection has NOT expired: it was authorized before this tool existed and needs one re-authorization to add the scope. Say that, never that it expired.

get_form_submissions input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "limit": {
      "type": "number",
      "description": "Max rows to return (default 20, max 100)"
    },
    "since": {
      "type": "string",
      "description": "Only return submissions at/after this ISO 8601 date, e.g. '2026-06-01T00:00:00Z'"
    },
    "app_id": {
      "type": "number",
      "description": "The app id to fetch submissions for"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_form_submissions output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "count": {
      "type": "number"
    },
    "app_id": {
      "type": "number"
    },
    "submissions": {}
  },
  "additionalProperties": false
}
get_form_submissions annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
get_analytics — Get Site Analytics
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks about traffic, visitors, or which pages/referrers are performing on their PUBLISHED site. Backed by the same analytics as the Kleap dashboard's Visitors view. Returns zeroed data with configured:false if the app has never been published (analytics is set up automatically on publish). Requires the analytics:read scope — sessions connected BEFORE this tool shipped don't have it: on INSUFFICIENT_SCOPE the connection has NOT expired: it was authorized before this tool existed and needs one re-authorization to add the scope. Say that, never that it expired.

get_analytics input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app id to fetch analytics for"
    },
    "period": {
      "enum": [
        "7d",
        "30d",
        "90d"
      ],
      "type": "string",
      "description": "Time window: '7d' (default), '30d', or '90d'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_analytics output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {
      "type": "number"
    },
    "period": {},
    "visitors": {
      "type": "number"
    },
    "pageviews": {
      "type": "number"
    },
    "referrers": {},
    "top_pages": {},
    "configured": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
get_analytics annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
get_search_console — Get Google Search Performance
Advertised by the server during the last successful anonymous check.
Advertised read-only

Use this when the user asks how their site does IN GOOGLE SEARCH — queries they rank for, impressions, clicks, CTR, average position. Real Search Console data from their own property, not an estimate. Returns totals plus top queries and top pages. It lags ~2 days, so the newest days are always incomplete — say so rather than reporting a drop. If connected is false, call connect_search_console(app_id) — it returns a consent_url to hand the owner, and that IS the whole setup: the property matching the site's domain is bound automatically as soon as they approve. Do NOT send them hunting through Kleap's settings. If site_selected is false the message names the cause — read it, do not guess: the site has no custom domain (connect_domain first — a {slug}.kleap.io host can never be a Search Console property), or the Google account has no VERIFIED property for that domain yet (add and verify it, then read again — Kleap binds it). For all-source visitors use get_analytics. Requires the analytics:read scope — on INSUFFICIENT_SCOPE the connection has NOT expired: it was authorized before this tool existed and needs one re-authorization to add the scope. Say that, never that it expired.

get_search_console input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app id to fetch search data for"
    },
    "period": {
      "enum": [
        "7d",
        "28d",
        "30d",
        "90d"
      ],
      "type": "string",
      "description": "Time window: '28d' (default, the window Search Console itself shows), '7d', '30d' or '90d'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_search_console output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "ctr": {
      "type": "number"
    },
    "note": {},
    "app_id": {
      "type": "number"
    },
    "clicks": {
      "type": "number"
    },
    "period": {},
    "message": {},
    "has_data": {
      "type": "boolean"
    },
    "position": {
      "type": "number"
    },
    "site_url": {},
    "connected": {
      "type": "boolean"
    },
    "top_pages": {},
    "impressions": {
      "type": "number"
    },
    "top_queries": {},
    "site_selected": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
get_search_console annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
connect_search_console — Connect Google Search Console
Advertised by the server during the last successful anonymous check.

Use this when the user wants to connect (or reconnect) Google Search Console for a site — typically right after get_search_console reported connected:false. Returns a consent_url: give it to the user as a link and ask them to open it and approve access with the Google account that owns the domain in Search Console. That one approval MUST happen in a browser — Google does not allow it any other way, so never claim you can do it for them. Nothing else is needed afterwards: the Search Console property is bound to the site's custom domain automatically, and get_search_console starts answering. If requires_custom_domain is true the site has no custom domain yet: connecting Google would grant access to nothing, so connect a domain first (connect_domain) and publish. Already connected? It returns a consent_url too, but hand that over ONLY to switch Google account; otherwise just read the numbers.

connect_search_console input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app id to connect Search Console for"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
connect_search_console output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {
      "type": "number"
    },
    "message": {},
    "site_url": {},
    "connected": {
      "type": "boolean"
    },
    "consent_url": {},
    "google_email": {},
    "custom_domain": {},
    "site_selected": {
      "type": "boolean"
    },
    "expires_in_minutes": {
      "type": "number"
    },
    "requires_custom_domain": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}
connect_search_console annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
get_database_schema — Get Database Schema
Advertised by the server during the last successful anonymous check.
Advertised read-only

The app's Kleap Database (Postgres): its tables, row counts and columns. Call it before reading or writing rows. provisioned:false means the app has no database yet — create one with modify_app (describe the data to store).

get_database_schema input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "context"
  ],
  "properties": {
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
get_database_schema output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "app_id": {},
    "tables": {},
    "provisioned": {}
  },
  "additionalProperties": false
}
get_database_schema annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
query_database_rows — Query Database Rows
Advertised by the server during the last successful anonymous check.
Advertised read-only

Read rows from one table of the app's database. where = exact matches, e.g. {"status":"new"}. Max 500 rows per call; page with offset while has_more is true.

query_database_rows input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "table",
    "context"
  ],
  "properties": {
    "limit": {
      "type": "number",
      "description": "1-500, default 100"
    },
    "order": {
      "type": "string",
      "description": "asc (default) or desc"
    },
    "table": {
      "type": "string",
      "description": "Table name (public schema)"
    },
    "where": {
      "type": "object",
      "description": "Column equalities",
      "additionalProperties": {}
    },
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "offset": {
      "type": "number"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "order_by": {
      "type": "string",
      "description": "Column to sort by"
    }
  }
}
query_database_rows output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "rows": {},
    "limit": {},
    "table": {},
    "offset": {},
    "has_more": {}
  },
  "additionalProperties": false
}
query_database_rows annotations
{
  "readOnlyHint": true,
  "openWorldHint": false,
  "destructiveHint": false
}
insert_database_rows — Insert Database Rows
Advertised by the server during the last successful anonymous check.

Insert up to 500 rows into one table of the app's database. Returns the inserted rows (with generated ids/defaults).

insert_database_rows input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "table",
    "rows",
    "context"
  ],
  "properties": {
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      },
      "description": "Rows: column → value"
    },
    "table": {
      "type": "string",
      "description": "Table name (public schema)"
    },
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
insert_database_rows output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "rows": {},
    "table": {},
    "inserted": {}
  },
  "additionalProperties": false
}
insert_database_rows annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": false
}
update_database_rows — Update Database Rows
Advertised by the server during the last successful anonymous check.
Advertised destructive

Update the rows matching where (required, non-empty, exact matches, e.g. {"id":42}) with the values in set. Returns the updated rows.

update_database_rows input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "table",
    "where",
    "set",
    "context"
  ],
  "properties": {
    "set": {
      "type": "object",
      "description": "New values: column → value",
      "additionalProperties": {}
    },
    "table": {
      "type": "string",
      "description": "Table name (public schema)"
    },
    "where": {
      "type": "object",
      "description": "Which rows (required)",
      "additionalProperties": {}
    },
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
update_database_rows output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "rows": {},
    "table": {},
    "updated": {},
    "truncated": {}
  },
  "additionalProperties": false
}
update_database_rows annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
delete_database_rows — Delete Database Rows
Advertised by the server during the last successful anonymous check.
Advertised destructive

Delete the rows matching where (required, non-empty, exact matches, e.g. {"id":42}). Permanent. Returns how many were deleted.

delete_database_rows input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "table",
    "where",
    "context"
  ],
  "properties": {
    "table": {
      "type": "string",
      "description": "Table name (public schema)"
    },
    "where": {
      "type": "object",
      "description": "Which rows (required)",
      "additionalProperties": {}
    },
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
delete_database_rows output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "table": {},
    "deleted": {}
  },
  "additionalProperties": false
}
delete_database_rows annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
run_database_sql — Run Database SQL
Advertised by the server during the last successful anonymous check.
Advertised destructive

Run SQL on the app's database (owner-level, needs database:write), values as $1, $2 in params. Rows capped at 500 / 5 MB. A table left without row-level security is rolled back (RLS_REQUIRED). To just read rows, prefer query_database_rows.

run_database_sql input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "app_id",
    "sql",
    "context"
  ],
  "properties": {
    "sql": {
      "type": "string",
      "description": "The SQL statement"
    },
    "app_id": {
      "type": "number",
      "description": "The app id"
    },
    "params": {
      "type": "array",
      "description": "Values for $1, $2, …"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    }
  }
}
run_database_sql output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "rows": {},
    "command": {},
    "warnings": {},
    "row_count": {},
    "truncated": {}
  },
  "additionalProperties": false
}
run_database_sql annotations
{
  "readOnlyHint": false,
  "openWorldHint": false,
  "destructiveHint": true
}
buy_domain — Buy Domain
Advertised by the server during the last successful anonymous check.
Open-world

Start buying a domain: returns a Stripe checkout_url (valid 30 min) that the USER must open and pay. Nothing is bought until they complete checkout — give them the link, never say it is purchased. With app_id it is connected to that app after payment.

buy_domain input schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "domain",
    "context"
  ],
  "properties": {
    "years": {
      "type": "number",
      "description": "1-10, default 1"
    },
    "app_id": {
      "type": "number",
      "description": "App to connect it to"
    },
    "domain": {
      "type": "string",
      "description": "e.g. 'mybakery.com'"
    },
    "context": {
      "type": "string",
      "description": "Why this call, in one short sentence. Used to improve the connector; never include credentials or personal data."
    },
    "registrant": {
      "type": "object",
      "required": [
        "first_name",
        "last_name",
        "email",
        "phone",
        "address",
        "city",
        "country"
      ],
      "properties": {
        "city": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "phone": {
          "type": "string",
          "description": "International format, e.g. +33 6 12 34 56 78"
        },
        "state": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "country": {
          "type": "string",
          "description": "ISO 3166-1 alpha-2, e.g. FR"
        },
        "address2": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "first_name": {
          "type": "string"
        },
        "postal_code": {
          "type": "string",
          "description": "Required except in countries without postal codes"
        },
        "organization": {
          "type": "string"
        }
      },
      "description": "The domain OWNER (legal registrant) — can differ from the person paying. Ask the user for it; if omitted, the payer's billing details are used.",
      "additionalProperties": false
    }
  }
}
buy_domain output schema
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "price": {},
    "years": {},
    "domain": {},
    "currency": {},
    "expires_at": {},
    "checkout_url": {}
  },
  "additionalProperties": false
}
buy_domain annotations
{
  "readOnlyHint": false,
  "openWorldHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

3 advertised

App Preview Widget

Advertised by the server during the last successful anonymous check.

Preview widget for app creation and modification

App Preview Widget URI
ui://kleap/app-preview-v5.html

MIME type: text/html;profile=mcp-app

App Preview Widget (previous address)

Advertised by the server during the last successful anonymous check.

Preview widget for app creation and modification

App Preview Widget (previous address) URI
ui://kleap/app-preview-v1.html

MIME type: text/html;profile=mcp-app

App Card Widget

Advertised by the server during the last successful anonymous check.

Card grid widget for listing apps

App Card Widget URI
ui://kleap/app-card-v3.html

MIME type: text/html;profile=mcp-app

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

98.6% (70 of 71 checks answered)

  1. 2026-11-02: 3 of 3 checks answered
  2. 2026-11-03: 4 of 4 checks answered
  3. 2026-11-04: 4 of 4 checks answered
  4. 2026-11-05: 4 of 4 checks answered
  5. 2026-11-06: 4 of 4 checks answered
  6. 2026-11-07: 2 of 2 checks answered
  7. 2026-11-09: 1 of 1 checks answered
  8. 2026-11-10: 2 of 2 checks answered
  9. 2026-11-11: 1 of 1 checks answered
  10. 2026-11-12: 1 of 1 checks answered
  11. 2026-11-14: 1 of 1 checks answered
  12. 2026-11-15: 2 of 2 checks answered
  13. 2026-11-16: 4 of 4 checks answered
  14. 2026-11-17: 5 of 5 checks answered
  15. 2026-11-18: 5 of 5 checks answered
  16. 2026-11-19: 4 of 4 checks answered
  17. 2026-11-20: 2 of 3 checks answered
  18. 2026-11-21: 4 of 4 checks answered
  19. 2026-11-22: 4 of 4 checks answered
  20. 2026-11-23: 3 of 3 checks answered
  21. 2026-11-24: 4 of 4 checks answered
  22. 2026-11-25: 4 of 4 checks answered
  23. 2026-11-26: 2 of 2 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
2 of 2 (100%)
Average latency
2575 ms
95th percentile latency
2950 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 2992 ms · metadata changed · refuses unauthenticated resources/templates/list (HTTP 401)
  • · probe · passed · 2157 ms · metadata changed · refuses unauthenticated resources/templates/list (HTTP 401)
  • · repository · passed · updated
  • · repository · passed · metadata changed · unchanged
  • · repository · passed · metadata changed · updated
  • · registry · passed · metadata changed · Source metadata updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http kleap-mcp https://kleap.co/api/mcp

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add kleap-mcp --url https://kleap.co/api/mcp

Cursor

Merge this server into .cursor/mcp.json in your project, then enable kleap-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "kleap-mcp": {
      "url": "https://kleap.co/api/mcp"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "kleap-mcp": {
      "type": "streamableHttp",
      "url": "https://kleap.co/api/mcp",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start kleap-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "kleap-mcp": {
      "type": "http",
      "url": "https://kleap.co/api/mcp"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http kleap-mcp https://kleap.co/api/mcp

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://kleap.co/api/mcp

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "kleap-mcp": {
      "serverUrl": "https://kleap.co/api/mcp"
    }
  }
}

Let your agent find its tools

Find servers like Kleap MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.

Do you run Kleap MCP?

Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.

Claim this listing