Loading...

This is taking longer than expected.

Back

Connect an AI assistant to a team

The MCP server works per team: tokens are created in the team settings, act only in that team with their creator's permissions there, and manage its members, invitations, roles, add-ons, files, tickets and data exports.

Weblabor Base ships an MCP server: an address where a person connects their own AI assistant, such as Claude or ChatGPT, with a token. In Weblabor Teams that server works per team. A token belongs to one team and to the member who created it, and the assistant only ever works inside that team, with the role and permissions that member has there.

What changes from the base

Weblabor Base Weblabor Teams
Who switches MCP on Each account, in its own Add-ons Each team, in the team's Add-ons
Where tokens are created My profile Settings → Integrations of the team
Who creates them Whoever has Manage Mcp Tokens Whoever has Manage Mcp Tokens or Edit Settings in that team
What a token reaches The whole application, as its creator Only its team, as its creator in that team
What the assistant can do The person's own files, tickets and referrals The team's details, members, invitations, roles, add-ons, files, tickets and data exports
The address at /mcp The person's own server The team server; the person's own server moves to /mcp/app and starts switched off

My profile no longer has an AI assistant (MCP) block. The superadministrators' server, at /mcp/admin, is the base's in both, with the team figures added in Teams: see What a superadministrator also gets.

Switch MCP on for a team

MCP is a team add-on, and every team starts with it switched off. Someone with Manage Plans opens Add-ons in the team menu's Billing group and clicks Activate on MCP. Deactivate stops every token of the team at once; the tokens are kept and work again when the team switches it back on. See Team plans and billing.

Create and revoke tokens

With MCP on, members with Manage Mcp Tokens or Edit Settings see an Integrations tab in the team's Settings:

  1. Copy the MCP server URL into the assistant, where it asks for a remote MCP server.
  2. Write a Token name, such as Claude Desktop, and click Create token or press Enter.
  3. Copy the token from the yellow box into the assistant, where it asks for a bearer token. It is shown only once: after Done only its name stays. Revoking that same token takes the yellow box away with it.

The tab lists every token of the team, with who created it and when, and any member who reaches the tab can Revoke any of them. The team's owner role has Manage Mcp Tokens from the start, unless your product keeps it from owners; give it to another role from the team's Roles screen. See Team roles and permissions.

What a token reaches

Every request runs as the member who created the token, in the token's team, whatever team that member opened last in the browser. Nothing of another team is reachable.

The assistant is refused, in its creator's language, when:

  • the team switched the MCP add-on off;
  • the creator is no longer a member of the team;
  • the creator was blocked, or no longer has Manage Mcp Tokens or Edit Settings in the team;
  • the team was deleted.

A token created in a profile before the team server existed belongs to no team: connected to /mcp, the assistant is told that the token belongs to another MCP server, the person's own one at /mcp/app, which starts switched off. Create it again from the team.

What the assistant can do

Tool What it does Permission it needs
show-team Describes the team and the creator's role and permissions in it. None
list-members Lists the members with their role, with a search. Members: See
list-roles Lists the team's roles. Role: See, as the Roles screen
invite-member Invites by email with a role: an existing account joins at once, anyone else gets the usual invitation email. Members: Create
remove-member Removes a member from the team; their account stays. Members: Delete
change-member-role Gives a member another role in the team. Members: Update
update-team Changes the team's name or description, and only what it is given. Edit Settings
list-invitations Lists the invitations nobody has accepted yet, with their email and role. Members: See
cancel-invitation Cancels an invitation, so the person no longer joins through it. Members: Delete
resend-invitation Sends the invitation email again; the invitation keeps its role. Members: Create
list-permissions Lists the permissions a role can carry, and which of them the creator has. Role: See
create-role Creates a role with the permissions it is given. Role: Create
update-role Renames a role or replaces its permissions. Role: Update
delete-role Deletes a role. Role: Delete
list-add-ons Lists the team's add-ons, whether each one is on, and whether the team can switch it on. Manage Plans
switch-add-on Switches an add-on on or off. Manage Plans
list-media-folders Lists the folders of the team's files. Manage Media
list-media Lists the files of one folder of the team's files. Manage Media
create-media-folder Creates a folder in the team's files. Manage Media
rename-media Renames a file of the team's files; its extension stays. Manage Media
delete-media Deletes a file of the team's files and frees the team's space. Manage Media
list-tickets Lists the team's support tickets, most recent activity first. None for your own; View team tickets for every member's
show-ticket Shows a ticket with its conversation. None for your own; View team tickets for another member's
reply-ticket Replies to a ticket as the token's creator, without attachments. None for your own; View team tickets for another member's
close-ticket Closes a ticket. None for your own; View team tickets for another member's
list-announcements Lists the product's announcements, drafts included. The admin role and Announcement: See, of the admin panel
list-data-exports Lists the team's data exports and the data it can export. Edit Settings
request-data-export Starts a data export of the team. Edit Settings
list-data-imports Lists the team's data imports and what each one brought in. Edit Settings

