
AgentScope TypeScript
https://github.com/agentscope-ai/agentscope-typescript- Category
- AI Agents
- Rank
- No. 1434Tools index
Previous survey · No. 1439 ·
- Pricing
- Open Source
- Type
- AGENT
- Builder
- agentscope-ai
- GitHub
- 81 stars
- Latest release
- agentscope-v0.0.15
- Date
About
TypeScript implementation of AgentScope, a framework purpose-built for multi-agent systems.
What it does
AgentScope TypeScript provides building blocks for agents that reason, call tools, retain context, and stream structured lifecycle events. It includes model adapters, local tools, skills, storage hooks, human approval points, and MCP clients for remote capabilities.
Why it's ranked here
The strongest case is its unusually broad application surface: agent execution, typed streaming events, tool permissions, memory compression, persistence, and MCP transport support sit in one library. The repository also demonstrates the framework through an Electron application, though several production claims in the documentation lack supporting detail here.
What's good
The event model is concrete and frontend-friendly, covering text, thinking, data, tool calls, results, usage, approvals, interruptions, and classified errors. MCP tools become ordinary toolkit entries, with text, image, and audio results normalized into shared response blocks. Builds target both CommonJS and ES modules with declarations and source maps.
Tradeoffs
Node.js 18 or newer is required. Stateful HTTP MCP connections need explicit lifecycle management, while stateless mode reconnects for requests. MCP result conversion skips unsupported content types with a warning. The shown model surface covers OpenAI, DashScope, DeepSeek, and Ollama, so other providers require additional integration work.
How to use it well
Choose it for TypeScript agent applications that need streamed UI updates, local or MCP tools, approval gates, and optional persisted state. It fits desktop, local, serverless, or Kubernetes workflows described by the project. It does not supply a model service or an MCP server, so plan those adjacent systems separately.
Technical notes+
packages/agentscope/tsup.config.ts emits CJS and ESM bundles, declaration files, source maps, and ten subpath entries without code splitting. packages/agentscope/src/agent/agent.ts implements Agent with async-generator event streaming, optional StorageBase persistence, bounded iteration, and configurable context compression using Zod schemas. packages/agentscope/src/mcp/http.ts supports Streamable HTTP and SSE in stateful or per-request modes; packages/agentscope/src/mcp/stdio.ts launches and manages stdio servers. packages/agentscope/src/mcp/base.ts wraps discovered tools as MCPTool and normalizes text, image, and audio results. packages/agentscope/src/event/index.ts defines the discriminated AgentEvent union, approval events, token usage, completion reasons, and structured error classes. packages/agentscope/jest.config.js configures Jest with ts-jest in a Node environment.
Observed
- License
- Apache License 2.0
- Primary language
- TypeScript
- Package
- Published library surface is @agentscope-ai/agentscope, installable with pnpm or npm
- Runtime
- Node.js 18.0.0 or higher; Node.js 20.x recommended
- Module formats
- CommonJS and ES modules with TypeScript declarations and source maps
- Interfaces
- TypeScript library with MCP client support over Streamable HTTP, SSE, and stdio
- Repository structure
- Monorepo containing the core library and an example Electron application
- Test tooling
- Jest configured with ts-jest for a Node test environment
Read from README.md, package.json, packages/agentscope/jest.config.js, packages/agentscope/tsup.config.ts, packages/agentscope/src/mcp/base.ts, packages/agentscope/src/mcp/http.ts, packages/agentscope/src/mcp/index.ts, packages/agentscope/src/mcp/stdio.ts, packages/agentscope/src/tool/index.ts, packages/agentscope/src/type/index.ts, packages/agentscope/src/agent/index.ts, packages/agentscope/src/event/index.ts, packages/agentscope/src/model/index.ts, packages/agentscope/src/state/index.ts, packages/agentscope/src/agent/agent.ts.
What it can do
Create multi-agent systems
Agent configurations and system requirements → Functioning multi-agent system
Define agent behaviors and roles
Agent specifications and behavioral rules → Configured agent instances
Coordinate communication between agents
Message routing rules and agent network topology → Established inter-agent communication channels
Execute distributed agent workflows
Workflow definitions and task parameters → Completed workflow results
Monitor agent system performance
Running agent system → Performance metrics and status reports
Build TypeScript-based agent applications
TypeScript code and agent framework components → Compiled agent application
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.