Create an MCP access link
create_mcp_access_linkMints an access link to a project's MCP server for one identity: an MCP URL whose secret is the credential, so a client connects with it and every call runs as that identity, with no sign-in. The server must be on. identity names an identity the project already holds; with newIdentity: true it is created here, with traits (for example {"kind": "agent"}), which decide the audiences it is in. The answer carries the link: show it to the person once, and never paste it anywhere but back to them, since it is not recoverable here afterwards. Mirrors Build › MCP server › Create access link; needs project Admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traits | No | Traits for a new identity, as key and value. Only with newIdentity: true. | |
| project | No | The project's slug, exactly as list_projects returned it. Omit it only when the organization has one live project. | |
| identity | Yes | The identity the link is for, as the project's identity directory names it. | |
| expiresAt | No | When the link stops working, as an ISO 8601 date or time in the future; omitted, it never does. | |
| newIdentity | No | Create the identity with this link. Refused when the project already holds it. |