mcpField
C
carto-manage-platform

carto-manage-platform

github.com/cartodbCloud & DevOps652 installsUpdated 1w ago
Repository

About carto-manage-platform

A skill for administering CARTO organizations through its CLI and, for eligible interactive sessions, CARTO MCP tools. It covers user and resource operations, quota monitoring, and activity auditing, with role and access-path constraints documented.

Key features

  1. 01Manage users and invitations
  2. 02Monitor organization quotas
  3. 03Audit activity events
  4. 04Superadmin bulk resource operations
  5. 05Export activity data
  6. 06Route operations between MCP and CLI

Use cases

  1. 01Onboarding or removing team members
  2. 02Reviewing activity during a security investigation
  3. 03Checking API and LDS quota use
  4. 04Transferring or bulk-deleting resources

MCP support

With the CARTO MCP server attached over OAuth, the skill routes supported single-item administration to MCP tools. Token-authenticated sessions expose a restricted subset, so CLI is used for bulk, scripted, or fallback operations.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cartodb/agent-skills --skill carto-manage-platform

After installing, type/carto-manage-platformin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
activity-event-reference.md
activity-troubleshooting.md
admin-bulk-ops.md
advanced-analyses.md
ai-providers.md
org-and-quotas.md
users-and-invites.md

Details

From the project README

carto-manage-platform

Org-level operations: managing users and invitations, monitoring quotas, auditing activity, and superadmin bulk ops on resources. Most of these require Admin or Superadmin role; non-admin users will see permission errors.

Access-path routing. With the CARTO MCP server attached over OAuth, route interactive single-item admin to MCP: manage_users (list/invite/role/delete-with-handoff), manage_api_access_tokens, manage_oauth_clients, manage_connections, organize_projects, admin_carto / admin_carto_customizations (org config + stats), export_activity_data, superadmin_carto_resources (cross-user resource listing), and delete for single-resource removal (kind: map|workflow|connection|token|oauth_client|project_item). These admin tools are hidden on token-authenticated MCP sessions (read/discovery subset only) — reconnect over OAuth or fall back to the CLI. Stays CLI: bulk/scripted deletes (admin batch-delete), ownership transfer (admin transfer), and local DuckDB analysis over exported activity data. Detection signals: carto-basics/references/access-paths.md.

When to use this skill

  • Provisioning or removing team members.
  • Auditing who did what (security review, debugging unexpected changes).
  • Monitoring API and LDS quota consumption.
  • Rotating ownership of orphaned resources after a user leaves.
  • Bulk-deleting test resources.

For querying activity data interactively (the exploratory side), use carto-query-datawarehouse/references/activity-queries.md. This skill is for the operational/admin surface around activity data.

Quick reference

Interactive single-item admin (MCP over OAuth): manage_users, manage_api_access_tokens, manage_oauth_clients, manage_connections, admin_carto, delete. CLI covers everything below and is the fallback on token sessions or headless/scripted runs.

# Org overview (users, resources, quotas, AI limits)
carto org stats

# User management
carto users list --all --json
carto users invite [email protected] --role Builder
carto users get [email protected]

# Activity audit (Enterprise Large+)
carto activity export \
  --start-date 2026-04-01 --end-date 2026-04-28 \
  --output-dir ./apr-2026

# Superadmin bulk (CLI-only)
carto admin list maps --all
carto admin batch-delete
carto admin transfer

What's in this skill

TopicReference
org stats and quota monitoringreferences/org-and-quotas.md
users lifecycle: list, invite, role changes, deletion with handoffreferences/users-and-invites.md
admin superadmin ops: bulk list, batch delete, resource transferreferences/admin-bulk-ops.md
AI providers (BYOK models): add, validate, disable via admin settings / admin_cartoreferences/ai-providers.md
Activity event-type catalog (150+ events; full reference)references/activity-event-reference.md
Advanced activity analyses (success rates, trends, by-category)references/advanced-analyses.md
Activity-data troubleshooting (DuckDB install, plan gates, TLS)references/activity-troubleshooting.md

Always-on guidance

  • Deleting a user requires a receiver to inherit their resources (maps, workflows, connections) — CARTO won't orphan them. Plan handoff first, then manage_users (MCP) or carto users delete <departing-user> <receiving-user>. Pass valid emails/IDs; check via manage_users / users get first or the delete fails with "permission denied".
  • Activity export is plan-gated to Enterprise Large+. Lower plans get a 403 (MCP export_activity_data) or error (CLI); surface it politely rather than working around it.
  • org stats / admin_carto show what you can see — AI limits and billing render only for Admin/Superadmin. Absence of a field isn't absence of the resource.
  • Bulk deletes are irreversible. admin batch-delete removes listed IDs with no per-item confirmation — verify the list, or dry-run with admin list first.
  • Audit trail comes from activity events, not tool return values. To answer "who deleted map X", query the MapDeleted events — see the activity references.

Comments

Markdown supported