Publication keyGenerated from lib/mcp.ts
dispatch_add_collaborator
Invites a collaborator: another Dispatch user who manages this publication with the owner. No invite email is sent yet.
Invite a collaborator: another Dispatch user who manages this publication with the owner. Role 'editor' manages issues and settings; 'admin' also changes the author profile. No invite email is sent yet; the invite email and accept flow are a later step.
- Use it when: When the owner wants a teammate to manage a publication: an editor runs issues and settings, an admin also changes the author profile.
- Don't use it when: Do not use it to change a collaborator's role. Change it from the publication settings instead.
Link and endpoint
Page link
https://dispatch.nshipyard.com/support/mcp/dispatch_add_collaboratorEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_add_collaborator.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | — |
email | string | Required | Email of the Dispatch user to invite |
role | string | Optional | 'editor' (default) or 'admin' |
Returns
collaborator.idstring- The collaborator record id.
collaborator.emailstring- The invited email.
collaborator.rolestring- editor or admin.
collaborator.statusstring- invited until the accept flow lands.
Errors
| Error | When it happens | Fix |
|---|---|---|
Not authorized for this publication | The key belongs to a different publication. | Use the publication key shown on that publication's Overview page, or the master key. |
Publication not found | The publicationId does not exist. | List publications to get the right id, or copy it from the dashboard URL: /dashboard/pubs/<id>. |
A valid email is required | The email has no @ or is empty. | Pass the teammate's full email address. |
Related
Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.