Build on Foundry

Inference a co-owned model in three lines.

The Foundry SDK ships with adapters for the agent frameworks your project already uses — Vercel AI SDK, LangChain, OpenAI-compatible HTTP — and an MCP server so Claude Desktop, Cursor, Cline, or any MCP-capable agent picks up Foundry Ingots as first-class tools. Revenue routes back to the Ingot’s co-owners automatically, on-chain.

Adapters

Adapter

Vercel AI SDK

import { foundry } from '@foundryprotocol/sdk/adapters/vercel-ai';
import { generateText } from 'ai';

const model = foundry('ingot:0x8e2…f4a');
const { text } = await generateText({
  model,
  prompt: 'Translate to Konkani: …',
});

Adapter

LangChain

import { FoundryChat } from '@foundryprotocol/sdk/adapters/langchain';

const llm = new FoundryChat({ ingotId: '0x8e2…f4a' });
const out = await llm.invoke('Translate to Konkani: …');

Adapter

OpenAI-compatible

// any tool that speaks OpenAI's API
fetch('https://api.foundryprotocol.xyz/v1/chat/completions', {
  method: 'POST',
  headers: {
    'content-type': 'application/json',
    'x-foundry-ingot-id': '0x8e2…f4a',
  },
  body: JSON.stringify({ messages: [{ role: 'user', content: '…' }] }),
});

Adapter

MCP — for Claude Desktop, Cursor, Cline

// 1. install
npx @foundryprotocol/mcp

// 2. wire into Claude Desktop / Cursor (claude_desktop_config.json)
{
  "mcpServers": {
    "foundry": {
      "command": "npx",
      "args": ["-y", "@foundryprotocol/mcp"]
    }
  }
}

// 3. ask your agent — it now has five Foundry tools:
//    list_ingots · run_inference · get_ingot
//    · get_lineage · get_attestation