Skip to main content
Corsair ships a single package — @corsair-dev/mcp — that adapts to every major AI framework. Pick your framework and get four tools automatically:
ToolWhat it does
corsair_setupCheck auth status and get credential instructions
list_operationsDiscover every available API endpoint
get_schemaInspect parameters for a specific endpoint
run_scriptExecute a JS snippet with corsair in scope
Your agent calls corsair_setup first, then list_operations to discover what’s available, then run_script to execute. No code changes needed as you add plugins.

Install

npm install @corsair-dev/mcp

Choose your framework

Uses native tool use via the Anthropic TypeScript SDK. toolRunner handles the tool-call loop automatically.
npm install @anthropic-ai/sdk
agent.ts
import Anthropic from '@anthropic-ai/sdk';
import { AnthropicProvider } from '@corsair-dev/mcp';
import { corsair } from './corsair';

const provider = new AnthropicProvider();
const tools = provider.build({ corsair });  // synchronous
const client = new Anthropic();

const message = await client.beta.messages.toolRunner({
    model: 'claude-sonnet-4-6',
    max_tokens: 4096,
    tools,
    messages: [{
        role: 'user',
        content: 'List my GitHub repos with the most open issues.',
    }],
});

for (const block of message.content) {
    if (block.type === 'text') console.log(block.text);
}
AnthropicProvider.build() is synchronous — returns tools directly, ready to pass to any Anthropic API call.

How the agent uses Corsair

Once connected, your agent follows this pattern automatically:
1. corsair_setup          → check auth, get instructions for missing credentials
2. list_operations        → discover available endpoints (github.repositories.list, slack.messages.post, ...)
3. get_schema             → inspect parameters for a specific endpoint
4. run_script             → execute: const repos = await corsair.github.api.repositories.list({ type: 'owner' })
No hard-coding required. As you add plugins, the agent discovers the new endpoints automatically.

What’s next

Quick Start

Full walkthrough — install, credentials, first agent prompt.

More Plugins

Slack, Linear, Gmail, HubSpot, and 30+ more. Same pattern, just add to plugins[].

Webhooks

React to real-time events from GitHub, Slack, and more.

Multi-Tenancy

Building a SaaS product? Scope every call per user with withTenant().