wisewall-mcp

v0.1.10
io.github.ti-ab/wisewall-mcp Checked 18 hours ago Published 3 months ago

Manage 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.

ParameterTypeDescription
dist_dir *stringAbsolute path to the local directory to deploy.
name *stringDisplay 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…

ParameterTypeDescription
project_dir *stringAbsolute path to the project's root directory (not the build output/dist_dir).
clientsarrayWhich 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…

ParameterTypeDescription
project_dir *stringAbsolute path to the project's root directory (not the build output/dist_dir).
clientsarrayWhich 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.

ParameterTypeDescription
dist_dir *stringAbsolute path to the local directory to deploy.
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe site's id, from list_sites or create_site.

get_config Get site config

Reads a site's protectedPaths / localStorageSync / authButton configuration.

ParameterTypeDescription
site_id *stringThe 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…

ParameterTypeDescription
config *object
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
domain *The custom domain to attach (e.g. 'shop.example.com'), or null to remove the current one.
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
content *stringThe record's value (e.g. an IP address for A/AAAA, a hostname for CNAME/MX).
name *stringThe record name (e.g. a subdomain like 'www', or '@' for the zone root).
site_id *stringThe site's id, from list_sites or create_site.
type *stringDNS record type.
prioritynumberMX only.
proxiedbooleanProxy 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.

ParameterTypeDescription
record_id *stringThe DNS record's id, from get_zone.
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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).

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
name *stringLetters, digits, - and _ only.
site_id *stringThe site's id, from list_sites or create_site.
target_url *stringMust be https://.
value *stringThe secret value (e.g. an API key). Never returned by list_secrets afterward.

delete_secret Delete secret

Deletes a proxy secret. Cannot be undone.

ParameterTypeDescription
name *stringThe secret's name, from list_secrets.
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
currency *stringThree-letter ISO currency code, lowercase (e.g. 'usd').
interval *stringBilling interval.
name *stringThe plan's display name (e.g. 'Pro').
price_cents *numberPrice in cents (e.g. 999 for $9.99).
site_id *stringThe site's id, from list_sites or create_site.
descriptionstringOptional plan description shown at checkout.
protected_pathsarrayGlob 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.

ParameterTypeDescription
plan_id *stringThe plan's id, from list_plans or create_plan.
protected_paths *arrayReplaces the full set of glob paths this plan grants access to (e.g. ['/premium/**']).
site_id *stringThe 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.

ParameterTypeDescription
plan_id *stringThe plan's id, from list_plans or create_plan.
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
name *stringA 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.

ParameterTypeDescription
token_id *stringThe token's id, from list_tokens.