Skip to main content

Installation

Install

# bun
bun add @igris/sdk

# npm
npm install @igris/sdk

# pnpm
pnpm add @igris/sdk

Initialize

import { Igris } from "@igris/sdk";

const igris = new Igris({
  apiKey: "ig_...",  // Your Igris API key
});
For self-hosted deployments, pass your gateway URL:
const igris = new Igris({
  apiKey: "ig_...",
  baseUrl: "https://gateway.your-company.com",
});

Generate Your First MCP Config

const config = igris.getMcpConfig("vk_github_prod");

console.log(config);
// {
//   url: "https://gateway.igris.dev/v1/mcp/vk_github_prod",
//   headers: {
//     "Authorization": "Bearer ig_...",
//     "X-Igris-Trace-Id": "ig_trace_a7f3b2c1..."
//   }
// }
That’s it. Pass config.url and config.headers to any MCP client.

Get Your API Key

  1. Log in to the Igris Dashboard
  2. Go to Settings → API Keys
  3. Click Generate API Key
  4. Copy the key — it’s shown only once
Never commit your API key to source control. Use environment variables:
const igris = new Igris({
  apiKey: process.env.IGRIS_API_KEY!,
});