They follow the members screen's rules: the plan's member limit applies, and the team's creator keeps their place and their role. When the creator is not allowed something, the assistant is told which permission is missing and nothing changes. Inviting by phone or username, and creating the account for the person, stay on the members screen; in a team where people are added from the members screen instead of invited, the assistant cannot invite anyone and is told to add the person there. Whatever the assistant changes is recorded with its creator as the author and a Via MCP tag. See Members and invitations.

The other tools follow the settings, roles and add-ons screens:

  • The team. The assistant can change the name and the description, never who created the team, and it cannot delete the team.
  • Deleting asks twice. cancel-invitation and delete-role change nothing until the assistant calls them again confirming it. Before deleting a role that members or invitations have, the assistant is told how many, since they are left without a role.
  • Roles. A role only gets the permissions the token's creator has; asking for any other one is refused and names it, while the permissions a role already had can stay. The Administrator role can be neither renamed, changed nor deleted. A role's name is written in lowercase words joined by hyphens, and has to be unique in the team. See Team roles and permissions.
  • Add-ons. The assistant sees no prices and never buys anything: it switches on an add-on the team already has, or one that is free, and any other one is answered as not available. See Team plans and billing.

The file, ticket and data tools follow the team's Files, Tickets and Import and export data screens:

  • Files. The assistant works only on the team's files, never on a member's own, and it cannot upload anything. See Team files and space.
  • Tickets. It reaches the team's tickets only; a ticket of another team is answered as not found. A reply is written as the token's creator, and a closed ticket takes none. See Ask for support from a team.
  • Data. An export is built in the background and arrives as the usual Team data export ready notification; only one runs at a time. Importing needs a file, so it stays in Import and export data. See Move team data between environments.
  • Deleting and closing ask twice. delete-media and close-ticket change nothing until the assistant calls them again confirming it.

The base's other tools are not on the team server: blocking users and writing announcements are on the admin server, and the referrals on the person's own server.

What a superadministrator also gets

A team token never lists the product's figures, whoever created it. A superadministrator reads them through the admin server, at /mcp/admin:

  1. Open MCP in the admin panel's menu. Only superadministrators see it.
  2. Copy the MCP server URL into the assistant and create a token there, as in a team's Integrations. That token belongs to no team and opens only /mcp/admin.

The Admin MCP server on switch on that same screen stops every admin token at once. Besides the base's admin panel tools and analytics tools, the admin server lists the product's figures read-only and without emails: three tools about teams and the product's activity log.

Tool What it does
product-overview Counts users and teams: in all, connected today, this week and this month, and new in the period.
list-active-teams Lists the teams that connected in a range, 30 days by default.
list-inactive-teams Lists the teams none of whose members has connected for a number of days, 30 by default.
list-activity Lists the product's activity log, as the admin panel's activity screen shows it. It also needs the admin role.

The team lists carry each team's ID, name, creation date and last connection, and nothing more. A team connects when one of its members does, so its last connection is the latest of its members'. Anyone who is not a superadministrator does not see these tools.

For developers

  • Teams mounts three servers in routes/ai.php, each taking only the tokens made for it:

    Server Address Tokens
    App\Mcp\Servers\TeamServer /mcp A team's, server team, from Settings → Integrations
    App\Mcp\Servers\AppServer /mcp/app A person's own, server app. Off unless features.mcp.app_server is true; Teams has no screen that creates them
    App\Mcp\Servers\AdminServer /mcp/admin A superadministrator's, server admin, from the admin panel's MCP screen

    TeamServer extends ApplicationServer, not AppServer, so no tool registered on another server reaches a team token. A token sent to the wrong server is told the address it belongs to.

  • Register your product's tools on the server of the screen they come from, from a service provider, without editing it: TeamServer::registerTools() for a team screen, AppServer::registerTools() for the person's own area, AdminServer::registerTools() for the admin panel. A tool registered on one is listed on that one only.

    use App\Mcp\Servers\TeamServer;
    
    TeamServer::registerTools([
        \App\Mcp\Tools\ListProjects::class,
    ]);
    
  • App\Models\McpToken: McpToken::issueForTeam($team, $user, $name) creates a team token; McpToken::issue($user, $name, $server) keeps the base's signature, for the person's own and the admin tokens. Whether a member may manage a team's tokens is McpToken::canBeManagedInTeam($user, $team); canBeManagedBy($user, $server) is the base's question for the other two. A person's own token in Teams needs only their mcp add-on and an account that is not blocked.

  • features.mcp.app_server is false in Teams: /mcp/app stays mounted and answers that the server is switched off. Set it to true to open it.

  • A tool that works on the team extends App\Mcp\Tools\Team\TeamTool, which gives team() beside the base's token(), creator() and missingPermission(). Ask permissions through $this->token()->allows(): it already runs inside the token's team.

  • The add-on is the mcp capability of App\Classes\TeamPlanFeatures, and the permission is manage mcp tokens on the team guard.

  • Deploying with migrate adds the team to the tokens table, gives the permission to every existing team's owner role, and moves the tokens that belong to a team to the team server (2026_11_02_100001_put_team_mcp_tokens_on_the_team_server), so they keep working on /mcp.