New:Socket for Asana Is Now Available.Learn more
Get Started

@jgalego/teamapi-chat

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jgalego/teamapi-chat

Chat as a team or a member, backed by an Anthropic tool-use loop over the resolved org graph

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
346
565.38%
Maintainers
1
Weekly downloads
 
Created
Source

@jgalego/teamapi-chat

Chat as a team or a specific team member from a Team API as Code org — backed by a live Anthropic tool-use loop over the same ~12 org-graph operations @jgalego/teamapi-mcp-server exposes, so the persona can accurately answer questions about any team, not just its own.

Normally used via teamapi chat --team <id> [--member <id>] [--debug], which requires ANTHROPIC_API_KEY.

Install

npm install @jgalego/teamapi-chat @anthropic-ai/sdk

Usage

import Anthropic from "@anthropic-ai/sdk";
import { buildChatPersona, buildChatTools, DEFAULT_CHAT_MODEL } from "@jgalego/teamapi-chat";

const persona = buildChatPersona(graph, { teamId: "stream-checkout", memberId: "diego-alves" });
const tools = buildChatTools(graph);

const client = new Anthropic();
const message = await client.beta.messages.toolRunner({
  model: DEFAULT_CHAT_MODEL,
  max_tokens: 4096,
  system: persona.systemPrompt,
  tools,
  messages: [{ role: "user", content: "is payments overloaded right now?" }],
});

Full docs and a sample transcript: https://github.com/JGalego/TeamAPI

License

MIT

FAQs

Package last updated on 31 Jul 2026

Related posts