Example Usage
import { InternConnection } from "@openrouter/sdk/models";
let value: InternConnection = {
account: {
actsAs: "<value>",
isYourAccountLinked: true,
note: "<value>",
scope: "yours",
},
id: "<id>",
isEnabled: false,
isInternOnly: true,
kind: "google",
mcpServerName: "<value>",
name: "<value>",
offReason: "disabled",
server: null,
status: {
reason: null,
state: "error",
},
toolCount: 328769,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
account | models.Account | ✔️ | N/A |
id | string | ✔️ | Stable id: the credential id of an MCP server, else the kind (slack, github, google). |
isEnabled | boolean | ✔️ | Whether the intern reaches it now. |
isInternOnly | boolean | ✔️ | Scoped to this intern rather than shared by the workspace. |
kind | models.Kind | ✔️ | N/A |
mcpServerName | string | ✔️ | The name the intern’s MCP config keys the server by; null when it is not an MCP server or is off. |
name | string | ✔️ | Display name. |
offReason | models.OffReason | ✔️ | switched_off for this intern, disabled for the whole workspace; null while on. |
server | models.Server | ✔️ | N/A |
status | models.InternConnectionStatus | ✔️ | N/A |
toolCount | number | ✔️ | Tools found by the last successful test. |