wisewall-mcp
v0.1.10Manage WiseWall sites from an AI coding assistant — deploy, configure DNS, secrets, and plans.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_sites List sites
Lists every site owned by the authenticated WiseWall account.
create_site Create site
Creates a new WiseWall site from a local directory (e.g. a build's ./dist output) and deploys it. The hostname is auto-generated under the platform's domain — there is no way to choose it here.
| Parameter | Type | Description |
|---|---|---|
dist_dir * | string | Absolute path to the local directory to deploy. |
name * | string | Display name for the site. |
init Initialize project guidance
Adds a WiseWall section to the project's instructions file for one or more coding agents — CLAUDE.md (claude), .cursor/rules/wisewall.mdc (cursor), .windsurf/rules/wisewall.md (windsurf), .github/copilot-instructions.md (copilot), AGENTS.md (codex), GEMINI.md (gemini) — creating each file if it doesn't exist, appending to it otherwise, no-op per file if already present. Covers the same premium-gating and localStorage conventions described on set_config, but read automatically by an agent every session in this repo rather than only when a config tool happens to be in view. Defaults to all s…
| Parameter | Type | Description |
|---|---|---|
project_dir * | string | Absolute path to the project's root directory (not the build output/dist_dir). |
clients | array | Which clients' instructions files to write. Defaults to all six. |
convert Convert an existing project to WiseWall
init's superset for a project that might already have code in it. On an empty project_dir, behaves exactly like init — scaffolds each requested client's project-instructions file, nothing more. On a project_dir that already has files in it, does that AND returns complianceChecklist: concrete things to go find and fix in the existing code so it actually follows WiseWall's gating conventions (remove any client-side-only paywall logic, move hardcoded API keys to set_secret + /_gk/proxy, set protectedPaths/authOnlyPaths to match the app's real premium content, flag rather than silently replace a…
| Parameter | Type | Description |
|---|---|---|
project_dir * | string | Absolute path to the project's root directory (not the build output/dist_dir). |
clients | array | Which clients' instructions files to write. Defaults to all six. |
deploy Deploy
Redeploys an existing site's files from a local directory, replacing everything currently live.
| Parameter | Type | Description |
|---|---|---|
dist_dir * | string | Absolute path to the local directory to deploy. |
site_id * | string | The site's id, from list_sites or create_site. |
delete_site Delete site
Permanently deletes a site and all its data (members, plans, secrets, storage). Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
get_config Get site config
Reads a site's protectedPaths / localStorageSync / authButton configuration.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
set_config Set site config
Replaces a site's protectedPaths / localStorageSync / authButton configuration. For a freemium app whose free and premium code are nearly identical, prefer gating just the specific files/paths that carry the premium value over splitting the whole app into two trees — the shared UI can stay one codebase. Client-side, window.__GK_STATUS__ ({ authenticated, activePlanId }, injected before the app boots) can conditionally show/hide premium UI, but it's informational only and never re-checked server-side — real enforcement always needs an actual protectedPaths entry (here, or per-plan via creat…
| Parameter | Type | Description |
|---|---|---|
config * | object | |
site_id * | string | The site's id, from list_sites or create_site. |
get_domain Get custom domain
Reads the custom domain currently attached to a site, if any.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
set_domain Set custom domain
Attaches (or removes, with domain: null) a custom domain to a site. Setting a domain automatically onboards a Cloudflare zone for its root domain — the owner still has to point their registrar's nameservers at the ones returned by get_zone.
| Parameter | Type | Description |
|---|---|---|
domain * | The custom domain to attach (e.g. 'shop.example.com'), or null to remove the current one. | |
site_id * | string | The site's id, from list_sites or create_site. |
get_zone Get DNS zone status
Reads the live Cloudflare zone status (pending/active), nameservers to configure at the registrar, and current DNS records for a site's custom domain.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
create_dns_record Create DNS record
Creates a DNS record (A, AAAA, CNAME, TXT, or MX) in a site's Cloudflare zone.
| Parameter | Type | Description |
|---|---|---|
content * | string | The record's value (e.g. an IP address for A/AAAA, a hostname for CNAME/MX). |
name * | string | The record name (e.g. a subdomain like 'www', or '@' for the zone root). |
site_id * | string | The site's id, from list_sites or create_site. |
type * | string | DNS record type. |
priority | number | MX only. |
proxied | boolean | Proxy traffic through Cloudflare (orange-cloud). Defaults to false. |
delete_dns_record Delete DNS record
Deletes a DNS record from a site's Cloudflare zone. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
record_id * | string | The DNS record's id, from get_zone. |
site_id * | string | The site's id, from list_sites or create_site. |
activate_custom_domain Activate custom domain
Registers the Workers Custom Domain binding for a site's custom domain (DNS + SSL + routing in one step). Requires the zone to already be active and no conflicting DNS record at that exact hostname.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
redirect_www_to_root Redirect www to root
Sets up www -> root redirection for a site's custom domain (Workers Custom Domains only route exact hostname matches, so this is a separate step from activate_custom_domain).
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
list_secrets List secrets
Lists a site's proxy secrets by name — values are never returned, only names/target URLs/last-updated.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
set_secret Set secret
Creates or overwrites a proxy secret. The site calls /_gk/proxy/:name and the Worker attaches this value server-side, so the secret never reaches the deployed site's own code.
| Parameter | Type | Description |
|---|---|---|
name * | string | Letters, digits, - and _ only. |
site_id * | string | The site's id, from list_sites or create_site. |
target_url * | string | Must be https://. |
value * | string | The secret value (e.g. an API key). Never returned by list_secrets afterward. |
delete_secret Delete secret
Deletes a proxy secret. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
name * | string | The secret's name, from list_secrets. |
site_id * | string | The site's id, from list_sites or create_site. |
list_plans List plans
Lists a site's plans, including archived ones, each with its active subscriber count.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
create_plan Create plan
Creates a new plan for a site, auto-creating the matching Polar product. protected_paths scopes access to this plan specifically — see set_config's description for how to gate a mostly-shared freemium codebase without splitting it into two trees.
| Parameter | Type | Description |
|---|---|---|
currency * | string | Three-letter ISO currency code, lowercase (e.g. 'usd'). |
interval * | string | Billing interval. |
name * | string | The plan's display name (e.g. 'Pro'). |
price_cents * | number | Price in cents (e.g. 999 for $9.99). |
site_id * | string | The site's id, from list_sites or create_site. |
description | string | Optional plan description shown at checkout. |
protected_paths | array | Glob paths this plan grants access to (e.g. ['/premium/**']). Omitted means no plan-specific paths beyond the site's own protectedPaths. |
update_plan_paths Update plan protected paths
Replaces the set of protected paths a plan grants access to. See set_config's description for how to gate a mostly-shared freemium codebase without splitting it into two trees.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | The plan's id, from list_plans or create_plan. |
protected_paths * | array | Replaces the full set of glob paths this plan grants access to (e.g. ['/premium/**']). |
site_id * | string | The site's id, from list_sites or create_site. |
archive_plan Archive plan
Archives a plan — it stops accepting new subscribers, but members who already hold it keep access. Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
plan_id * | string | The plan's id, from list_plans or create_plan. |
site_id * | string | The site's id, from list_sites or create_site. |
list_members List members
Lists a site's members with their entitlement history. Read-only — WiseWall never lets an owner mutate a member's account directly.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
export_members Export all members
Bulk-exports every member of a site — profile, entitlement history, and their full per-member storage (everything synced from their app's localStorage) — as one JSON document. The same shape a single member gets from their own account-page export, for every member of the site at once.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's id, from list_sites or create_site. |
list_tokens List API tokens
Lists your own WiseWall personal access tokens — never their values, only name/created/last-used/revoked.
create_token Create API token
Mints a new personal access token for your own account (e.g. for a second machine). The value is returned exactly once — save it, it can't be retrieved again.
| Parameter | Type | Description |
|---|---|---|
name * | string | A label to recognize this token later, e.g. 'laptop 2'. |
revoke_token Revoke API token
Revokes one of your own tokens (including, if you ask for it, the one currently in use). Cannot be undone.
| Parameter | Type | Description |
|---|---|---|
token_id * | string | The token's id, from list_tokens. |