Skip to content

Add reseller accounts API tools#44

Merged
Subterrane merged 1 commit intomainfrom
000-add-reseller-accounts-api-tools
Apr 2, 2026
Merged

Add reseller accounts API tools#44
Subterrane merged 1 commit intomainfrom
000-add-reseller-accounts-api-tools

Conversation

@Subterrane
Copy link
Copy Markdown
Contributor

Summary

  • Adds accounts.js module with 4 MCP tools for the /api/2/accounts reseller endpoint: list_accounts, get_account, create_account, update_account
  • Registers the module in registry.js
  • These tools were previously removed along with Copilot-hallucinated "account settings" endpoints, but the real reseller accounts API (Api::V5::AccountsController) exists and supports OAuth bearer token auth

Context

A reseller customer noticed the removed account-settings.js in git history and asked about it. While the removed file had fabricated endpoints, the real /api/2/accounts API for managing child accounts was never exposed in the MCP. This PR adds proper tools for it.

Test plan

  • Verify list_accounts returns child accounts for a reseller account
  • Verify get_account returns account details with roles
  • Verify create_account creates a child account with optional plan and API credentials
  • Verify update_account updates child account fields
  • Verify non-reseller accounts get a 422 "Insufficient privileges" error

Add accounts.js module with 4 tools for the /api/2/accounts endpoint:
list_accounts, get_account, create_account, update_account.
These were previously removed when Copilot-generated fantasy endpoints
were cleaned up, but the real reseller accounts API exists and is needed.
@Subterrane Subterrane merged commit 2e329fe into main Apr 2, 2026
2 checks passed
@Subterrane Subterrane deleted the 000-add-reseller-accounts-api-tools branch April 2, 2026 15:04
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.

1 participant