KosmoKrator

authentication

Memberstack CLI for AI Agents

Use the Memberstack CLI from KosmoKrator to call Memberstack tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 4 read 3 write Bearer token auth

Memberstack CLI Setup

Memberstack can be configured headlessly with `kosmokrator integrations:configure memberstack`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure memberstack --set access_token="$MEMBERSTACK_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmokrator integrations:doctor memberstack --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token MEMBERSTACK_ACCESS_TOKEN Secret secret yes Access Token
url MEMBERSTACK_URL URL url no API Base URL

Call Memberstack Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call memberstack.memberstack_list_members '{
  "limit": 1,
  "page": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:memberstack memberstack_list_members '{
  "limit": 1,
  "page": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs memberstack --json
kosmo integrations:docs memberstack.memberstack_list_members --json
kosmo integrations:schema memberstack.memberstack_list_members --json
kosmo integrations:search "Memberstack" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Memberstack.

memberstack.memberstack_list_members

Read read

List members from Memberstack with pagination. Returns member IDs, emails, plan assignments, and metadata.

Parameters
limit, page

Generic CLI call

kosmo integrations:call memberstack.memberstack_list_members '{"limit":1,"page":1}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_list_members '{"limit":1,"page":1}' --json

memberstack.memberstack_get_member

Read read

Get detailed information about a single Memberstack member by their ID, including email, plan, and custom metadata.

Parameters
id

Generic CLI call

kosmo integrations:call memberstack.memberstack_get_member '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_get_member '{"id":"example_id"}' --json

memberstack.memberstack_create_member

Write write

Create a new member in Memberstack. Requires an email address. Optionally set a password, assign a plan, and attach custom metadata.

Parameters
email, password, planId, metadata

Generic CLI call

kosmo integrations:call memberstack.memberstack_create_member '{"email":"example_email","password":"example_password","planId":"example_planId","metadata":"example_metadata"}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_create_member '{"email":"example_email","password":"example_password","planId":"example_planId","metadata":"example_metadata"}' --json

memberstack.memberstack_update_member

Write write

Update an existing Memberstack member. Provide the member ID and any fields to change (email, plan assignment, or custom metadata).

Parameters
id, email, planId, metadata

Generic CLI call

kosmo integrations:call memberstack.memberstack_update_member '{"id":"example_id","email":"example_email","planId":"example_planId","metadata":"example_metadata"}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_update_member '{"id":"example_id","email":"example_email","planId":"example_planId","metadata":"example_metadata"}' --json

memberstack.memberstack_delete_member

Write write

Permanently delete a member from Memberstack. This action is irreversible and removes all associated data.

Parameters
id

Generic CLI call

kosmo integrations:call memberstack.memberstack_delete_member '{"id":"example_id"}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_delete_member '{"id":"example_id"}' --json

memberstack.memberstack_list_plans

Read read

List all membership plans configured in Memberstack. Returns plan IDs, names, pricing, and billing details.

Parameters
none

Generic CLI call

kosmo integrations:call memberstack.memberstack_list_plans '{}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_list_plans '{}' --json

memberstack.memberstack_get_current_user

Read read

Get the currently authenticated user from Memberstack. Useful for verifying API credentials and checking account details.

Parameters
none

Generic CLI call

kosmo integrations:call memberstack.memberstack_get_current_user '{}' --json

Provider shortcut

kosmo integrations:memberstack memberstack_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

memberstack.memberstack_list_members

List members from Memberstack with pagination. Returns member IDs, emails, plan assignments, and metadata.

Operation
Read read
Schema command
kosmo integrations:schema memberstack.memberstack_list_members --json
ParameterTypeRequiredDescription
limit integer no Number of members to return per page (default: 50, max: 100).
page integer no Page number for pagination (1-based, default: 1).

memberstack.memberstack_get_member

Get detailed information about a single Memberstack member by their ID, including email, plan, and custom metadata.

Operation
Read read
Schema command
kosmo integrations:schema memberstack.memberstack_get_member --json
ParameterTypeRequiredDescription
id string yes The Memberstack member ID.

memberstack.memberstack_create_member

Create a new member in Memberstack. Requires an email address. Optionally set a password, assign a plan, and attach custom metadata.

Operation
Write write
Schema command
kosmo integrations:schema memberstack.memberstack_create_member --json
ParameterTypeRequiredDescription
email string yes Email address for the new member.
password string no Password for the new member (optional).
planId string no ID of the plan to assign to the member (optional). Use memberstack_list_plans to find plan IDs.
metadata object no Custom metadata key-value pairs to attach to the member (optional).

memberstack.memberstack_update_member

Update an existing Memberstack member. Provide the member ID and any fields to change (email, plan assignment, or custom metadata).

Operation
Write write
Schema command
kosmo integrations:schema memberstack.memberstack_update_member --json
ParameterTypeRequiredDescription
id string yes The Memberstack member ID to update.
email string no New email address for the member (optional).
planId string no New plan ID to assign (optional). Use memberstack_list_plans to find plan IDs.
metadata object no Custom metadata key-value pairs to update (optional). Merges with existing metadata.

memberstack.memberstack_delete_member

Permanently delete a member from Memberstack. This action is irreversible and removes all associated data.

Operation
Write write
Schema command
kosmo integrations:schema memberstack.memberstack_delete_member --json
ParameterTypeRequiredDescription
id string yes The Memberstack member ID to delete.

memberstack.memberstack_list_plans

List all membership plans configured in Memberstack. Returns plan IDs, names, pricing, and billing details.

Operation
Read read
Schema command
kosmo integrations:schema memberstack.memberstack_list_plans --json
ParameterTypeRequiredDescription
No parameters.

memberstack.memberstack_get_current_user

Get the currently authenticated user from Memberstack. Useful for verifying API credentials and checking account details.

Operation
Read read
Schema command
kosmo integrations:schema memberstack.memberstack_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.