Skip to content

CP-8994 Add API key tools: list, create and revoke - #111

Merged
mattkepple merged 2 commits into
mainfrom
CP-8994-api-keys
Oct 31, 2026
Merged

mattkepple merged 2 commits into
mainfrom
CP-8994-api-keys

Conversation

@mattkepple

Copy link
Copy Markdown
Contributor

Companion to MakerbleDev/makerble#17250 (API v2 /api_keys endpoints) for CP-8994. API docs: MakerbleDev/api-docs#118.

New tools, placed before the Webhooks tools:

  • makerble_list_api_keys: GET /api_keys?charity_id= (paginated). It never returns a key's secret, only secret_hint.
  • makerble_create_api_key: POST /api_keys with {charity_id, api_key: {name, user_id}}. The description tells the agent to give the user the one-time secret straight away and explains how an integration sends it.
  • makerble_revoke_api_key: DELETE /api_keys/{id}. The description tells the agent to confirm with the user first, because revoking can't be undone.

The descriptions are written for an agent that knows nothing about Makerble: an API key is an Organisation's credential for a custom integration that acts as one colleague. Tool count 220 → 223 in the makerble-tools.js header and the README.

The tools call the API with the user's own token, which is the only kind of credential allowed to manage keys. Only Organisation Admins can use them; the Rails endpoint enforces it.

I checked the handlers against a stub client: they send the right method, path and body, and all 223 tool names are unique.

When to merge: the MCP is still pre-launch, so per CLAUDE.md this can be merged once it has been reviewed, without waiting for the Rails change to reach production.


Generated by Claude Code

makerble_list_api_keys, makerble_create_api_key and
makerble_revoke_api_key call the new API v2 /api_keys endpoints, so an
agent can set up an organisation API key for a custom integration
instead of sharing a person's login. Tool count 220 -> 223.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F1a5xqkxSnHWhH2odkqnP2
@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
makerble-mcp Ready Ready Preview Oct 31, 2026 8:43am UTC

# Conflicts:
#	makerble-mcp-vercel-README.md
#	makerble-tools.js
@mattkepple
mattkepple marked this pull request as ready for review October 31, 2026 08:43
@mattkepple
mattkepple merged commit b223e3c into main Oct 31, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — ad6bd2af Deployed Oct 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants