Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.director.run/llms.txt

Use this file to discover all available pages before exploring further.

The Gateway API allows you to start and manage a director instance programmatically. The source code is available in apps/gateway.

Examples

import { Gateway, GatewayConfig } from "@director.run/sdk";

// Start the gateway
const gateway = await Gateway.start({
  config: await GatewayConfig.createMemoryBasedConfig({
    defaults: {
      server: {
        port: 3673,
      },
      registry: {
        url: "https://registry.director.run",
      },
      telemetry: {
        writeKey: "",
        enabled: false,
      },
    },
  }),
  baseUrl: "http://localhost:3673",
});

// Add a new playbook
await gateway.playbookStore.create({
  name: "test",
  servers: [
    {
      name: "notion",
      type: "http",
      url: "https://mcp.notion.com/mcp",
    },
  ],
});