๐Ÿ“ฆ Kong / volcano-sdk

๐ŸŒ‹ Build AI agents that seamlessly combine LLM reasoning with real-world actions via MCP tools โ€” in just a few lines of TypeScript.

โ˜… 383 stars โ‘‚ 30 forks ๐Ÿ‘ 383 watching โš–๏ธ Other
agenticagentic-aiagentic-frameworkagentsaiartificial-intelligenceautomationgenaimcpmcp-clientmcp-servermcp-toolssdk
๐Ÿ“ฅ Clone https://github.com/Kong/volcano-sdk.git
HTTPS git clone https://github.com/Kong/volcano-sdk.git
SSH git clone git@github.com:Kong/volcano-sdk.git
CLI gh repo clone Kong/volcano-sdk
Marco Palladino Marco Palladino chore: simplified examples and clean up (#43) 7828c73 2 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ examples
๐Ÿ“ mcp
๐Ÿ“ observability-demo
๐Ÿ“ scripts
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“ web
๐Ÿ“„ .gitignore
๐Ÿ“„ CHANGELOG.md
๐Ÿ“„ CONTRIBUTING.md
๐Ÿ“„ eslint.config.mjs
๐Ÿ“„ LICENSE
๐Ÿ“„ package-lock.json
๐Ÿ“„ package.json
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ vitest.config.ts
๐Ÿ“„ yarn.lock
๐Ÿ“„ README.md

CI License npm

๐ŸŒ‹ Volcano SDK

The TypeScript SDK for Multi-Provider AI Agents

Build agents that chain LLM reasoning with MCP tools. Mix OpenAI, Claude, Mistral in one workflow. Parallel execution, branching, loops. Native retries, streaming, and typed errors.

๐Ÿ“š Read the full documentation at volcano.dev โ†’

โœจ Features

๐Ÿค– Automatic Tool Selection

LLM automatically picks which MCP tools to call based on your prompt. No manual routing needed.

๐Ÿงฉ Multi-Agent Crews

Define specialized agents and let the coordinator autonomously delegate tasks. Like automatic tool selection, but for agents.

๐Ÿ’ฌ Conversational Results

Ask questions about what your agent did. Use .summary() or .ask() instead of parsing JSON.

๐Ÿ”ง 100s of Models

OpenAI, Anthropic, Mistral, Bedrock, Vertex, Azure. Switch providers per-step or globally.

๐Ÿ”„ Advanced Patterns

Parallel execution, branching, loops, sub-agent composition. Enterprise-grade workflow control.

๐Ÿ“ก Streaming

Stream tokens in real-time as LLMs generate them. Perfect for chat UIs and SSE endpoints.

๐Ÿ›ก๏ธ TypeScript-First

Full type safety with IntelliSense. Catch errors before runtime.

๐Ÿ“Š Observability

OpenTelemetry traces and metrics. Export to Jaeger, Prometheus, DataDog, or any OTLP backend.

โšก Production-Ready

Built-in retries, timeouts, error handling, and connection pooling. Battle-tested at scale.

Explore all features โ†’

Quick Start

Installation

npm install volcano-sdk

That's it! Includes MCP support and all common LLM providers (OpenAI, Anthropic, Mistral, Llama, Vertex).

View installation guide โ†’

Hello World with Automatic Tool Selection

import { agent, llmOpenAI, mcp } from "volcano-sdk";

const llm = llmOpenAI({ 
  apiKey: process.env.OPENAI_API_KEY!, 
  model: "gpt-4o-mini" 
});

const weather = mcp("http://localhost:8001/mcp");
const tasks = mcp("http://localhost:8002/mcp");

// Agent automatically picks the right tools
const results = await agent({ llm })
  .then({ 
    prompt: "What's the weather in Seattle? If it will rain, create a task to bring an umbrella",
    mcps: [weather, tasks]  // LLM chooses which tools to call
  })
  .run();

// Ask questions about what happened
const summary = await results.summary(llm);
console.log(summary);

Multi-Agent Coordinator

import { agent, llmOpenAI } from "volcano-sdk";

const llm = llmOpenAI({ apiKey: process.env.OPENAI_API_KEY! });

// Define specialized agents
const researcher = agent({ llm, name: 'researcher', description: 'Finds facts and data' })
  .then({ prompt: "Research the topic." })
  .then({ prompt: "Summarize the research." });

const writer = agent({ llm, name: 'writer', description: 'Creates content' })
  .then({ prompt: "Write content." });

// Coordinator autonomously delegates to specialists
const results = await agent({ llm })
  .then({
    prompt: "Write a blog post about quantum computing",
    agents: [researcher, writer]  // Coordinator decides when done
  })
  .run();

// Ask what happened
const post = await results.ask(llm, "Show me the final blog post");
console.log(post);

View more examples โ†’

Documentation

๐Ÿ“– Comprehensive Guides

Contributing

We welcome contributions! Please see our Contributing Guide for details.

Questions or Feature Requests?

License

Apache 2.0 - see LICENSE file for details.