Skip to main content

Class: AIGatewayMcpIntegrationsClient

Defined in: src/ai-gateway/mcp-integrations-client.ts:41

Client for AI Gateway MCP server integrations (admin plane).

Constructors

Constructor

new AIGatewayMcpIntegrationsClient(opts): AIGatewayMcpIntegrationsClient;

Defined in: src/ai-gateway/mcp-integrations-client.ts:46

Parameters

ParameterType
optsAIGatewaySubClientOptions

Returns

AIGatewayMcpIntegrationsClient

Methods

list()

list(): Promise<objectOutputType<{
object: ZodString;
total: ZodNumber;
has_more: ZodOptional<ZodBoolean>;
data: ZodArray<ZodObject<{
id: ZodString;
organisation_id: ZodString;
name: ZodString;
owner_id: ZodString;
status: ZodString;
type: ZodString;
url: ZodString;
auth_type: ZodString;
transport: ZodString;
configurations: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
}, "passthrough", ZodTypeAny, objectOutputType<{
id: ZodString;
organisation_id: ZodString;
name: ZodString;
owner_id: ZodString;
status: ZodString;
type: ZodString;
url: ZodString;
auth_type: ZodString;
transport: ZodString;
configurations: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
}, ZodTypeAny, "passthrough">, objectInputType<{
id: ZodString;
organisation_id: ZodString;
name: ZodString;
owner_id: ZodString;
status: ZodString;
type: ZodString;
url: ZodString;
auth_type: ZodString;
transport: ZodString;
configurations: ZodString;
created_at: ZodString;
last_updated_at: ZodString;
}, ZodTypeAny, "passthrough">>, "many">;
}, ZodTypeAny, "passthrough">>;

Defined in: src/ai-gateway/mcp-integrations-client.ts:64

List organisation MCP integrations.

Returns

Promise<objectOutputType<{ object: ZodString; total: ZodNumber; has_more: ZodOptional<ZodBoolean>; data: ZodArray<ZodObject<{ id: ZodString; organisation_id: ZodString; name: ZodString; owner_id: ZodString; status: ZodString; type: ZodString; url: ZodString; auth_type: ZodString; transport: ZodString; configurations: ZodString; created_at: ZodString; last_updated_at: ZodString; }, "passthrough", ZodTypeAny, objectOutputType<{ id: ZodString; organisation_id: ZodString; name: ZodString; owner_id: ZodString; status: ZodString; type: ZodString; url: ZodString; auth_type: ZodString; transport: ZodString; configurations: ZodString; created_at: ZodString; last_updated_at: ZodString; }, ZodTypeAny, "passthrough">, objectInputType<{ id: ZodString; organisation_id: ZodString; name: ZodString; owner_id: ZodString; status: ZodString; type: ZodString; url: ZodString; auth_type: ZodString; transport: ZodString; configurations: ZodString; created_at: ZodString; last_updated_at: ZodString; }, ZodTypeAny, "passthrough">>, "many">; }, ZodTypeAny, "passthrough">>

All MCP server integrations defined on the organisation.

Example

import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
const gw = new AIGatewayClient();

const mcp = await gw.mcpIntegrations.list();
// mcp.data[0] => { name: 'Context 7', url: 'https://mcp.context7.com/mcp', transport: 'http', ... }

create()

create(body): Promise<objectOutputType<{
}, ZodTypeAny, "passthrough">>;

Defined in: src/ai-gateway/mcp-integrations-client.ts:94

Register an MCP server.

Parameters

ParameterTypeDescription
bodyMcpIntegrationCreateRequestName, server URL, auth type, transport, and provider-specific configuration.

Returns

Promise<objectOutputType<{ }, ZodTypeAny, "passthrough">>

The raw create response. Shape unverified against a live tenant — see the PRD.

Example

import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
const gw = new AIGatewayClient();

await gw.mcpIntegrations.create({
name: 'Context 7',
organisation_id: '1852583913',
slug: 'context-7',
url: 'https://mcp.context7.com/mcp',
auth_type: 'none',
transport: 'http',
});

setWorkspaces()

setWorkspaces(mcpIntegrationId, body): Promise<objectOutputType<{
}, ZodTypeAny, "passthrough">>;

Defined in: src/ai-gateway/mcp-integrations-client.ts:121

Replace which workspaces may use this MCP integration.

Parameters

ParameterTypeDescription
mcpIntegrationIdstringMCP integration UUID.
bodyMcpIntegrationWorkspacesRequestWorkspace bindings or a global-access flag; this is a replace, not a merge.

Returns

Promise<objectOutputType<{ }, ZodTypeAny, "passthrough">>

The raw response. Shape unverified against a live tenant — see the PRD.

Example

import { AIGatewayClient } from '@cdot65/prisma-airs-sdk';
const gw = new AIGatewayClient();

await gw.mcpIntegrations.setWorkspaces('f6692544-3265-49be-9711-bbdcebc079e4', {
global_workspace_access: true,
});