McpServer

The `McpServer` entity.

Definition

TypeScript
interface McpServer {
  id: string;
  workspaceId: string;
  name: string;
  url: string;
  authType: "none" | "oauth" | "api_key";
  oauthClientId: string | null;
  oauthTokenEndpoint: string | null;
  oauthAuthorizationEndpoint: string | null;
  oauthScopes: string | null;
  oauthExpiresAt: string | null;
  headers: any;
  connectorId: string | null;
  connectorConfig: any;
  connectorStatus: "error" | "connected" | "disconnected" | null;
  createdBy: string;
  createdAt: string;
  updatedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
workspaceIdstringrequired — Workspace that owns this server.
namestringrequired — Human-readable server name.
urlstringrequired — Remote MCP server endpoint URL.
authType"none" | "oauth" | "api_key"required — Authentication method used when calling the server.
oauthClientIdstring | nullrequired — OAuth client ID, when authType is 'oauth'.
oauthTokenEndpointstring | nullrequired — OAuth token endpoint URL, when authType is 'oauth'.
oauthAuthorizationEndpointstring | nullrequired — OAuth authorization endpoint URL, when authType is 'oauth'.
oauthScopesstring | nullrequired — Space-separated OAuth scopes requested during auth.
oauthExpiresAtstring | nullrequired — ISO-8601 timestamp when the current OAuth access token expires.
headersanyrequired — Extra HTTP headers sent on every request to the server.
connectorIdstring | nullrequired — Connector catalog entry this server was installed from, if any.
connectorConfiganyrequired — Connector-specific config values for this install.
connectorStatus"error" | "connected" | "disconnected" | nullrequired — Current connector lifecycle status (idle, connected, failed, …).
createdBystringrequired — User who registered the server.
createdAtstringreadonly required — ISO-8601 timestamp of creation.
updatedAtstringreadonly required — ISO-8601 timestamp of the last update.