Sandbox
@Kong/volcano-agent-sdk

TypeScript SDK for agents with MCP tools

Volcano Agent SDK is a TypeScript library for building agents that call MCP tools, switch between model providers, and coordinate sub-agents. It gives you workflow patterns, streaming, retries, and observability so agent runs are easier to control and inspect.

404 starsโ€ข32 forksโ€ขTypeScriptโ€ขUpdated 7mo ago
Who it's for

Builders who want to build agent workflows in TypeScript with MCP tools and multiple model providers.

What it delivers

You can build agent flows that choose tools, delegate tasks, and stream results without writing a lot of orchestration code.

What it does

Automatic tool selection

The agent picks MCP tools from your prompt instead of requiring manual routing.

Multi-agent crews

You can define specialized agents and let a coordinator delegate work to them.

Conversational results

You can call `.summary()` or `.ask()` on results to inspect what happened.

Multi-provider support

It works with OpenAI, Anthropic, Mistral, Bedrock, Vertex, Azure, and others.

Advanced workflow patterns

It includes parallel execution, branching, loops, and sub-agent composition.

Streaming and observability

It streams tokens in real time and exports OpenTelemetry traces and metrics.

Production controls

It includes retries, timeouts, error handling, and connection pooling.

How to get it

  1. 1Run
    npm install @volcano.dev/agent

README

CI License npm

๐ŸŒ‹ Volcano Agent 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.dev/agent

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.dev/agent";

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.dev/agent";

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.

Files in the repo

Repository payloadโ€ข19 top-level entries
  • .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

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More frameworks & sdks

HKUDS/nanobotFrameworks & SDKs

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps

48k
microsoft/
SkillOpt
microsoft/SkillOptFrameworks & SDKs

SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

17k
omnigent-ai/omnigentFrameworks & SDKs

Omnigent is an open-source AI agent framework and meta-harness: orchestrate Claude Code, Codex, Cursor, Pi, and custom agents โ€” swap harnesses without rewriting, enforce policies and sandboxing, and collaborate in real time from any device.

9.8k
kyegomez/
OpenMythos
kyegomez/OpenMythosFrameworks & SDKs

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

15k
D4Vinci/ScraplingFrameworks & SDKs

๐Ÿ•ท๏ธ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

80k