KosmoKrator

data

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.

Memberstack CLI Setup

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

Install, configure, and verify
# 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 reuse the same stored profile from scripts, coding CLIs, Lua, and MCP.

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

Command Patterns

The generic command is stable across every integration. The provider shortcut is shorter for humans.

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

Discovery

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

Discovery commands
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

Automation Contexts

The same configured command surface works in these environments. The command does not change unless the host wrapper, credentials, or permissions change.

CLI Functions

Every function below can be called headlessly. Commands are highlighted, copyable, and scroll horizontally when payloads are long.

memberstack.memberstack_list_members

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

Read read
Parameters
limit, page
Generic call
kosmo integrations:call memberstack.memberstack_list_members '{"limit":1,"page":1}' --json
Shortcut
kosmo integrations:memberstack memberstack_list_members '{"limit":1,"page":1}' --json

memberstack.memberstack_get_member

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

Read read
Parameters
id
Generic call
kosmo integrations:call memberstack.memberstack_get_member '{"id":"example_id"}' --json
Shortcut
kosmo integrations:memberstack memberstack_get_member '{"id":"example_id"}' --json

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.

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

memberstack.memberstack_update_member

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

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

memberstack.memberstack_delete_member

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

Write write
Parameters
id
Generic call
kosmo integrations:call memberstack.memberstack_delete_member '{"id":"example_id"}' --json
Shortcut
kosmo integrations:memberstack memberstack_delete_member '{"id":"example_id"}' --json

memberstack.memberstack_list_plans

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

Read read
Parameters
none
Generic call
kosmo integrations:call memberstack.memberstack_list_plans '{}' --json
Shortcut
kosmo integrations:memberstack memberstack_list_plans '{}' --json

memberstack.memberstack_get_current_user

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

Read read
Parameters
none
Generic call
kosmo integrations:call memberstack.memberstack_get_current_user '{}' --json
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 2 parameters
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 1 parameters
Schema command
kosmo integrations:schema memberstack.memberstack_get_member --json
ParameterTypeRequiredDescription
id string yes The Memberstack member ID.
memberstack.memberstack_create_member 4 parameters
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 4 parameters
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 1 parameters
Schema command
kosmo integrations:schema memberstack.memberstack_delete_member --json
ParameterTypeRequiredDescription
id string yes The Memberstack member ID to delete.
memberstack.memberstack_list_plans 0 parameters
Schema command
kosmo integrations:schema memberstack.memberstack_list_plans --json
ParameterTypeRequiredDescription
No parameters.
memberstack.memberstack_get_current_user 0 parameters
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.