mcpField
C
cloudbase-agent-ts

cloudbase-agent-ts

github.com/tencentcloudbaseAgent workflows79420 installsUpdated today
Repository

About cloudbase-agent-ts

A TypeScript and JavaScript coding skill for deploying AI agents as HTTP services with the AG-UI protocol. It guides developers through LangGraph, LangChain, custom adapters, and web or WeChat Mini Program clients.

Key features

  1. 01HTTP agent server setup
  2. 02LangGraph and LangChain adapters
  3. 03Custom AbstractAgent adapters
  4. 04AG-UI event and streaming guidance
  5. 05Web and mini-program client guidance

Use cases

  1. 01Deploying an AG-UI agent backend
  2. 02Connecting LangGraph or LangChain agent logic
  3. 03Building an agent web or WeChat Mini Program UI

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tencentcloudbase/skills --skill cloudbase-agent-ts

After installing, type/cloudbase-agent-tsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

adapter-development.md
adapter-langchain.md
adapter-langgraph.md
agui-protocol.md
server-quickstart.md
ui-clients.md
ui-miniprogram.md

Details

From the project README

Cloudbase Agent (TypeScript)

TypeScript SDK for deploying AI agents as HTTP services using the AG-UI protocol.

Note: This skill is for TypeScript/JavaScript projects only.

When to use this skill

Use this skill for AI agent development when you need to:

  • Deploy AI agents as HTTP services with AG-UI protocol support
  • Build agent backends using LangGraph or LangChain frameworks
  • Create custom agent adapters implementing the AbstractAgent interface
  • Understand AG-UI protocol events and message streaming
  • Build web UI clients that connect to AG-UI compatible agents
  • Build WeChat Mini Program UIs for AI agent interactions

Do NOT use for:

  • Simple AI model calling without agent capabilities (use ai-model-* skills)
  • CloudBase cloud functions (use cloud-functions skill)
  • CloudRun backend services without agent features (use cloudrun-development skill)

How to use this skill (for a coding agent)

MUST READ: Read ALL docs that match your task

Before writing any code, identify which docs you need and read ALL of them. Reading only a subset leads to incomplete implementations (missing CORS, wrong adapter patterns, no UI client code).

Scenario-based reading lists
If the task asks you to...You MUST read these docs
Build a full-stack agent (backend + frontend)server-quickstart.md + adapter doc + ui-clients.md
Deploy an agent server onlyserver-quickstart.md
Use LangGraph for agent logicadapter-langgraph.md + server-quickstart.md
Use LangChain for agent logicadapter-langchain.md + server-quickstart.md
Build a custom adapter (no LangGraph/LangChain)adapter-development.md + agui-protocol.md + server-quickstart.md
Build a web/mini-program UI clientui-clients.md + agui-protocol.md
Step-by-step workflow
  1. Identify the adapter type from the task description (LangGraph / LangChain / custom)
  2. Read the matching docs from the table above — read ALL listed docs, not just one
  3. Set up the agent server using @cloudbase/agent-server — always include cors: true
  4. Implement the agent logic using the chosen adapter
  5. If building UI, read ui-clients.md and create the client code

Reference doc index

DocWhen to read
server-quickstartAlways — deployment, CORS, logging, endpoints
adapter-langgraphTask mentions LangGraph, StateGraph, or graph-based workflows
adapter-langchainTask mentions LangChain, chains, or chain-based patterns
adapter-developmentTask requires custom adapter (no existing framework adapter)
agui-protocolTask requires custom adapter or deep protocol understanding
ui-clientsTask mentions web UI, frontend, client, or SSE streaming
ui-miniprogramTask mentions WeChat Mini Program or miniprogram UI

Quick Start

import { run } from "@cloudbase/agent-server";
import { LanggraphAgent } from "@cloudbase/agent-adapter-langgraph";

run({
  createAgent: () => ({ agent: new LanggraphAgent({ workflow }) }),
  port: 9000,
});

Comments

Markdown supported