Skip to content

feat: add invite_member tool#15

Merged
maharshi-smallest merged 1 commit into
mainfrom
feat/invite-member-tool
Apr 23, 2026
Merged

feat: add invite_member tool#15
maharshi-smallest merged 1 commit into
mainfrom
feat/invite-member-tool

Conversation

@maharshi-smallest

Copy link
Copy Markdown
Collaborator

Summary

Add invite_member tool to invite users to your organization by email. Total tools: 34.

New tool

invite_member

  • Invite one or more users by email
  • Assign role: member (default) or admin
  • Supports bulk invites in a single call
  • Requires admin role on the organization
  • Proxies through atoms main-backend to console-backend

Example prompts

Invite alice@company.com to my org
Invite bob@acme.com and carol@acme.com as admins

🤖 Generated with Claude Code

Invite one or more users to your organization by email. Supports
bulk invites and role assignment (member or admin). Requires admin
role on the organization.

Total tools: 34

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@maharshi-smallest maharshi-smallest merged commit c8682c7 into main Apr 23, 2026
1 check passed
@entelligence-ai-pr-reviews

Copy link
Copy Markdown

EntelligenceAI PR Summary

Adds a new invite_member MCP tool allowing admins to invite users to an organization by email with configurable role assignment.

  • src/tools/invite-member.ts: Defines and registers the invite_member tool; accepts one or more email addresses and an optional member/admin role (defaults to member); POSTs to /invitation/handle-invite-members; returns structured JSON results or a formatted error on failure
  • src/tools/index.ts: Imports registerInviteMember and calls it inside registerTools to include the new tool in the server's tool suite

Confidence Score: 5/5 - Safe to Merge

Safe to merge — this PR cleanly introduces the invite_member MCP tool with a well-scoped implementation across src/tools/invite-member.ts and src/tools/index.ts. The tool correctly accepts one or more email addresses with an optional role parameter defaulting to member, POSTs to the appropriate /invitation/handle-invite-members endpoint, and returns structured results or formatted errors. No review comments were generated, both changed files received coverage, and no pre-existing unresolved concerns were identified.

Key Findings:

  • registerInviteMember is properly imported and called inside the registration flow in src/tools/index.ts, following the established pattern for tool registration in this codebase.
  • The role parameter is constrained to member/admin with a safe default of member, reducing the risk of privilege escalation from misconfigured invitations.
  • Error handling returns a formatted error response rather than throwing, which is consistent with the expected MCP tool contract and avoids unhandled promise rejections.
Files requiring special attention
  • src/tools/invite-member.ts
  • src/tools/index.ts

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