Use Cosmic through Corsair with typed API calls, multi-tenant credentials, and MCP tools for agents.

Corsair

Integration

Use Cosmic through Corsair with typed API calls, multi-tenant credentials, and MCP tools for agents.

Overview

Use Cosmic through Corsair: one typed client for objects, object types, media, and revisions. Corsair handles API key auth, multi-tenant credentials, and can expose Cosmic operations as MCP tools for agents.

How it works

Each tenant connects with a Cosmic API key. You then call Cosmic the same way you call Slack or GitHub: tenant.cosmic.api.objects.find(). Corsair can also expose those operations as MCP tools for agents.

Configure

Install the plugin, add it to your Corsair instance, and connect a tenant with a Cosmic API key.

bun add corsair @corsair-dev/cosmic
import { createCorsair } from 'corsair'; import { cosmic } from '@corsair-dev/cosmic'; export const corsair = createCorsair({ plugins: [cosmic()], database: db, kek: process.env.CORSAIR_KEK!, });

Full setup is in the Corsair Cosmic plugin docs.

Built by
Corsair
Support
Category
cosmic logo
cosmic logo

Start building today

No credit card required • Free forever